You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

511 lines
23KB

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