bootstrap-switch.css 23 KB

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