bootstrap-switch.css 24 KB

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