|
103 | 103 | font-size: 16px;
|
104 | 104 | line-height: normal;
|
105 | 105 | }
|
| 106 | +.bootstrap-switch.bootstrap-switch-disabled, |
| 107 | +.bootstrap-switch.bootstrap-switch-readonly, |
| 108 | +.bootstrap-switch.bootstrap-switch-indeterminate { |
| 109 | + opacity: 0.5; |
| 110 | + filter: alpha(opacity=50); |
| 111 | + cursor: default !important; |
| 112 | +} |
| 113 | +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on, |
| 114 | +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on, |
| 115 | +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on, |
| 116 | +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off, |
| 117 | +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off, |
| 118 | +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off, |
| 119 | +.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label, |
| 120 | +.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label, |
| 121 | +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label { |
| 122 | + cursor: default !important; |
| 123 | +} |
106 | 124 | .bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
|
107 | 125 | -webkit-transition: margin-left 0.5s;
|
108 | 126 | -moz-transition: margin-left 0.5s;
|
109 | 127 | -o-transition: margin-left 0.5s;
|
110 | 128 | transition: margin-left 0.5s;
|
111 | 129 | }
|
112 |
| -.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-container { |
113 |
| - margin-left: 0%; |
114 |
| -} |
115 |
| -.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label { |
| 130 | +.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on { |
| 131 | + -webkit-border-top-left-radius: 0; |
| 132 | + -moz-border-radius-topleft: 0; |
| 133 | + border-top-left-radius: 0; |
| 134 | + -webkit-border-bottom-left-radius: 0; |
| 135 | + -moz-border-radius-bottomleft: 0; |
| 136 | + border-bottom-left-radius: 0; |
116 | 137 | -webkit-border-top-right-radius: 4px;
|
117 | 138 | -moz-border-radius-topright: 4px;
|
118 | 139 | border-top-right-radius: 4px;
|
119 | 140 | -webkit-border-bottom-right-radius: 4px;
|
120 | 141 | -moz-border-radius-bottomright: 4px;
|
121 | 142 | border-bottom-right-radius: 4px;
|
122 | 143 | }
|
123 |
| -.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-container { |
124 |
| - margin-left: -50%; |
125 |
| -} |
126 |
| -.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label { |
| 144 | +.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off { |
| 145 | + -webkit-border-top-right-radius: 0; |
| 146 | + -moz-border-radius-topright: 0; |
| 147 | + border-top-right-radius: 0; |
| 148 | + -webkit-border-bottom-right-radius: 0; |
| 149 | + -moz-border-radius-bottomright: 0; |
| 150 | + border-bottom-right-radius: 0; |
127 | 151 | -webkit-border-top-left-radius: 4px;
|
128 | 152 | -moz-border-radius-topleft: 4px;
|
129 | 153 | border-top-left-radius: 4px;
|
130 | 154 | -webkit-border-bottom-left-radius: 4px;
|
131 | 155 | -moz-border-radius-bottomleft: 4px;
|
132 | 156 | border-bottom-left-radius: 4px;
|
133 | 157 | }
|
134 |
| -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-container { |
135 |
| - margin-left: -25%; |
136 |
| -} |
137 |
| -.bootstrap-switch.bootstrap-switch-disabled, |
138 |
| -.bootstrap-switch.bootstrap-switch-readonly, |
139 |
| -.bootstrap-switch.bootstrap-switch-indeterminate { |
140 |
| - opacity: 0.5; |
141 |
| - filter: alpha(opacity=50); |
142 |
| - cursor: default !important; |
143 |
| -} |
144 |
| -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on, |
145 |
| -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on, |
146 |
| -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on, |
147 |
| -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off, |
148 |
| -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off, |
149 |
| -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off, |
150 |
| -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label, |
151 |
| -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label, |
152 |
| -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label { |
153 |
| - cursor: default !important; |
154 |
| -} |
155 | 158 | .bootstrap-switch.bootstrap-switch-focused {
|
156 | 159 | border-color: rgba(82, 168, 236, 0.8);
|
157 | 160 | outline: 0;
|
|
160 | 163 | -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
|
161 | 164 | box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6);
|
162 | 165 | }
|
| 166 | +.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-container, |
| 167 | +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-container { |
| 168 | + margin-left: 0%; |
| 169 | +} |
| 170 | +.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label, |
| 171 | +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label { |
| 172 | + -webkit-border-top-right-radius: 4px; |
| 173 | + -moz-border-radius-topright: 4px; |
| 174 | + border-top-right-radius: 4px; |
| 175 | + -webkit-border-bottom-right-radius: 4px; |
| 176 | + -moz-border-radius-bottomright: 4px; |
| 177 | + border-bottom-right-radius: 4px; |
| 178 | +} |
| 179 | +.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-container, |
| 180 | +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-container { |
| 181 | + margin-left: -50%; |
| 182 | +} |
| 183 | +.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label, |
| 184 | +.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label { |
| 185 | + -webkit-border-top-left-radius: 4px; |
| 186 | + -moz-border-radius-topleft: 4px; |
| 187 | + border-top-left-radius: 4px; |
| 188 | + -webkit-border-bottom-left-radius: 4px; |
| 189 | + -moz-border-radius-bottomleft: 4px; |
| 190 | + border-bottom-left-radius: 4px; |
| 191 | +} |
| 192 | +.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-container { |
| 193 | + margin-left: -25%; |
| 194 | +} |
163 | 195 | .bootstrap-switch .bootstrap-switch-container {
|
164 | 196 | display: inline-block;
|
165 | 197 | width: 150%;
|
|
432 | 464 | .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active {
|
433 | 465 | background-color: #e6e6e6 \9;
|
434 | 466 | }
|
435 |
| -.bootstrap-switch .bootstrap-switch-handle-on { |
436 |
| - -webkit-border-top-left-radius: 4px; |
437 |
| - -moz-border-radius-topleft: 4px; |
438 |
| - border-top-left-radius: 4px; |
439 |
| - -webkit-border-bottom-left-radius: 4px; |
440 |
| - -moz-border-radius-bottomleft: 4px; |
441 |
| - border-bottom-left-radius: 4px; |
442 |
| -} |
443 |
| -.bootstrap-switch .bootstrap-switch-handle-off { |
444 |
| - -webkit-border-top-right-radius: 4px; |
445 |
| - -moz-border-radius-topright: 4px; |
446 |
| - border-top-right-radius: 4px; |
447 |
| - -webkit-border-bottom-right-radius: 4px; |
448 |
| - -moz-border-radius-bottomright: 4px; |
449 |
| - border-bottom-right-radius: 4px; |
450 |
| -} |
451 | 467 | .bootstrap-switch .bootstrap-switch-label {
|
452 | 468 | text-align: center;
|
453 | 469 | margin-top: -1px;
|
|
486 | 502 | .bootstrap-switch .bootstrap-switch-label.active {
|
487 | 503 | background-color: #cccccc \9;
|
488 | 504 | }
|
| 505 | +.bootstrap-switch .bootstrap-switch-handle-on { |
| 506 | + -webkit-border-top-left-radius: 4px; |
| 507 | + -moz-border-radius-topleft: 4px; |
| 508 | + border-top-left-radius: 4px; |
| 509 | + -webkit-border-bottom-left-radius: 4px; |
| 510 | + -moz-border-radius-bottomleft: 4px; |
| 511 | + border-bottom-left-radius: 4px; |
| 512 | +} |
| 513 | +.bootstrap-switch .bootstrap-switch-handle-off { |
| 514 | + -webkit-border-top-right-radius: 4px; |
| 515 | + -moz-border-radius-topright: 4px; |
| 516 | + border-top-right-radius: 4px; |
| 517 | + -webkit-border-bottom-right-radius: 4px; |
| 518 | + -moz-border-radius-bottomright: 4px; |
| 519 | + border-bottom-right-radius: 4px; |
| 520 | +} |
489 | 521 | .bootstrap-switch input[type='radio'],
|
490 | 522 | .bootstrap-switch input[type='checkbox'] {
|
491 | 523 | position: absolute !important;
|
|
0 commit comments