bootstrap-switch.css 24 KB

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