bootstrap-switch.css 24 KB

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