toggles.css 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. .toggle-slide {
  2. overflow: hidden;
  3. cursor: pointer;
  4. -webkit-touch-callout: none;
  5. -webkit-user-select: none;
  6. -khtml-user-select: none;
  7. -moz-user-select: none;
  8. -ms-user-select: none;
  9. user-select: none;
  10. direction: ltr;
  11. }
  12. .toggle-slide .toggle-on,.toggle-slide .toggle-off,.toggle-slide .toggle-blob {
  13. float: left;
  14. }
  15. .toggle-slide .toggle-blob {
  16. position: relative;
  17. z-index: 99;
  18. cursor: hand;
  19. cursor: grab;
  20. cursor: -moz-grab;
  21. cursor: -webkit-grab;
  22. }
  23. .toggle-slide {
  24. overflow: hidden;
  25. cursor: pointer;
  26. -webkit-touch-callout: none;
  27. -webkit-user-select: none;
  28. -khtml-user-select: none;
  29. -moz-user-select: none;
  30. -ms-user-select: none;
  31. user-select: none;
  32. direction: ltr;
  33. -moz-border-radius: 2px;
  34. -webkit-border-radius: 2px;
  35. border-radius: 2px;
  36. }
  37. .toggle-slide .toggle-on,.toggle-slide .toggle-off,.toggle-slide .toggle-blob {
  38. float: left;
  39. }
  40. .toggle-slide .toggle-blob {
  41. position: relative;
  42. z-index: 99;
  43. cursor: hand;
  44. cursor: grab;
  45. cursor: -moz-grab;
  46. cursor: -webkit-grab;
  47. }
  48. /*** THEMES ***/
  49. .toggle-default .toggle-slide {
  50. border: 1px solid #ccc;
  51. }
  52. .toggle-default .toggle-slide.active {
  53. border-color: #999;
  54. }
  55. .toggle-default .toggle-slide .toggle-on,
  56. .toggle-default .toggle-slide .toggle-off,
  57. .toggle-default .toggle-slide .toggle-blob {
  58. font-size: 11px;
  59. font-weight: 500;
  60. }
  61. .toggle-default .toggle-slide .toggle-on,
  62. .toggle-default .toggle-select .toggle-inner .active {
  63. background: #999;
  64. color: #fff;
  65. }
  66. .toggle-default .toggle-slide .toggle-off,
  67. .toggle-default .toggle-select .toggle-on {
  68. color: #666;
  69. background: #f7f7f7;
  70. }
  71. .toggle-default .toggle-slide .toggle-blob {
  72. background: #fff;
  73. border-right: 1px solid #ccc;
  74. }
  75. .toggle-default .toggle-slide.active .toggle-blob {
  76. border-left: 1px solid #999;
  77. border-right: 0;
  78. }
  79. .toggle-default .toggle-slide .toggle-blob:hover {
  80. background: #fcfcfc;
  81. }
  82. /* toggle primary */
  83. .toggle-primary .toggle-slide {
  84. border: 1px solid #999;
  85. }
  86. .toggle-primary .toggle-slide.active {
  87. border-color: #357EBD;
  88. }
  89. .toggle-primary .toggle-slide .toggle-on,
  90. .toggle-primary .toggle-slide .toggle-off,
  91. .toggle-primary .toggle-slide .toggle-blob {
  92. font-size: 11px;
  93. font-weight: 500;
  94. }
  95. .toggle-primary .toggle-slide .toggle-on,
  96. .toggle-primary .toggle-select .toggle-inner .active {
  97. background: #428BCA;
  98. color: #fff;
  99. }
  100. .toggle-primary .toggle-slide .toggle-off,
  101. .toggle-primary .toggle-select .toggle-on {
  102. color: #fff;
  103. background: #bbb;
  104. }
  105. .toggle-primary .toggle-slide .toggle-blob {
  106. background: #fff;
  107. border-right: 1px solid #999;
  108. }
  109. .toggle-primary .toggle-slide.active .toggle-blob {
  110. border-left: 1px solid #357EBD;
  111. border-right: 0;
  112. }
  113. .toggle-primary .toggle-slide .toggle-blob:hover {
  114. background: #fcfcfc;
  115. }
  116. /* toggle success */
  117. .toggle-success .toggle-slide {
  118. border: 1px solid #999;
  119. }
  120. .toggle-success .toggle-slide.active {
  121. border-color: #1CAF9A;
  122. }
  123. .toggle-success .toggle-slide .toggle-on,
  124. .toggle-success .toggle-slide .toggle-off,
  125. .toggle-success .toggle-slide .toggle-blob {
  126. font-size: 11px;
  127. font-weight: 500;
  128. }
  129. .toggle-success .toggle-slide .toggle-on,
  130. .toggle-success .toggle-select .toggle-inner .active {
  131. background: #1CAF9A;
  132. color: #fff;
  133. }
  134. .toggle-success .toggle-slide .toggle-off,
  135. .toggle-success .toggle-select .toggle-on {
  136. color: #fff;
  137. background: #bbb;
  138. }
  139. .toggle-success .toggle-slide .toggle-blob {
  140. background: #fff;
  141. border-right: 1px solid #999;
  142. }
  143. .toggle-success .toggle-slide.active .toggle-blob {
  144. border-left: 1px solid #4CAE4C;
  145. border-right: 0;
  146. }
  147. .toggle-success .toggle-slide .toggle-blob:hover {
  148. background: #fcfcfc;
  149. }
  150. /* toggle warning */
  151. .toggle-warning .toggle-slide {
  152. border: 1px solid #999;
  153. }
  154. .toggle-warning .toggle-slide.active {
  155. border-color: #EEA236;
  156. }
  157. .toggle-warning .toggle-slide .toggle-on,
  158. .toggle-warning .toggle-slide .toggle-off,
  159. .toggle-warning .toggle-slide .toggle-blob {
  160. font-size: 11px;
  161. font-weight: 500;
  162. }
  163. .toggle-warning .toggle-slide .toggle-on,
  164. .toggle-warning .toggle-select .toggle-inner .active {
  165. background: #F0AD4E;
  166. color: #fff;
  167. }
  168. .toggle-warning .toggle-slide .toggle-off,
  169. .toggle-warning .toggle-select .toggle-on {
  170. color: #fff;
  171. background: #bbb;
  172. }
  173. .toggle-warning .toggle-slide .toggle-blob {
  174. background: #fff;
  175. border-right: 1px solid #999;
  176. }
  177. .toggle-warning .toggle-slide.active .toggle-blob {
  178. border-left: 1px solid #EEA236;
  179. border-right: 0;
  180. }
  181. .toggle-warning .toggle-slide .toggle-blob:hover {
  182. background: #fcfcfc;
  183. }
  184. /* toggle danger */
  185. .toggle-danger .toggle-slide {
  186. border: 1px solid #999;
  187. }
  188. .toggle-danger .toggle-slide.active {
  189. border-color: #D43F3A;
  190. }
  191. .toggle-danger .toggle-slide .toggle-on,
  192. .toggle-danger .toggle-slide .toggle-off,
  193. .toggle-danger .toggle-slide .toggle-blob {
  194. font-size: 11px;
  195. font-weight: 500;
  196. }
  197. .toggle-danger .toggle-slide .toggle-on,
  198. .toggle-danger .toggle-select .toggle-inner .active {
  199. background: #D9534F;
  200. color: #fff;
  201. }
  202. .toggle-danger .toggle-slide .toggle-off,
  203. .toggle-danger .toggle-select .toggle-on {
  204. color: #fff;
  205. background: #bbb;
  206. }
  207. .toggle-danger .toggle-slide .toggle-blob {
  208. background: #fff;
  209. border-right: 1px solid #999;
  210. }
  211. .toggle-danger .toggle-slide.active .toggle-blob {
  212. border-left: 1px solid #D43F3A;
  213. border-right: 0;
  214. }
  215. .toggle-danger .toggle-slide .toggle-blob:hover {
  216. background: #fcfcfc;
  217. }