bootstrap-switch.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* line 9, ../sass/bootstrap-switch.scss */
  2. .switch {
  3. display: inline-block;
  4. cursor: pointer;
  5. -webkit-border-radius: 5px;
  6. -moz-border-radius: 5px;
  7. -ms-border-radius: 5px;
  8. -o-border-radius: 5px;
  9. border-radius: 5px;
  10. border: 1px solid;
  11. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  12. background: #e6e6e6;
  13. position: relative;
  14. text-align: left;
  15. overflow: hidden;
  16. line-height: 8px;
  17. -webkit-touch-callout: none;
  18. -webkit-user-select: none;
  19. -khtml-user-select: none;
  20. -moz-user-select: none;
  21. -ms-user-select: none;
  22. user-select: none;
  23. min-width: 100px;
  24. }
  25. /* line 31, ../sass/bootstrap-switch.scss */
  26. .switch.switch-mini {
  27. min-width: 70px;
  28. }
  29. /* line 35, ../sass/bootstrap-switch.scss */
  30. .switch.switch-small {
  31. min-width: 80px;
  32. }
  33. /* line 39, ../sass/bootstrap-switch.scss */
  34. .switch.switch-large {
  35. min-width: 120px;
  36. }
  37. /* line 43, ../sass/bootstrap-switch.scss */
  38. .switch.deactivate {
  39. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
  40. opacity: 0.5;
  41. cursor: default !important;
  42. }
  43. /* line 46, ../sass/bootstrap-switch.scss */
  44. .switch.deactivate label, .switch.deactivate span {
  45. cursor: default !important;
  46. }
  47. /* line 50, ../sass/bootstrap-switch.scss */
  48. .switch > div {
  49. display: inline-block;
  50. width: 150%;
  51. position: relative;
  52. top: 0;
  53. }
  54. /* line 56, ../sass/bootstrap-switch.scss */
  55. .switch > div.switch-animate {
  56. -webkit-transition: left 0.5s;
  57. -moz-transition: left 0.5s;
  58. -o-transition: left 0.5s;
  59. transition: left 0.5s;
  60. }
  61. /* line 59, ../sass/bootstrap-switch.scss */
  62. .switch > div.switch-off {
  63. left: -49.5%;
  64. }
  65. /* line 62, ../sass/bootstrap-switch.scss */
  66. .switch > div.switch-on {
  67. left: 0%;
  68. }
  69. /* line 66, ../sass/bootstrap-switch.scss */
  70. .switch input[type=checkbox] {
  71. display: none;
  72. }
  73. /* line 74, ../sass/bootstrap-switch.scss */
  74. .switch span, .switch label {
  75. -webkit-box-sizing: border-box;
  76. -moz-box-sizing: border-box;
  77. box-sizing: border-box;
  78. cursor: pointer;
  79. position: relative;
  80. display: inline-block;
  81. height: 100%;
  82. padding-bottom: 4px;
  83. padding-top: 4px;
  84. font-size: 14px;
  85. line-height: 20px;
  86. }
  87. /* line 87, ../sass/bootstrap-switch.scss */
  88. .switch span.switch-mini, .switch label.switch-mini {
  89. padding-bottom: 4px;
  90. padding-top: 4px;
  91. font-size: 10px;
  92. line-height: 9px;
  93. }
  94. /* line 94, ../sass/bootstrap-switch.scss */
  95. .switch span.switch-small, .switch label.switch-small {
  96. padding-bottom: 3px;
  97. padding-top: 3px;
  98. font-size: 12px;
  99. line-height: 18px;
  100. }
  101. /* line 101, ../sass/bootstrap-switch.scss */
  102. .switch span.switch-large, .switch label.switch-large {
  103. padding-bottom: 9px;
  104. padding-top: 9px;
  105. font-size: 16px;
  106. line-height: normal;
  107. }
  108. /* line 109, ../sass/bootstrap-switch.scss */
  109. .switch label {
  110. background: white;
  111. margin-top: -1px;
  112. margin-bottom: -1px;
  113. z-index: 100;
  114. width: 34%;
  115. border-left: 1px solid #e6e6e6;
  116. border-right: 1px solid #e6e6e6;
  117. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
  118. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  119. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  120. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  121. background-image: linear-gradient(top, #ffffff, #e6e6e6);
  122. }
  123. /* line 121, ../sass/bootstrap-switch.scss */
  124. .switch span {
  125. color: white;
  126. text-align: center;
  127. z-index: 1;
  128. width: 33%;
  129. }
  130. /* line 127, ../sass/bootstrap-switch.scss */
  131. .switch span.switch-left {
  132. -moz-border-radius-topleft: 4px;
  133. -webkit-border-top-left-radius: 4px;
  134. border-top-left-radius: 4px;
  135. -moz-border-radius-bottomleft: 4px;
  136. -webkit-border-bottom-left-radius: 4px;
  137. border-bottom-left-radius: 4px;
  138. }
  139. /* line 131, ../sass/bootstrap-switch.scss */
  140. .switch span.switch-right {
  141. color: black;
  142. -moz-border-radius-topright: 4px;
  143. -webkit-border-top-right-radius: 4px;
  144. border-top-right-radius: 4px;
  145. -moz-border-radius-bottomright: 4px;
  146. -webkit-border-bottom-right-radius: 4px;
  147. border-bottom-right-radius: 4px;
  148. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
  149. background-image: -webkit-linear-gradient(bottom, #ffffff, #e6e6e6);
  150. background-image: -moz-linear-gradient(bottom, #ffffff, #e6e6e6);
  151. background-image: -o-linear-gradient(bottom, #ffffff, #e6e6e6);
  152. background-image: linear-gradient(bottom, #ffffff, #e6e6e6);
  153. }
  154. /* line 138, ../sass/bootstrap-switch.scss */
  155. .switch span.switch-primary, .switch span.switch-left {
  156. color: white;
  157. background: #0088cc;
  158. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #0088cc), color-stop(100%, #0055cc));
  159. background-image: -webkit-linear-gradient(bottom, #0088cc, #0055cc);
  160. background-image: -moz-linear-gradient(bottom, #0088cc, #0055cc);
  161. background-image: -o-linear-gradient(bottom, #0088cc, #0055cc);
  162. background-image: linear-gradient(bottom, #0088cc, #0055cc);
  163. }
  164. /* line 143, ../sass/bootstrap-switch.scss */
  165. .switch span.switch-info {
  166. color: white;
  167. background: #5bc0de;
  168. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #5bc0de), color-stop(100%, #2f96b4));
  169. background-image: -webkit-linear-gradient(bottom, #5bc0de, #2f96b4);
  170. background-image: -moz-linear-gradient(bottom, #5bc0de, #2f96b4);
  171. background-image: -o-linear-gradient(bottom, #5bc0de, #2f96b4);
  172. background-image: linear-gradient(bottom, #5bc0de, #2f96b4);
  173. }
  174. /* line 149, ../sass/bootstrap-switch.scss */
  175. .switch span.switch-success {
  176. color: white;
  177. background: #62c462;
  178. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #62c462), color-stop(100%, #51a351));
  179. background-image: -webkit-linear-gradient(bottom, #62c462, #51a351);
  180. background-image: -moz-linear-gradient(bottom, #62c462, #51a351);
  181. background-image: -o-linear-gradient(bottom, #62c462, #51a351);
  182. background-image: linear-gradient(bottom, #62c462, #51a351);
  183. }
  184. /* line 155, ../sass/bootstrap-switch.scss */
  185. .switch span.switch-warning {
  186. color: white;
  187. background: #dbb450;
  188. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #dbb450), color-stop(100%, #f89406));
  189. background-image: -webkit-linear-gradient(bottom, #dbb450, #f89406);
  190. background-image: -moz-linear-gradient(bottom, #dbb450, #f89406);
  191. background-image: -o-linear-gradient(bottom, #dbb450, #f89406);
  192. background-image: linear-gradient(bottom, #dbb450, #f89406);
  193. }
  194. /* line 161, ../sass/bootstrap-switch.scss */
  195. .switch span.switch-danger {
  196. color: white;
  197. background: #ee5f5b;
  198. background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #ee5f5b), color-stop(100%, #bd362f));
  199. background-image: -webkit-linear-gradient(bottom, #ee5f5b, #bd362f);
  200. background-image: -moz-linear-gradient(bottom, #ee5f5b, #bd362f);
  201. background-image: -o-linear-gradient(bottom, #ee5f5b, #bd362f);
  202. background-image: linear-gradient(bottom, #ee5f5b, #bd362f);
  203. }