rcswitcher.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. .swraper
  2. {
  3. display: inline-block;
  4. overflow: hidden !important;
  5. /*width: 60px;*/
  6. /*line-height: 20px;*/
  7. vertical-align: middle;
  8. position: relative;
  9. margin: 5px 0;
  10. -webkit-touch-callout: none;
  11. -webkit-user-select: none;
  12. -khtml-user-select: none;
  13. -moz-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. z-index: 9;
  17. cursor: pointer;
  18. /*-webkit-mask-image: -webkit-radial-gradient(white, black);*/
  19. box-sizing: content-box !important;
  20. }
  21. .swraper.disabled
  22. {
  23. opacity: .6;
  24. cursor: not-allowed;
  25. }
  26. .swraper .stoggler
  27. {
  28. position: relative;
  29. text-align: center;
  30. width: 200%;
  31. z-index: 1;
  32. -webkit-transition: all .4s ease-out .1s;
  33. -moz-transition: all .4s ease-out .1s;
  34. -o-transition: all .4s ease-out .1s;
  35. -ms-transition: all .4s ease-out .1s;
  36. transition: all .4s ease-out .1s;
  37. }
  38. .stoggler, .stoggler span
  39. {
  40. float: left;
  41. }
  42. .swraper.rtl .stoggler,
  43. .swraper.rtl .stoggler span
  44. {
  45. float: right;
  46. }
  47. /* clear fix */
  48. .swraper:before, .swraper:after,
  49. .stoggler:before, .stoggler:after
  50. {
  51. content: "";
  52. display: table;
  53. clear: both;
  54. #zoom: 1;
  55. }
  56. .stoggler .sblob
  57. {
  58. display: inline-block;
  59. /*width: 20px;*/
  60. /*height: 20px;*/
  61. position: absolute;
  62. top: 50%;
  63. left: 50%;
  64. /*margin-right: -50%;*/
  65. -webkit-transform: translate(-50%, -50%);
  66. -moz-transform: translate(-50%, -50%);
  67. -o-transform: translate(-50%, -50%);
  68. -ms-transform: translate(-50%, -50%);
  69. transform: translate( -50%, -50%);
  70. }
  71. .stoggler .slabel-on,
  72. .stoggler .slabel-off
  73. {
  74. width: 50%;
  75. text-align: center;
  76. letter-spacing: 2px;
  77. }
  78. /* THEMES */
  79. /* ------------ THEME LIGHT ------------ */
  80. .swraper.light
  81. {
  82. border-radius: 99px;
  83. border: 1px solid rgba( 100, 100, 100, .3 );
  84. }
  85. .swraper.light .stoggler
  86. {
  87. text-shadow: 0 1px rgba( 255, 255, 255, 0.2 );
  88. background: #f5f5f5;
  89. /*background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
  90. background: -o-linear-gradient(#cfcfcf, #f5f5f5);
  91. background: linear-gradient(#cfcfcf, #f5f5f5);*/
  92. color: rgba( 0, 0, 0, 0.6 );
  93. font-size: 10px;
  94. font-weight: bold;
  95. font-family: Arial;
  96. }
  97. .swraper.light .stoggler.on
  98. {
  99. background: #45a31f;
  100. box-shadow: inset 2px 2px 6px rgba( 0, 0, 0, 0.2 );
  101. text-shadow: 1px 1px rgba( 0, 0, 0, 0.2 );
  102. color: rgba( 255, 255, 255, 0.8 );
  103. }
  104. .swraper.light .stoggler .sblob
  105. {
  106. border-radius: 99px;
  107. background: -webkit-linear-gradient( #f5f5f5, #cfcfcf );
  108. background: linear-gradient( #f5f5f5, #cfcfcf );
  109. box-shadow: 0 0 4px 1px #999;
  110. }
  111. .swraper.light .stoggler.on .sblob
  112. {
  113. box-shadow: 0 0 10px -1px #005e00;
  114. }
  115. .swraper.light .stoggler .sblob:hover
  116. {
  117. background: -webkit-linear-gradient(#e4e4e4, #f9f9f9);
  118. background: -o-linear-gradient(#e4e4e4, #f9f9f9);
  119. background: linear-gradient(#e4e4e4, #f9f9f9);
  120. }
  121. .swraper.light .stoggler .slabel-on,
  122. .swraper.light .stoggler .slabel-off{}
  123. /* ------------ END THEME LIGHT ------------ */
  124. /* ------------ THEME MODERN ------------ */
  125. .swraper.modern
  126. {
  127. border-radius: 4px;
  128. text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.2);
  129. background: -webkit-linear-gradient(#c0c5c9, #a1a9af);
  130. background: -o-linear-gradient(#c0c5c9, #a1a9af);
  131. background: linear-gradient(#c0c5c9, #a1a9af);
  132. -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.15);
  133. box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.15);
  134. }
  135. .swraper.modern .stoggler
  136. {
  137. background: -webkit-linear-gradient(#737e8d, #3f454e);
  138. background: -o-linear-gradient(#737e8d, #3f454e);
  139. background: linear-gradient(#737e8d, #3f454e);
  140. text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
  141. -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.2);
  142. box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.2);
  143. color: white;
  144. font-size: 9px;
  145. font-weight: 500;
  146. font-family: Arial;
  147. }
  148. .swraper.modern .stoggler.on
  149. {
  150. background: -webkit-linear-gradient(#4894cd, #2852a6);
  151. background: -o-linear-gradient(#4894cd, #2852a6);
  152. background: linear-gradient(#4894cd, #2852a6);
  153. }
  154. .swraper.modern .stoggler .sblob
  155. {
  156. background: -webkit-linear-gradient(#c0c6c9, #81898f);
  157. background: -o-linear-gradient(#c0c6c9, #81898f);
  158. background: linear-gradient(#c0c6c9, #81898f);
  159. -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.2);
  160. box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.2);
  161. border-radius: 3px;
  162. }
  163. .swraper.modern .stoggler .sblob:hover
  164. {
  165. background-image: -webkit-linear-gradient(#a1a9af, #a1a9af);
  166. background-image: -o-linear-gradient(#a1a9af, #a1a9af);
  167. background-image: linear-gradient(#a1a9af, #a1a9af);
  168. }
  169. .swraper.modern .stoggler .slabel-on, .swraper.modern .stoggler .slabel-off{}
  170. /* ------------ END THEME MODERN ------------ */
  171. /* ------------ THEME DARK ------------ */
  172. .swraper.dark
  173. {
  174. border-radius: 5px;
  175. }
  176. .swraper.dark .stoggler
  177. {
  178. background: -webkit-linear-gradient(#242529 0%, #34363b 100%);
  179. background: -o-linear-gradient(#242529 0%, #34363b 100%);
  180. background: linear-gradient(#242529 0%, #34363b 100%);
  181. color: rgba(255, 255, 255, 0.7);
  182. font-size: 9px;
  183. font-weight: 500;
  184. font-family: Arial;
  185. }
  186. .swraper.dark .stoggler.on
  187. {
  188. background: -webkit-linear-gradient(#1a70be 0%, #31a2e1 100%);
  189. background: -o-linear-gradient(#1a70be 0%, #31a2e1 100%);
  190. background: linear-gradient(#1a70be 0%, #31a2e1 100%);
  191. }
  192. .swraper.dark .stoggler .sblob
  193. {
  194. color: rgba(255, 255, 255, 0.7);
  195. border-radius: 4px;
  196. background: -webkit-linear-gradient(#cfcfcf 0%, #f5f5f5 100%);
  197. background: -o-linear-gradient(#cfcfcf 0%, #f5f5f5 100%);
  198. background: linear-gradient(#cfcfcf 0%, #f5f5f5 100%);
  199. -webkit-box-shadow: inset 0 0 0 1px #888, inset 0 0 0 2px white;
  200. box-shadow: inset 0 0 0 1px #888, inset 0 0 0 2px white;
  201. }
  202. .swraper.dark .stoggler .sblob:hover
  203. {
  204. background: -webkit-linear-gradient(#c0c0c0 0%, #dadada 100%);
  205. background: -o-linear-gradient(#c0c0c0 0%, #dadada 100%);
  206. background: linear-gradient(#c0c0c0 0%, #dadada 100%);
  207. -webkit-box-shadow: inset 0 0 0 1px #888,inset 0 0 0 2px #ddd;
  208. box-shadow: inset 0 0 0 1px #888,inset 0 0 0 2px #ddd;
  209. }
  210. .swraper.dark .stoggler .slabel-on, .swraper.dark .stoggler .slabel-off{}
  211. /* ------------ END THEME DARK ------------ */
  212. /* ------------ THEME FLAT ------------ */
  213. .swraper.flat
  214. {
  215. border-radius: 4px;
  216. border: 1px solid #c6c5c5;
  217. }
  218. .swraper.flat .stoggler
  219. {
  220. background: #b2b2b2;
  221. color: #ffe;
  222. font-size: 11px;
  223. }
  224. .swraper.flat .stoggler.on
  225. {
  226. background: #76bc43;
  227. color: #ffe;
  228. }
  229. .swraper.flat .stoggler .sblob
  230. {
  231. border-radius: 3px;
  232. background: #f1f1f1;
  233. border: 1px solid #e6e5e5;
  234. box-shadow: 0 0 8px 1px #888;
  235. }
  236. .swraper.flat .stoggler.on .sblob
  237. {
  238. box-shadow: 0 0 10px -1px #337733;
  239. }
  240. .swraper.flat .stoggler .sblob:hover{}
  241. .swraper.flat .stoggler .slabel-on:before, .swraper.flat .stoggler .slabel-off:before{}
  242. /* ------------ END THEME Flat ------------ */
  243. /* ------------ THEME Yellowish-green ------------ */
  244. .swraper.yellowish-green
  245. {
  246. border-radius: 99px;
  247. border: 2px solid #58d30b;
  248. }
  249. .swraper.yellowish-green .stoggler
  250. {
  251. color: rgba( 0, 0, 0, 0.6 );
  252. }
  253. .swraper.yellowish-green .stoggler.on
  254. {
  255. }
  256. .swraper.yellowish-green .stoggler .sblob
  257. {
  258. border-radius: 99px;
  259. background: #ff8700;
  260. transition: background linear .5s;
  261. }
  262. .swraper.yellowish-green .stoggler.on .sblob
  263. {
  264. background: #58d30b;
  265. }
  266. .swraper.yellowish-green .stoggler .sblob:hover
  267. {
  268. background: #0bcfd3;
  269. }
  270. /* ------------ END THEME yellowish-green ------------ */