bootstrap-switch-rails 3.3.3 → 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,11 @@
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
- */
1
+ /**
2
+ * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3
+ *
4
+ * @version v3.3.4
5
+ * @homepage https://bttstrp.github.io/bootstrap-switch
6
+ * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7
+ * @license Apache-2.0
8
+ */
21
9
 
22
10
  .clearfix {
23
11
  *zoom: 1;
@@ -90,7 +78,6 @@
90
78
  box-sizing: border-box;
91
79
  cursor: pointer;
92
80
  display: inline-block !important;
93
- height: 100%;
94
81
  padding-top: 4px;
95
82
  padding-bottom: 4px;
96
83
  padding-left: 8px;
@@ -105,19 +92,19 @@
105
92
  }
106
93
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
107
94
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
108
- color: #ffffff;
95
+ color: #fff;
109
96
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
110
97
  background-color: #005fcc;
111
- background-image: -moz-linear-gradient(top, #0044cc, #0088cc);
112
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#0088cc));
113
- background-image: -webkit-linear-gradient(top, #0044cc, #0088cc);
114
- background-image: -o-linear-gradient(top, #0044cc, #0088cc);
115
- background-image: linear-gradient(to bottom, #0044cc, #0088cc);
98
+ background-image: -moz-linear-gradient(top, #0044cc, #08c);
99
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#08c));
100
+ background-image: -webkit-linear-gradient(top, #0044cc, #08c);
101
+ background-image: -o-linear-gradient(top, #0044cc, #08c);
102
+ background-image: linear-gradient(to bottom, #0044cc, #08c);
116
103
  background-repeat: repeat-x;
117
104
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);
118
- border-color: #0088cc #0088cc #005580;
105
+ border-color: #08c #08c #005580;
119
106
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
120
- *background-color: #0088cc;
107
+ *background-color: #08c;
121
108
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
122
109
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
123
110
  }
@@ -133,8 +120,8 @@
133
120
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.disabled,
134
121
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary[disabled],
135
122
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary[disabled] {
136
- color: #ffffff;
137
- background-color: #0088cc;
123
+ color: #fff;
124
+ background-color: #08c;
138
125
  *background-color: #0077b3;
139
126
  }
140
127
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,
@@ -145,7 +132,7 @@
145
132
  }
146
133
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
147
134
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
148
- color: #ffffff;
135
+ color: #fff;
149
136
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
150
137
  background-color: #41a7c5;
151
138
  background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de);
@@ -173,7 +160,7 @@
173
160
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.disabled,
174
161
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info[disabled],
175
162
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info[disabled] {
176
- color: #ffffff;
163
+ color: #fff;
177
164
  background-color: #5bc0de;
178
165
  *background-color: #46b8da;
179
166
  }
@@ -185,7 +172,7 @@
185
172
  }
186
173
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
187
174
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
188
- color: #ffffff;
175
+ color: #fff;
189
176
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
190
177
  background-color: #58b058;
191
178
  background-image: -moz-linear-gradient(top, #51a351, #62c462);
@@ -213,7 +200,7 @@
213
200
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.disabled,
214
201
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[disabled],
215
202
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[disabled] {
216
- color: #ffffff;
203
+ color: #fff;
217
204
  background-color: #62c462;
218
205
  *background-color: #4fbd4f;
219
206
  }
@@ -225,7 +212,7 @@
225
212
  }
226
213
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
227
214
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
228
- color: #ffffff;
215
+ color: #fff;
229
216
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
230
217
  background-color: #f9a123;
231
218
  background-image: -moz-linear-gradient(top, #f89406, #fbb450);
@@ -253,7 +240,7 @@
253
240
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.disabled,
254
241
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning[disabled],
255
242
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning[disabled] {
256
- color: #ffffff;
243
+ color: #fff;
257
244
  background-color: #fbb450;
258
245
  *background-color: #faa937;
259
246
  }
@@ -265,7 +252,7 @@
265
252
  }
266
253
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
267
254
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
268
- color: #ffffff;
255
+ color: #fff;
269
256
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
270
257
  background-color: #d14641;
271
258
  background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b);
@@ -293,7 +280,7 @@
293
280
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled,
294
281
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger[disabled],
295
282
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger[disabled] {
296
- color: #ffffff;
283
+ color: #fff;
297
284
  background-color: #ee5f5b;
298
285
  *background-color: #ec4844;
299
286
  }
@@ -305,19 +292,19 @@
305
292
  }
306
293
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
307
294
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
308
- color: #333333;
295
+ color: #333;
309
296
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
310
297
  background-color: #f0f0f0;
311
- background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
312
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
313
- background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
314
- background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
315
- background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
298
+ background-image: -moz-linear-gradient(top, #e6e6e6, #fff);
299
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fff));
300
+ background-image: -webkit-linear-gradient(top, #e6e6e6, #fff);
301
+ background-image: -o-linear-gradient(top, #e6e6e6, #fff);
302
+ background-image: linear-gradient(to bottom, #e6e6e6, #fff);
316
303
  background-repeat: repeat-x;
317
304
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
318
- border-color: #ffffff #ffffff #d9d9d9;
305
+ border-color: #fff #fff #d9d9d9;
319
306
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
320
- *background-color: #ffffff;
307
+ *background-color: #fff;
321
308
  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
322
309
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
323
310
  }
@@ -333,8 +320,8 @@
333
320
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.disabled,
334
321
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default[disabled],
335
322
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default[disabled] {
336
- color: #333333;
337
- background-color: #ffffff;
323
+ color: #333;
324
+ background-color: #fff;
338
325
  *background-color: #f2f2f2;
339
326
  }
340
327
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,
@@ -348,16 +335,16 @@
348
335
  margin-top: -1px;
349
336
  margin-bottom: -1px;
350
337
  z-index: 100;
351
- border-left: 1px solid #cccccc;
352
- border-right: 1px solid #cccccc;
353
- color: #333333;
338
+ border-left: 1px solid #ccc;
339
+ border-right: 1px solid #ccc;
340
+ color: #333;
354
341
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
355
342
  background-color: #f5f5f5;
356
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
357
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
358
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
359
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
360
- background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
343
+ background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
344
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
345
+ background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
346
+ background-image: -o-linear-gradient(top, #fff, #e6e6e6);
347
+ background-image: linear-gradient(to bottom, #fff, #e6e6e6);
361
348
  background-repeat: repeat-x;
362
349
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
363
350
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
@@ -372,7 +359,7 @@
372
359
  .bootstrap-switch .bootstrap-switch-label.active,
373
360
  .bootstrap-switch .bootstrap-switch-label.disabled,
374
361
  .bootstrap-switch .bootstrap-switch-label[disabled] {
375
- color: #333333;
362
+ color: #333;
376
363
  background-color: #e6e6e6;
377
364
  *background-color: #d9d9d9;
378
365
  }
@@ -380,6 +367,9 @@
380
367
  .bootstrap-switch .bootstrap-switch-label.active {
381
368
  background-color: #cccccc \9;
382
369
  }
370
+ .bootstrap-switch span::before {
371
+ content: "\200b";
372
+ }
383
373
  .bootstrap-switch .bootstrap-switch-handle-on {
384
374
  -webkit-border-top-left-radius: 4px;
385
375
  -moz-border-radius-topleft: 4px;
@@ -404,6 +394,7 @@
404
394
  opacity: 0;
405
395
  filter: alpha(opacity=0);
406
396
  z-index: -1;
397
+ visibility: hidden;
407
398
  }
408
399
  .bootstrap-switch input[type='radio'].form-control,
409
400
  .bootstrap-switch input[type='checkbox'].form-control {
@@ -1,23 +1,11 @@
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
- */
1
+ /**
2
+ * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3
+ *
4
+ * @version v3.3.4
5
+ * @homepage https://bttstrp.github.io/bootstrap-switch
6
+ * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7
+ * @license Apache-2.0
8
+ */
21
9
 
22
10
  .bootstrap-switch {
23
11
  display: inline-block;
@@ -25,7 +13,7 @@
25
13
  cursor: pointer;
26
14
  border-radius: 4px;
27
15
  border: 1px solid;
28
- border-color: #cccccc;
16
+ border-color: #ccc;
29
17
  position: relative;
30
18
  text-align: left;
31
19
  overflow: hidden;
@@ -37,6 +25,7 @@
37
25
  user-select: none;
38
26
  vertical-align: middle;
39
27
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
28
+ -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
40
29
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
41
30
  }
42
31
  .bootstrap-switch .bootstrap-switch-container {
@@ -53,8 +42,8 @@
53
42
  -moz-box-sizing: border-box;
54
43
  box-sizing: border-box;
55
44
  cursor: pointer;
56
- display: inline-block !important;
57
- height: 100%;
45
+ display: table-cell;
46
+ vertical-align: middle;
58
47
  padding: 6px 12px;
59
48
  font-size: 14px;
60
49
  line-height: 20px;
@@ -67,7 +56,7 @@
67
56
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
68
57
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
69
58
  color: #fff;
70
- background: #428bca;
59
+ background: #337ab7;
71
60
  }
72
61
  .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
73
62
  .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
@@ -99,8 +88,11 @@
99
88
  margin-top: -1px;
100
89
  margin-bottom: -1px;
101
90
  z-index: 100;
102
- color: #333333;
103
- background: #ffffff;
91
+ color: #333;
92
+ background: #fff;
93
+ }
94
+ .bootstrap-switch span::before {
95
+ content: "\200b";
104
96
  }
105
97
  .bootstrap-switch .bootstrap-switch-handle-on {
106
98
  border-bottom-left-radius: 3px;
@@ -115,13 +107,11 @@
115
107
  position: absolute !important;
116
108
  top: 0;
117
109
  left: 0;
110
+ margin: 0;
111
+ z-index: -1;
118
112
  opacity: 0;
119
113
  filter: alpha(opacity=0);
120
- z-index: -1;
121
- }
122
- .bootstrap-switch input[type='radio'].form-control,
123
- .bootstrap-switch input[type='checkbox'].form-control {
124
- height: auto;
114
+ visibility: hidden;
125
115
  }
126
116
  .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
127
117
  .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
@@ -142,7 +132,7 @@
142
132
  .bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
143
133
  padding: 6px 16px;
144
134
  font-size: 18px;
145
- line-height: 1.33;
135
+ line-height: 1.3333333;
146
136
  }
147
137
  .bootstrap-switch.bootstrap-switch-disabled,
148
138
  .bootstrap-switch.bootstrap-switch-readonly,
@@ -164,6 +154,7 @@
164
154
  }
165
155
  .bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
166
156
  -webkit-transition: margin-left 0.5s;
157
+ -o-transition: margin-left 0.5s;
167
158
  transition: margin-left 0.5s;
168
159
  }
169
160
  .bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
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.3.3
4
+ version: 3.3.4
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: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '0'
41
41
  description: A small gem for putting bootstrap-switch into the Rails asset pipeline
42
42
  email:
43
- - manuel@manuelles.nl
43
+ - manuel@manuelvanrijn.nl
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.4.5
82
+ rubygems_version: 2.7.7
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: an asset gemification of the bootstrap-switch plugin