bootstrap-switch.css 23 KB

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