bootstrap-switch-rails 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72af57b158c9781bb620e08b3b8641b4347a218a
|
4
|
+
data.tar.gz: f4ed924cbea87c7db4baa5562191ff4052febfc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f97ae70cdf5bfb20990c13b173eec109675f22d4ad25d24273ef3f4d5b3fa1d9297f9982ceca8fba737ff9a65d79855aade0bc27b2112c7f4550b9b5b7db3cd
|
7
|
+
data.tar.gz: 97609bc762168f87f03b5c68a83d7533fd2b1eee785b910a7984eefdf72328340d44bc1e53599ce24d04f64a001e7b95494b0d7122fd0974ef2d7076d02d6f80
|
data/README.md
CHANGED
@@ -52,6 +52,7 @@ See the [demo page of Mattia Larentis](http://www.bootstrap-switch.org/) for exa
|
|
52
52
|
|
53
53
|
| Version | Notes |
|
54
54
|
| -------:| ----------------------------------------------------------------------------------- |
|
55
|
+
| 3.1.2 | Update to v3.1.2 of the bootstrap-switch plugin |
|
55
56
|
| 3.0.2 | Update to v3.0.2 of the bootstrap-switch plugin |
|
56
57
|
| 3.0.0 | Update to v3.0.0 of the bootstrap-switch plugin |
|
57
58
|
| 2.0.2 | Fixed issue where bootstrap 2 sass wasn't compiling (issue #7) |
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.0
|
2
|
+
* bootstrap-switch - v3.1.0
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -38,14 +38,15 @@
|
|
38
38
|
disabled: this.$element.is(":disabled"),
|
39
39
|
readonly: this.$element.is("[readonly]"),
|
40
40
|
indeterminate: this.$element.data("indeterminate"),
|
41
|
+
inverse: this.$element.data("inverse"),
|
42
|
+
radioAllOff: this.$element.data("radio-all-off"),
|
41
43
|
onColor: this.$element.data("on-color"),
|
42
44
|
offColor: this.$element.data("off-color"),
|
43
45
|
onText: this.$element.data("on-text"),
|
44
46
|
offText: this.$element.data("off-text"),
|
45
47
|
labelText: this.$element.data("label-text"),
|
46
48
|
baseClass: this.$element.data("base-class"),
|
47
|
-
wrapperClass: this.$element.data("wrapper-class")
|
48
|
-
radioAllOff: this.$element.data("radio-all-off")
|
49
|
+
wrapperClass: this.$element.data("wrapper-class")
|
49
50
|
}, options);
|
50
51
|
this.$wrapper = $("<div>", {
|
51
52
|
"class": (function(_this) {
|
@@ -68,6 +69,9 @@
|
|
68
69
|
if (_this.options.indeterminate) {
|
69
70
|
classes.push("" + _this.options.baseClass + "-indeterminate");
|
70
71
|
}
|
72
|
+
if (_this.options.inverse) {
|
73
|
+
classes.push("" + _this.options.baseClass + "-inverse");
|
74
|
+
}
|
71
75
|
if (_this.$element.attr("id")) {
|
72
76
|
classes.push("" + _this.options.baseClass + "-id-" + (_this.$element.attr("id")));
|
73
77
|
}
|
@@ -105,7 +109,7 @@
|
|
105
109
|
})(this));
|
106
110
|
this.$container = this.$element.wrap(this.$container).parent();
|
107
111
|
this.$wrapper = this.$container.wrap(this.$wrapper).parent();
|
108
|
-
this.$element.before(this.$on).before(this.$label).before(this.$off).trigger("init.bootstrapSwitch");
|
112
|
+
this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off).trigger("init.bootstrapSwitch");
|
109
113
|
this._elementHandlers();
|
110
114
|
this._handleHandlers();
|
111
115
|
this._labelHandlers();
|
@@ -118,22 +122,32 @@
|
|
118
122
|
if (typeof value === "undefined") {
|
119
123
|
return this.options.state;
|
120
124
|
}
|
121
|
-
if (this.options.disabled || this.options.readonly
|
125
|
+
if (this.options.disabled || this.options.readonly) {
|
122
126
|
return this.$element;
|
123
127
|
}
|
124
128
|
if (this.options.state && !this.options.radioAllOff && this.$element.is(':radio')) {
|
125
129
|
return this.$element;
|
126
130
|
}
|
127
|
-
|
131
|
+
if (this.options.indeterminate) {
|
132
|
+
this.indeterminate(false);
|
133
|
+
value = true;
|
134
|
+
} else {
|
135
|
+
value = !!value;
|
136
|
+
}
|
128
137
|
this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
|
129
138
|
return this.$element;
|
130
139
|
};
|
131
140
|
|
132
141
|
BootstrapSwitch.prototype.toggleState = function(skip) {
|
133
|
-
if (this.options.disabled || this.options.readonly
|
142
|
+
if (this.options.disabled || this.options.readonly) {
|
134
143
|
return this.$element;
|
135
144
|
}
|
136
|
-
|
145
|
+
if (this.options.indeterminate) {
|
146
|
+
this.indeterminate(false);
|
147
|
+
return this.state(true);
|
148
|
+
} else {
|
149
|
+
return this.$element.prop("checked", !this.options.state).trigger("change.bootstrapSwitch", skip);
|
150
|
+
}
|
137
151
|
};
|
138
152
|
|
139
153
|
BootstrapSwitch.prototype.size = function(value) {
|
@@ -160,6 +174,12 @@
|
|
160
174
|
return this.$element;
|
161
175
|
};
|
162
176
|
|
177
|
+
BootstrapSwitch.prototype.toggleAnimate = function() {
|
178
|
+
this.$wrapper.toggleClass("" + this.options.baseClass + "-animate");
|
179
|
+
this.options.animate = !this.options.animate;
|
180
|
+
return this.$element;
|
181
|
+
};
|
182
|
+
|
163
183
|
BootstrapSwitch.prototype.disabled = function(value) {
|
164
184
|
if (typeof value === "undefined") {
|
165
185
|
return this.options.disabled;
|
@@ -214,6 +234,36 @@
|
|
214
234
|
return this.$element;
|
215
235
|
};
|
216
236
|
|
237
|
+
BootstrapSwitch.prototype.inverse = function(value) {
|
238
|
+
var $off, $on;
|
239
|
+
if (typeof value === "undefined") {
|
240
|
+
return this.options.inverse;
|
241
|
+
}
|
242
|
+
value = !!value;
|
243
|
+
this.$wrapper[value ? "addClass" : "removeClass"]("" + this.options.baseClass + "-inverse");
|
244
|
+
$on = this.$on.clone(true);
|
245
|
+
$off = this.$off.clone(true);
|
246
|
+
this.$on.replaceWith($off);
|
247
|
+
this.$off.replaceWith($on);
|
248
|
+
this.$on = $off;
|
249
|
+
this.$off = $on;
|
250
|
+
this.options.inverse = value;
|
251
|
+
return this.$element;
|
252
|
+
};
|
253
|
+
|
254
|
+
BootstrapSwitch.prototype.toggleInverse = function() {
|
255
|
+
var $off, $on;
|
256
|
+
this.$wrapper.toggleClass("" + this.options.baseClass + "-inverse");
|
257
|
+
$on = this.$on.clone(true);
|
258
|
+
$off = this.$off.clone(true);
|
259
|
+
this.$on.replaceWith($off);
|
260
|
+
this.$off.replaceWith($on);
|
261
|
+
this.$on = $off;
|
262
|
+
this.$off = $on;
|
263
|
+
this.options.inverse = !this.options.inverse;
|
264
|
+
return this.$element;
|
265
|
+
};
|
266
|
+
|
217
267
|
BootstrapSwitch.prototype.onColor = function(value) {
|
218
268
|
var color;
|
219
269
|
color = this.options.onColor;
|
@@ -362,7 +412,7 @@
|
|
362
412
|
})(this),
|
363
413
|
"keydown.bootstrapSwitch": (function(_this) {
|
364
414
|
return function(e) {
|
365
|
-
if (!e.which || _this.options.disabled || _this.options.readonly
|
415
|
+
if (!e.which || _this.options.disabled || _this.options.readonly) {
|
366
416
|
return;
|
367
417
|
}
|
368
418
|
switch (e.which) {
|
@@ -423,7 +473,7 @@
|
|
423
473
|
})(this),
|
424
474
|
"mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (function(_this) {
|
425
475
|
return function(e) {
|
426
|
-
if (_this.isLabelDragging || _this.options.disabled || _this.options.readonly
|
476
|
+
if (_this.isLabelDragging || _this.options.disabled || _this.options.readonly) {
|
427
477
|
return;
|
428
478
|
}
|
429
479
|
e.preventDefault();
|
@@ -433,13 +483,15 @@
|
|
433
483
|
})(this),
|
434
484
|
"mouseup.bootstrapSwitch touchend.bootstrapSwitch": (function(_this) {
|
435
485
|
return function(e) {
|
486
|
+
var state;
|
436
487
|
if (!_this.isLabelDragging) {
|
437
488
|
return;
|
438
489
|
}
|
439
490
|
e.preventDefault();
|
440
491
|
if (_this.isLabelDragged) {
|
492
|
+
state = parseInt(_this.$container.css("margin-left"), 10) > -(_this.$container.width() / 6);
|
441
493
|
_this.isLabelDragged = false;
|
442
|
-
_this.state(
|
494
|
+
_this.state(_this.options.inverse ? !state : state);
|
443
495
|
if (_this.options.animate) {
|
444
496
|
_this.$wrapper.addClass("" + _this.options.baseClass + "-animate");
|
445
497
|
}
|
@@ -516,6 +568,8 @@
|
|
516
568
|
disabled: false,
|
517
569
|
readonly: false,
|
518
570
|
indeterminate: false,
|
571
|
+
inverse: false,
|
572
|
+
radioAllOff: false,
|
519
573
|
onColor: "primary",
|
520
574
|
offColor: "default",
|
521
575
|
onText: "ON",
|
@@ -523,7 +577,6 @@
|
|
523
577
|
labelText: " ",
|
524
578
|
baseClass: "bootstrap-switch",
|
525
579
|
wrapperClass: "wrapper",
|
526
|
-
radioAllOff: false,
|
527
580
|
onInit: function() {},
|
528
581
|
onSwitchChange: function() {}
|
529
582
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.0
|
2
|
+
* bootstrap-switch - v3.1.0
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -103,16 +103,37 @@
|
|
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-
|
113
|
-
|
114
|
-
|
115
|
-
|
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;
|
@@ -120,10 +141,13 @@
|
|
120
141
|
-moz-border-radius-bottomright: 4px;
|
121
142
|
border-bottom-right-radius: 4px;
|
122
143
|
}
|
123
|
-
.bootstrap-switch.bootstrap-switch-
|
124
|
-
|
125
|
-
|
126
|
-
|
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;
|
@@ -131,27 +155,6 @@
|
|
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,6 +163,35 @@
|
|
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,22 +464,6 @@
|
|
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,6 +502,22 @@
|
|
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;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.0
|
2
|
+
* bootstrap-switch - v3.1.0
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -71,27 +71,6 @@
|
|
71
71
|
font-size: 16px;
|
72
72
|
line-height: normal;
|
73
73
|
}
|
74
|
-
.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
|
75
|
-
-webkit-transition: margin-left 0.5s;
|
76
|
-
transition: margin-left 0.5s;
|
77
|
-
}
|
78
|
-
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-container {
|
79
|
-
margin-left: 0%;
|
80
|
-
}
|
81
|
-
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label {
|
82
|
-
border-bottom-right-radius: 3px;
|
83
|
-
border-top-right-radius: 3px;
|
84
|
-
}
|
85
|
-
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-container {
|
86
|
-
margin-left: -50%;
|
87
|
-
}
|
88
|
-
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label {
|
89
|
-
border-bottom-left-radius: 3px;
|
90
|
-
border-top-left-radius: 3px;
|
91
|
-
}
|
92
|
-
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-container {
|
93
|
-
margin-left: -25%;
|
94
|
-
}
|
95
74
|
.bootstrap-switch.bootstrap-switch-disabled,
|
96
75
|
.bootstrap-switch.bootstrap-switch-readonly,
|
97
76
|
.bootstrap-switch.bootstrap-switch-indeterminate {
|
@@ -110,12 +89,50 @@
|
|
110
89
|
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
|
111
90
|
cursor: default !important;
|
112
91
|
}
|
92
|
+
.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
|
93
|
+
-webkit-transition: margin-left 0.5s;
|
94
|
+
transition: margin-left 0.5s;
|
95
|
+
}
|
96
|
+
.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
|
97
|
+
border-bottom-left-radius: 0;
|
98
|
+
border-top-left-radius: 0;
|
99
|
+
border-bottom-right-radius: 3px;
|
100
|
+
border-top-right-radius: 3px;
|
101
|
+
}
|
102
|
+
.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {
|
103
|
+
border-bottom-right-radius: 0;
|
104
|
+
border-top-right-radius: 0;
|
105
|
+
border-bottom-left-radius: 3px;
|
106
|
+
border-top-left-radius: 3px;
|
107
|
+
}
|
113
108
|
.bootstrap-switch.bootstrap-switch-focused {
|
114
109
|
border-color: #66afe9;
|
115
110
|
outline: 0;
|
116
111
|
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
117
112
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
118
113
|
}
|
114
|
+
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-container,
|
115
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-container {
|
116
|
+
margin-left: 0%;
|
117
|
+
}
|
118
|
+
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
|
119
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {
|
120
|
+
border-bottom-right-radius: 3px;
|
121
|
+
border-top-right-radius: 3px;
|
122
|
+
}
|
123
|
+
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-container,
|
124
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-container {
|
125
|
+
margin-left: -50%;
|
126
|
+
}
|
127
|
+
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
|
128
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {
|
129
|
+
border-bottom-left-radius: 3px;
|
130
|
+
border-top-left-radius: 3px;
|
131
|
+
}
|
132
|
+
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-container,
|
133
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-indeterminate .bootstrap-switch-container {
|
134
|
+
margin-left: -25%;
|
135
|
+
}
|
119
136
|
.bootstrap-switch .bootstrap-switch-container {
|
120
137
|
display: inline-block;
|
121
138
|
width: 150%;
|
@@ -174,14 +191,6 @@
|
|
174
191
|
color: #000;
|
175
192
|
background: #eeeeee;
|
176
193
|
}
|
177
|
-
.bootstrap-switch .bootstrap-switch-handle-on {
|
178
|
-
border-bottom-left-radius: 3px;
|
179
|
-
border-top-left-radius: 3px;
|
180
|
-
}
|
181
|
-
.bootstrap-switch .bootstrap-switch-handle-off {
|
182
|
-
border-bottom-right-radius: 3px;
|
183
|
-
border-top-right-radius: 3px;
|
184
|
-
}
|
185
194
|
.bootstrap-switch .bootstrap-switch-label {
|
186
195
|
text-align: center;
|
187
196
|
margin-top: -1px;
|
@@ -191,6 +200,14 @@
|
|
191
200
|
color: #333333;
|
192
201
|
background: #ffffff;
|
193
202
|
}
|
203
|
+
.bootstrap-switch .bootstrap-switch-handle-on {
|
204
|
+
border-bottom-left-radius: 3px;
|
205
|
+
border-top-left-radius: 3px;
|
206
|
+
}
|
207
|
+
.bootstrap-switch .bootstrap-switch-handle-off {
|
208
|
+
border-bottom-right-radius: 3px;
|
209
|
+
border-top-right-radius: 3px;
|
210
|
+
}
|
194
211
|
.bootstrap-switch input[type='radio'],
|
195
212
|
.bootstrap-switch input[type='checkbox'] {
|
196
213
|
position: absolute !important;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-switch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel van Rijn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|