bootstrap-switch.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. .clearfix {
  2. *zoom: 1;
  3. }
  4. .clearfix:before,
  5. .clearfix:after {
  6. display: table;
  7. content: "";
  8. line-height: 0;
  9. }
  10. .clearfix:after {
  11. clear: both;
  12. }
  13. .hide-text {
  14. font: 0/0 a;
  15. color: transparent;
  16. text-shadow: none;
  17. background-color: transparent;
  18. border: 0;
  19. }
  20. .input-block-level {
  21. display: block;
  22. width: 100%;
  23. min-height: 30px;
  24. -webkit-box-sizing: border-box;
  25. -moz-box-sizing: border-box;
  26. box-sizing: border-box;
  27. }
  28. .bootstrap-switch {
  29. display: inline-block;
  30. direction: ltr;
  31. cursor: pointer;
  32. -webkit-border-radius: 5px;
  33. -moz-border-radius: 5px;
  34. border-radius: 5px;
  35. border: 1px solid;
  36. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  37. position: relative;
  38. text-align: left;
  39. overflow: hidden;
  40. line-height: 8px;
  41. z-index: 0;
  42. -webkit-user-select: none;
  43. -moz-user-select: none;
  44. -ms-user-select: none;
  45. -o-user-select: none;
  46. user-select: none;
  47. vertical-align: middle;
  48. -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  49. -moz-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  50. -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  51. transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  52. }
  53. .bootstrap-switch .bootstrap-switch-container {
  54. display: inline-block;
  55. top: 0;
  56. -webkit-border-radius: 4px;
  57. -moz-border-radius: 4px;
  58. border-radius: 4px;
  59. -webkit-transform: translate3d(0, 0, 0);
  60. -moz-transform: translate3d(0, 0, 0);
  61. -o-transform: translate3d(0, 0, 0);
  62. transform: translate3d(0, 0, 0);
  63. }
  64. .bootstrap-switch .bootstrap-switch-handle-on,
  65. .bootstrap-switch .bootstrap-switch-handle-off,
  66. .bootstrap-switch .bootstrap-switch-label {
  67. -webkit-box-sizing: border-box;
  68. -moz-box-sizing: border-box;
  69. box-sizing: border-box;
  70. cursor: pointer;
  71. display: inline-block !important;
  72. height: 100%;
  73. padding-top: 4px;
  74. padding-bottom: 4px;
  75. padding-left: 8px;
  76. padding-right: 8px;
  77. font-size: 14px;
  78. line-height: 20px;
  79. }
  80. .bootstrap-switch .bootstrap-switch-handle-on,
  81. .bootstrap-switch .bootstrap-switch-handle-off {
  82. text-align: center;
  83. z-index: 1;
  84. }
  85. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
  86. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
  87. color: #fff;
  88. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  89. background-color: #005fcc;
  90. background-image: -moz-linear-gradient(top, #0044cc, #08c);
  91. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#08c));
  92. background-image: -webkit-linear-gradient(top, #0044cc, #08c);
  93. background-image: -o-linear-gradient(top, #0044cc, #08c);
  94. background-image: linear-gradient(to bottom, #0044cc, #08c);
  95. background-repeat: repeat-x;
  96. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);
  97. border-color: #08c #08c #005580;
  98. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  99. *background-color: #08c;
  100. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  101. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  102. }
  103. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover,
  104. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover,
  105. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:focus,
  106. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:focus,
  107. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,
  108. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,
  109. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,
  110. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active,
  111. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.disabled,
  112. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.disabled,
  113. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary[disabled],
  114. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary[disabled] {
  115. color: #fff;
  116. background-color: #08c;
  117. *background-color: #0077b3;
  118. }
  119. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,
  120. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,
  121. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,
  122. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active {
  123. background-color: #006699 \9;
  124. }
  125. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
  126. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
  127. color: #fff;
  128. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  129. background-color: #41a7c5;
  130. background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de);
  131. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2f96b4), to(#5bc0de));
  132. background-image: -webkit-linear-gradient(top, #2f96b4, #5bc0de);
  133. background-image: -o-linear-gradient(top, #2f96b4, #5bc0de);
  134. background-image: linear-gradient(to bottom, #2f96b4, #5bc0de);
  135. background-repeat: repeat-x;
  136. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0);
  137. border-color: #5bc0de #5bc0de #28a1c5;
  138. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  139. *background-color: #5bc0de;
  140. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  141. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  142. }
  143. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:hover,
  144. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:hover,
  145. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:focus,
  146. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:focus,
  147. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active,
  148. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,
  149. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,
  150. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active,
  151. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.disabled,
  152. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.disabled,
  153. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info[disabled],
  154. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info[disabled] {
  155. color: #fff;
  156. background-color: #5bc0de;
  157. *background-color: #46b8da;
  158. }
  159. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active,
  160. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,
  161. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,
  162. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active {
  163. background-color: #31b0d5 \9;
  164. }
  165. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
  166. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
  167. color: #fff;
  168. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  169. background-color: #58b058;
  170. background-image: -moz-linear-gradient(top, #51a351, #62c462);
  171. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#51a351), to(#62c462));
  172. background-image: -webkit-linear-gradient(top, #51a351, #62c462);
  173. background-image: -o-linear-gradient(top, #51a351, #62c462);
  174. background-image: linear-gradient(to bottom, #51a351, #62c462);
  175. background-repeat: repeat-x;
  176. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0);
  177. border-color: #62c462 #62c462 #3b9e3b;
  178. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  179. *background-color: #62c462;
  180. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  181. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  182. }
  183. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:hover,
  184. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:hover,
  185. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:focus,
  186. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:focus,
  187. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active,
  188. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,
  189. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,
  190. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active,
  191. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.disabled,
  192. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.disabled,
  193. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[disabled],
  194. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[disabled] {
  195. color: #fff;
  196. background-color: #62c462;
  197. *background-color: #4fbd4f;
  198. }
  199. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active,
  200. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,
  201. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,
  202. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active {
  203. background-color: #42b142 \9;
  204. }
  205. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
  206. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
  207. color: #fff;
  208. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  209. background-color: #f9a123;
  210. background-image: -moz-linear-gradient(top, #f89406, #fbb450);
  211. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f89406), to(#fbb450));
  212. background-image: -webkit-linear-gradient(top, #f89406, #fbb450);
  213. background-image: -o-linear-gradient(top, #f89406, #fbb450);
  214. background-image: linear-gradient(to bottom, #f89406, #fbb450);
  215. background-repeat: repeat-x;
  216. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0);
  217. border-color: #fbb450 #fbb450 #f89406;
  218. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  219. *background-color: #fbb450;
  220. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  221. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  222. }
  223. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:hover,
  224. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:hover,
  225. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:focus,
  226. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:focus,
  227. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active,
  228. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,
  229. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,
  230. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active,
  231. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.disabled,
  232. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.disabled,
  233. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning[disabled],
  234. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning[disabled] {
  235. color: #fff;
  236. background-color: #fbb450;
  237. *background-color: #faa937;
  238. }
  239. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active,
  240. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,
  241. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,
  242. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active {
  243. background-color: #fa9f1e \9;
  244. }
  245. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
  246. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
  247. color: #fff;
  248. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  249. background-color: #d14641;
  250. background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b);
  251. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd362f), to(#ee5f5b));
  252. background-image: -webkit-linear-gradient(top, #bd362f, #ee5f5b);
  253. background-image: -o-linear-gradient(top, #bd362f, #ee5f5b);
  254. background-image: linear-gradient(to bottom, #bd362f, #ee5f5b);
  255. background-repeat: repeat-x;
  256. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0);
  257. border-color: #ee5f5b #ee5f5b #e51d18;
  258. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  259. *background-color: #ee5f5b;
  260. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  261. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  262. }
  263. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:hover,
  264. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:hover,
  265. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:focus,
  266. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:focus,
  267. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active,
  268. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,
  269. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
  270. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active,
  271. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.disabled,
  272. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled,
  273. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger[disabled],
  274. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger[disabled] {
  275. color: #fff;
  276. background-color: #ee5f5b;
  277. *background-color: #ec4844;
  278. }
  279. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active,
  280. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,
  281. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
  282. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active {
  283. background-color: #e9322d \9;
  284. }
  285. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
  286. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
  287. color: #333;
  288. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  289. background-color: #f0f0f0;
  290. background-image: -moz-linear-gradient(top, #e6e6e6, #fff);
  291. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fff));
  292. background-image: -webkit-linear-gradient(top, #e6e6e6, #fff);
  293. background-image: -o-linear-gradient(top, #e6e6e6, #fff);
  294. background-image: linear-gradient(to bottom, #e6e6e6, #fff);
  295. background-repeat: repeat-x;
  296. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
  297. border-color: #fff #fff #d9d9d9;
  298. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  299. *background-color: #fff;
  300. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  301. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  302. }
  303. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:hover,
  304. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:hover,
  305. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:focus,
  306. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus,
  307. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
  308. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
  309. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,
  310. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active,
  311. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled,
  312. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.disabled,
  313. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default[disabled],
  314. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default[disabled] {
  315. color: #333;
  316. background-color: #fff;
  317. *background-color: #f2f2f2;
  318. }
  319. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
  320. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
  321. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,
  322. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active {
  323. background-color: #e6e6e6 \9;
  324. }
  325. .bootstrap-switch .bootstrap-switch-label {
  326. text-align: center;
  327. margin-top: -1px;
  328. margin-bottom: -1px;
  329. z-index: 100;
  330. border-left: 1px solid #ccc;
  331. border-right: 1px solid #ccc;
  332. color: #333;
  333. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  334. background-color: #f5f5f5;
  335. background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
  336. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
  337. background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
  338. background-image: -o-linear-gradient(top, #fff, #e6e6e6);
  339. background-image: linear-gradient(to bottom, #fff, #e6e6e6);
  340. background-repeat: repeat-x;
  341. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  342. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  343. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  344. *background-color: #e6e6e6;
  345. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  346. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  347. }
  348. .bootstrap-switch .bootstrap-switch-label:hover,
  349. .bootstrap-switch .bootstrap-switch-label:focus,
  350. .bootstrap-switch .bootstrap-switch-label:active,
  351. .bootstrap-switch .bootstrap-switch-label.active,
  352. .bootstrap-switch .bootstrap-switch-label.disabled,
  353. .bootstrap-switch .bootstrap-switch-label[disabled] {
  354. color: #333;
  355. background-color: #e6e6e6;
  356. *background-color: #d9d9d9;
  357. }
  358. .bootstrap-switch .bootstrap-switch-label:active,
  359. .bootstrap-switch .bootstrap-switch-label.active {
  360. background-color: #cccccc \9;
  361. }
  362. .bootstrap-switch .bootstrap-switch-handle-on {
  363. -webkit-border-top-left-radius: 4px;
  364. -moz-border-radius-topleft: 4px;
  365. border-top-left-radius: 4px;
  366. -webkit-border-bottom-left-radius: 4px;
  367. -moz-border-radius-bottomleft: 4px;
  368. border-bottom-left-radius: 4px;
  369. }
  370. .bootstrap-switch .bootstrap-switch-handle-off {
  371. -webkit-border-top-right-radius: 4px;
  372. -moz-border-radius-topright: 4px;
  373. border-top-right-radius: 4px;
  374. -webkit-border-bottom-right-radius: 4px;
  375. -moz-border-radius-bottomright: 4px;
  376. border-bottom-right-radius: 4px;
  377. }
  378. .bootstrap-switch input[type='radio'],
  379. .bootstrap-switch input[type='checkbox'] {
  380. position: absolute !important;
  381. top: 0;
  382. left: 0;
  383. opacity: 0;
  384. filter: alpha(opacity=0);
  385. z-index: -1;
  386. }
  387. .bootstrap-switch input[type='radio'].form-control,
  388. .bootstrap-switch input[type='checkbox'].form-control {
  389. height: auto;
  390. }
  391. .bootstrap-switch.bootstrap-switch-mini {
  392. min-width: 71px;
  393. }
  394. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
  395. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
  396. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {
  397. padding: 3px 6px;
  398. font-size: 10px;
  399. line-height: 9px;
  400. }
  401. .bootstrap-switch.bootstrap-switch-small {
  402. min-width: 79px;
  403. }
  404. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
  405. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
  406. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
  407. padding: 3px 6px;
  408. font-size: 12px;
  409. line-height: 18px;
  410. }
  411. .bootstrap-switch.bootstrap-switch-large {
  412. min-width: 120px;
  413. }
  414. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
  415. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
  416. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
  417. padding: 9px 12px;
  418. font-size: 16px;
  419. line-height: normal;
  420. }
  421. .bootstrap-switch.bootstrap-switch-disabled,
  422. .bootstrap-switch.bootstrap-switch-readonly,
  423. .bootstrap-switch.bootstrap-switch-indeterminate {
  424. cursor: default !important;
  425. }
  426. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
  427. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
  428. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
  429. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
  430. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
  431. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
  432. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
  433. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
  434. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
  435. opacity: 0.5;
  436. filter: alpha(opacity=50);
  437. cursor: default !important;
  438. }
  439. .bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
  440. -webkit-transition: margin-left 0.5s;
  441. -moz-transition: margin-left 0.5s;
  442. -o-transition: margin-left 0.5s;
  443. transition: margin-left 0.5s;
  444. }
  445. .bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
  446. -webkit-border-top-left-radius: 0;
  447. -moz-border-radius-topleft: 0;
  448. border-top-left-radius: 0;
  449. -webkit-border-bottom-left-radius: 0;
  450. -moz-border-radius-bottomleft: 0;
  451. border-bottom-left-radius: 0;
  452. -webkit-border-top-right-radius: 4px;
  453. -moz-border-radius-topright: 4px;
  454. border-top-right-radius: 4px;
  455. -webkit-border-bottom-right-radius: 4px;
  456. -moz-border-radius-bottomright: 4px;
  457. border-bottom-right-radius: 4px;
  458. }
  459. .bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {
  460. -webkit-border-top-right-radius: 0;
  461. -moz-border-radius-topright: 0;
  462. border-top-right-radius: 0;
  463. -webkit-border-bottom-right-radius: 0;
  464. -moz-border-radius-bottomright: 0;
  465. border-bottom-right-radius: 0;
  466. -webkit-border-top-left-radius: 4px;
  467. -moz-border-radius-topleft: 4px;
  468. border-top-left-radius: 4px;
  469. -webkit-border-bottom-left-radius: 4px;
  470. -moz-border-radius-bottomleft: 4px;
  471. border-bottom-left-radius: 4px;
  472. }
  473. .bootstrap-switch.bootstrap-switch-focused {
  474. border-color: rgba(82, 168, 236, 0.8);
  475. outline: 0;
  476. outline: thin dotted \9;
  477. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  478. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  479. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  480. }
  481. .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
  482. .bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {
  483. -webkit-border-top-right-radius: 4px;
  484. -moz-border-radius-topright: 4px;
  485. border-top-right-radius: 4px;
  486. -webkit-border-bottom-right-radius: 4px;
  487. -moz-border-radius-bottomright: 4px;
  488. border-bottom-right-radius: 4px;
  489. }
  490. .bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
  491. .bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {
  492. -webkit-border-top-left-radius: 4px;
  493. -moz-border-radius-topleft: 4px;
  494. border-top-left-radius: 4px;
  495. -webkit-border-bottom-left-radius: 4px;
  496. -moz-border-radius-bottomleft: 4px;
  497. border-bottom-left-radius: 4px;
  498. }