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.

195 lines
6.8 KiB

9 years ago
  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. .bootstrap-switch {
  22. display: inline-block;
  23. direction: ltr;
  24. cursor: pointer;
  25. border-radius: 4px;
  26. border: 1px solid;
  27. border-color: #cccccc;
  28. position: relative;
  29. text-align: left;
  30. overflow: hidden;
  31. line-height: 8px;
  32. z-index: 0;
  33. -webkit-user-select: none;
  34. -moz-user-select: none;
  35. -ms-user-select: none;
  36. user-select: none;
  37. vertical-align: middle;
  38. -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  39. -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  40. transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  41. }
  42. .bootstrap-switch .bootstrap-switch-container {
  43. display: inline-block;
  44. top: 0;
  45. border-radius: 4px;
  46. -webkit-transform: translate3d(0, 0, 0);
  47. transform: translate3d(0, 0, 0);
  48. }
  49. .bootstrap-switch .bootstrap-switch-handle-on,
  50. .bootstrap-switch .bootstrap-switch-handle-off,
  51. .bootstrap-switch .bootstrap-switch-label {
  52. -webkit-box-sizing: border-box;
  53. -moz-box-sizing: border-box;
  54. box-sizing: border-box;
  55. cursor: pointer;
  56. display: inline-block !important;
  57. height: 100%;
  58. padding: 6px 12px;
  59. font-size: 14px;
  60. line-height: 20px;
  61. }
  62. .bootstrap-switch .bootstrap-switch-handle-on,
  63. .bootstrap-switch .bootstrap-switch-handle-off {
  64. text-align: center;
  65. z-index: 1;
  66. }
  67. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
  68. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
  69. color: #fff;
  70. background: #337ab7;
  71. }
  72. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
  73. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
  74. color: #fff;
  75. background: #5bc0de;
  76. }
  77. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
  78. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
  79. color: #fff;
  80. background: #5cb85c;
  81. }
  82. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
  83. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
  84. background: #f0ad4e;
  85. color: #fff;
  86. }
  87. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
  88. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
  89. color: #fff;
  90. background: #d9534f;
  91. }
  92. .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
  93. .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
  94. color: #000;
  95. background: #eeeeee;
  96. }
  97. .bootstrap-switch .bootstrap-switch-label {
  98. text-align: center;
  99. margin-top: -1px;
  100. margin-bottom: -1px;
  101. z-index: 100;
  102. color: #333333;
  103. background: #ffffff;
  104. }
  105. .bootstrap-switch .bootstrap-switch-handle-on {
  106. border-bottom-left-radius: 3px;
  107. border-top-left-radius: 3px;
  108. }
  109. .bootstrap-switch .bootstrap-switch-handle-off {
  110. border-bottom-right-radius: 3px;
  111. border-top-right-radius: 3px;
  112. }
  113. .bootstrap-switch input[type='radio'],
  114. .bootstrap-switch input[type='checkbox'] {
  115. position: absolute !important;
  116. top: 0;
  117. left: 0;
  118. margin: 0;
  119. z-index: -1;
  120. opacity: 0;
  121. filter: alpha(opacity=0);
  122. }
  123. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
  124. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
  125. .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {
  126. padding: 1px 5px;
  127. font-size: 12px;
  128. line-height: 1.5;
  129. }
  130. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
  131. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
  132. .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
  133. padding: 5px 10px;
  134. font-size: 12px;
  135. line-height: 1.5;
  136. }
  137. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
  138. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
  139. .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
  140. padding: 6px 16px;
  141. font-size: 18px;
  142. line-height: 1.3333333;
  143. }
  144. .bootstrap-switch.bootstrap-switch-disabled,
  145. .bootstrap-switch.bootstrap-switch-readonly,
  146. .bootstrap-switch.bootstrap-switch-indeterminate {
  147. cursor: default !important;
  148. }
  149. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
  150. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
  151. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
  152. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
  153. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
  154. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
  155. .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
  156. .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
  157. .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
  158. opacity: 0.5;
  159. filter: alpha(opacity=50);
  160. cursor: default !important;
  161. }
  162. .bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
  163. -webkit-transition: margin-left 0.5s;
  164. -o-transition: margin-left 0.5s;
  165. transition: margin-left 0.5s;
  166. }
  167. .bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
  168. border-bottom-left-radius: 0;
  169. border-top-left-radius: 0;
  170. border-bottom-right-radius: 3px;
  171. border-top-right-radius: 3px;
  172. }
  173. .bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {
  174. border-bottom-right-radius: 0;
  175. border-top-right-radius: 0;
  176. border-bottom-left-radius: 3px;
  177. border-top-left-radius: 3px;
  178. }
  179. .bootstrap-switch.bootstrap-switch-focused {
  180. border-color: #66afe9;
  181. outline: 0;
  182. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  183. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  184. }
  185. .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
  186. .bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {
  187. border-bottom-right-radius: 3px;
  188. border-top-right-radius: 3px;
  189. }
  190. .bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
  191. .bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {
  192. border-bottom-left-radius: 3px;
  193. border-top-left-radius: 3px;
  194. }