bootstrap-switch.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. /* ========================================================================
  2. * bootstrap-switch - v3.0.0
  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-disabled,
  134. .bootstrap-switch.bootstrap-switch-readonly {
  135. opacity: 0.5;
  136. filter: alpha(opacity=50);
  137. cursor: default !important;
  138. }
  139. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
  140. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
  141. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
  142. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
  143. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
  144. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label {
  145. cursor: default !important;
  146. }
  147. .bootstrap-switch.bootstrap-switch-focused {
  148. border-color: rgba(82, 168, 236, 0.8);
  149. outline: 0;
  150. outline: thin dotted \9;
  151. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  152. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  153. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
  154. }
  155. .bootstrap-switch .bootstrap-switch-container {
  156. display: inline-block;
  157. width: 150%;
  158. top: 0;
  159. -webkit-border-radius: 4px;
  160. -moz-border-radius: 4px;
  161. border-radius: 4px;
  162. -webkit-transform: translate3d(0, 0, 0);
  163. -moz-transform: translate3d(0, 0, 0);
  164. -o-transform: translate3d(0, 0, 0);
  165. transform: translate3d(0, 0, 0);
  166. }
  167. .bootstrap-switch .bootstrap-switch-handle-on,
  168. .bootstrap-switch .bootstrap-switch-handle-off,
  169. .bootstrap-switch .bootstrap-switch-label {
  170. -webkit-box-sizing: border-box;
  171. -moz-box-sizing: border-box;
  172. box-sizing: border-box;
  173. cursor: pointer;
  174. display: inline-block !important;
  175. height: 100%;
  176. padding-bottom: 4px;
  177. padding-top: 4px;
  178. font-size: 14px;
  179. line-height: 20px;
  180. }
  181. .bootstrap-switch .bootstrap-switch-handle-on,
  182. .bootstrap-switch .bootstrap-switch-handle-off {
  183. text-align: center;
  184. z-index: 1;
  185. width: 33.333333333%;
  186. }
  187. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
  188. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
  189. color: #ffffff;
  190. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  191. background-color: #005fcc;
  192. background-image: -moz-linear-gradient(top, #0044cc, #0088cc);
  193. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#0088cc));
  194. background-image: -webkit-linear-gradient(top, #0044cc, #0088cc);
  195. background-image: -o-linear-gradient(top, #0044cc, #0088cc);
  196. background-image: linear-gradient(to bottom, #0044cc, #0088cc);
  197. background-repeat: repeat-x;
  198. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);
  199. border-color: #0088cc #0088cc #005580;
  200. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  201. *background-color: #0088cc;
  202. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  203. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  204. }
  205. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover,
  206. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover,
  207. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:focus,
  208. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:focus,
  209. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,
  210. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,
  211. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,
  212. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active,
  213. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.disabled,
  214. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.disabled,
  215. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary[disabled],
  216. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary[disabled] {
  217. color: #ffffff;
  218. background-color: #0088cc;
  219. *background-color: #0077b3;
  220. }
  221. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,
  222. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,
  223. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,
  224. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active {
  225. background-color: #006699 \9;
  226. }
  227. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
  228. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
  229. color: #ffffff;
  230. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  231. background-color: #41a7c5;
  232. background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de);
  233. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2f96b4), to(#5bc0de));
  234. background-image: -webkit-linear-gradient(top, #2f96b4, #5bc0de);
  235. background-image: -o-linear-gradient(top, #2f96b4, #5bc0de);
  236. background-image: linear-gradient(to bottom, #2f96b4, #5bc0de);
  237. background-repeat: repeat-x;
  238. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0);
  239. border-color: #5bc0de #5bc0de #28a1c5;
  240. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  241. *background-color: #5bc0de;
  242. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  243. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  244. }
  245. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:hover,
  246. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:hover,
  247. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:focus,
  248. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:focus,
  249. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active,
  250. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,
  251. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,
  252. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active,
  253. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.disabled,
  254. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.disabled,
  255. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info[disabled],
  256. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info[disabled] {
  257. color: #ffffff;
  258. background-color: #5bc0de;
  259. *background-color: #46b8da;
  260. }
  261. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active,
  262. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,
  263. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,
  264. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active {
  265. background-color: #31b0d5 \9;
  266. }
  267. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
  268. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
  269. color: #ffffff;
  270. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  271. background-color: #58b058;
  272. background-image: -moz-linear-gradient(top, #51a351, #62c462);
  273. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#51a351), to(#62c462));
  274. background-image: -webkit-linear-gradient(top, #51a351, #62c462);
  275. background-image: -o-linear-gradient(top, #51a351, #62c462);
  276. background-image: linear-gradient(to bottom, #51a351, #62c462);
  277. background-repeat: repeat-x;
  278. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0);
  279. border-color: #62c462 #62c462 #3b9e3b;
  280. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  281. *background-color: #62c462;
  282. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  283. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  284. }
  285. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:hover,
  286. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:hover,
  287. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:focus,
  288. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:focus,
  289. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active,
  290. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,
  291. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,
  292. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active,
  293. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.disabled,
  294. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.disabled,
  295. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[disabled],
  296. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[disabled] {
  297. color: #ffffff;
  298. background-color: #62c462;
  299. *background-color: #4fbd4f;
  300. }
  301. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active,
  302. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,
  303. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,
  304. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active {
  305. background-color: #42b142 \9;
  306. }
  307. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
  308. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
  309. color: #ffffff;
  310. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  311. background-color: #f9a123;
  312. background-image: -moz-linear-gradient(top, #f89406, #fbb450);
  313. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f89406), to(#fbb450));
  314. background-image: -webkit-linear-gradient(top, #f89406, #fbb450);
  315. background-image: -o-linear-gradient(top, #f89406, #fbb450);
  316. background-image: linear-gradient(to bottom, #f89406, #fbb450);
  317. background-repeat: repeat-x;
  318. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0);
  319. border-color: #fbb450 #fbb450 #f89406;
  320. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  321. *background-color: #fbb450;
  322. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  323. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  324. }
  325. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:hover,
  326. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:hover,
  327. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:focus,
  328. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:focus,
  329. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active,
  330. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,
  331. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,
  332. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active,
  333. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.disabled,
  334. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.disabled,
  335. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning[disabled],
  336. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning[disabled] {
  337. color: #ffffff;
  338. background-color: #fbb450;
  339. *background-color: #faa937;
  340. }
  341. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active,
  342. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,
  343. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,
  344. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active {
  345. background-color: #fa9f1e \9;
  346. }
  347. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
  348. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
  349. color: #ffffff;
  350. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  351. background-color: #d14641;
  352. background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b);
  353. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd362f), to(#ee5f5b));
  354. background-image: -webkit-linear-gradient(top, #bd362f, #ee5f5b);
  355. background-image: -o-linear-gradient(top, #bd362f, #ee5f5b);
  356. background-image: linear-gradient(to bottom, #bd362f, #ee5f5b);
  357. background-repeat: repeat-x;
  358. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0);
  359. border-color: #ee5f5b #ee5f5b #e51d18;
  360. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  361. *background-color: #ee5f5b;
  362. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  363. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  364. }
  365. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:hover,
  366. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:hover,
  367. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:focus,
  368. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:focus,
  369. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active,
  370. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,
  371. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
  372. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active,
  373. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.disabled,
  374. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled,
  375. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger[disabled],
  376. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger[disabled] {
  377. color: #ffffff;
  378. background-color: #ee5f5b;
  379. *background-color: #ec4844;
  380. }
  381. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active,
  382. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,
  383. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,
  384. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active {
  385. background-color: #e9322d \9;
  386. }
  387. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
  388. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
  389. color: #333333;
  390. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  391. background-color: #f0f0f0;
  392. background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
  393. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
  394. background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
  395. background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
  396. background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
  397. background-repeat: repeat-x;
  398. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
  399. border-color: #ffffff #ffffff #d9d9d9;
  400. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  401. *background-color: #ffffff;
  402. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  403. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  404. }
  405. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:hover,
  406. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:hover,
  407. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:focus,
  408. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus,
  409. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
  410. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
  411. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,
  412. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active,
  413. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled,
  414. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.disabled,
  415. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default[disabled],
  416. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default[disabled] {
  417. color: #333333;
  418. background-color: #ffffff;
  419. *background-color: #f2f2f2;
  420. }
  421. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
  422. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,
  423. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,
  424. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active {
  425. background-color: #e6e6e6 \9;
  426. }
  427. .bootstrap-switch .bootstrap-switch-handle-on {
  428. -webkit-border-top-left-radius: 4px;
  429. -moz-border-radius-topleft: 4px;
  430. border-top-left-radius: 4px;
  431. -webkit-border-bottom-left-radius: 4px;
  432. -moz-border-radius-bottomleft: 4px;
  433. border-bottom-left-radius: 4px;
  434. }
  435. .bootstrap-switch .bootstrap-switch-handle-off {
  436. -webkit-border-top-right-radius: 4px;
  437. -moz-border-radius-topright: 4px;
  438. border-top-right-radius: 4px;
  439. -webkit-border-bottom-right-radius: 4px;
  440. -moz-border-radius-bottomright: 4px;
  441. border-bottom-right-radius: 4px;
  442. }
  443. .bootstrap-switch .bootstrap-switch-label {
  444. text-align: center;
  445. margin-top: -1px;
  446. margin-bottom: -1px;
  447. z-index: 100;
  448. width: 33.333333333%;
  449. border-left: 1px solid #cccccc;
  450. border-right: 1px solid #cccccc;
  451. color: #333333;
  452. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  453. background-color: #f5f5f5;
  454. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  455. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  456. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  457. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  458. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  459. background-repeat: repeat-x;
  460. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  461. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  462. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  463. *background-color: #e6e6e6;
  464. /* Darken IE7 buttons by default so they stand out more given they won't have borders */
  465. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  466. }
  467. .bootstrap-switch .bootstrap-switch-label:hover,
  468. .bootstrap-switch .bootstrap-switch-label:focus,
  469. .bootstrap-switch .bootstrap-switch-label:active,
  470. .bootstrap-switch .bootstrap-switch-label.active,
  471. .bootstrap-switch .bootstrap-switch-label.disabled,
  472. .bootstrap-switch .bootstrap-switch-label[disabled] {
  473. color: #333333;
  474. background-color: #e6e6e6;
  475. *background-color: #d9d9d9;
  476. }
  477. .bootstrap-switch .bootstrap-switch-label:active,
  478. .bootstrap-switch .bootstrap-switch-label.active {
  479. background-color: #cccccc \9;
  480. }
  481. .bootstrap-switch input[type='radio'],
  482. .bootstrap-switch input[type='checkbox'] {
  483. position: absolute !important;
  484. top: 0;
  485. left: 0;
  486. opacity: 0;
  487. filter: alpha(opacity=0);
  488. z-index: -1;
  489. }