1 /* ========================================================================
2 * bootstrap-switch - v3.0.1
3 * http://www.bootstrap-switch.org
4 * ========================================================================
5 * Copyright 2012-2013 Mattia Larentis
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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 * ========================================================================
23 display: inline-block;
27 border-color: #cccccc;
32 -webkit-user-select: none;
33 -moz-user-select: none;
34 -ms-user-select: none;
36 vertical-align: middle;
38 -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
39 transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
41 .bootstrap-switch.bootstrap-switch-mini {
44 .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
45 .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
46 .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {
52 .bootstrap-switch.bootstrap-switch-small {
55 .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
56 .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
57 .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
63 .bootstrap-switch.bootstrap-switch-large {
66 .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
67 .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
68 .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
74 .bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
75 -webkit-transition: margin-left 0.5s;
76 transition: margin-left 0.5s;
78 .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-container {
81 .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label {
82 border-bottom-right-radius: 3px;
83 border-top-right-radius: 3px;
85 .bootstrap-switch.bootstrap-switch-off .bootstrap-switch-container {
88 .bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label {
89 border-bottom-left-radius: 3px;
90 border-top-left-radius: 3px;
92 .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-container {
95 .bootstrap-switch.bootstrap-switch-disabled,
96 .bootstrap-switch.bootstrap-switch-readonly,
97 .bootstrap-switch.bootstrap-switch-indeterminate {
99 filter: alpha(opacity=50);
100 cursor: default !important;
102 .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
103 .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
104 .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
105 .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
106 .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
107 .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
108 .bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
109 .bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
110 .bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
111 cursor: default !important;
113 .bootstrap-switch.bootstrap-switch-focused {
114 border-color: #66afe9;
116 -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
117 box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
119 .bootstrap-switch .bootstrap-switch-container {
120 display: inline-block;
124 -webkit-transform: translate3d(0, 0, 0);
125 transform: translate3d(0, 0, 0);
127 .bootstrap-switch .bootstrap-switch-handle-on,
128 .bootstrap-switch .bootstrap-switch-handle-off,
129 .bootstrap-switch .bootstrap-switch-label {
130 -webkit-box-sizing: border-box;
131 -moz-box-sizing: border-box;
132 box-sizing: border-box;
134 display: inline-block !important;
141 .bootstrap-switch .bootstrap-switch-handle-on,
142 .bootstrap-switch .bootstrap-switch-handle-off {
145 width: 33.333333333%;
147 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
148 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
152 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
153 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
157 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
158 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
162 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
163 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
167 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
168 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
172 .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
173 .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
177 .bootstrap-switch .bootstrap-switch-handle-on {
178 border-bottom-left-radius: 3px;
179 border-top-left-radius: 3px;
181 .bootstrap-switch .bootstrap-switch-handle-off {
182 border-bottom-right-radius: 3px;
183 border-top-right-radius: 3px;
185 .bootstrap-switch .bootstrap-switch-label {
190 width: 33.333333333%;
194 .bootstrap-switch input[type='radio'],
195 .bootstrap-switch input[type='checkbox'] {
196 position: absolute !important;
200 filter: alpha(opacity=0);