bootstrap-switch-rails 1.9.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,439 @@
1
- .clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.has-switch{display:inline-block;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);position:relative;text-align:left;overflow:hidden;line-height:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;vertical-align:middle;min-width:100px}.has-switch.switch-mini{min-width:72px}.has-switch.switch-mini i.switch-mini-icons{height:1.2em;line-height:9px;vertical-align:text-top;text-align:center;transform:scale(0.6);margin-top:-1px;margin-bottom:-1px}.has-switch.switch-small{min-width:80px}.has-switch.switch-large{min-width:120px}.has-switch.deactivate{opacity:.5;filter:alpha(opacity=50);cursor:default!important}.has-switch.deactivate label,.has-switch.deactivate span{cursor:default!important}.has-switch>div{display:inline-block;width:150%;position:relative;top:0}.has-switch>div.switch-animate{-webkit-transition:left .5s;-moz-transition:left .5s;-o-transition:left .5s;transition:left .5s}.has-switch>div.switch-off{left:-50%}.has-switch>div.switch-on{left:0}.has-switch input[type=radio],.has-switch input[type=checkbox]{display:none}.has-switch span,.has-switch label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;position:relative;display:inline-block;height:100%;padding-bottom:4px;padding-top:4px;font-size:14px;line-height:20px}.has-switch span.switch-mini,.has-switch label.switch-mini{padding-bottom:4px;padding-top:4px;font-size:10px;line-height:9px}.has-switch span.switch-small,.has-switch label.switch-small{padding-bottom:3px;padding-top:3px;font-size:12px;line-height:18px}.has-switch span.switch-large,.has-switch label.switch-large{padding-bottom:9px;padding-top:9px;font-size:16px;line-height:normal}.has-switch label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;width:34%;border-left:1px solid #ccc;border-right:1px solid #ccc;color:#333;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch label:hover,.has-switch label:focus,.has-switch label:active,.has-switch label.active,.has-switch label.disabled,.has-switch label[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.has-switch label:active,.has-switch label.active{background-color:#ccc \9}.has-switch label i{color:#000;text-shadow:0 1px 0 #fff;line-height:18px;pointer-events:none}.has-switch span{text-align:center;z-index:1;width:33%}.has-switch span.switch-left{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px}.has-switch span.switch-right{color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f0f0f0;background-image:-moz-linear-gradient(top,#e6e6e6,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e6e6e6),to(#fff));background-image:-webkit-linear-gradient(top,#e6e6e6,#fff);background-image:-o-linear-gradient(top,#e6e6e6,#fff);background-image:linear-gradient(to bottom,#e6e6e6,#fff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);border-color:#fff #fff #d9d9d9;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#fff;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-right:hover,.has-switch span.switch-right:focus,.has-switch span.switch-right:active,.has-switch span.switch-right.active,.has-switch span.switch-right.disabled,.has-switch span.switch-right[disabled]{color:#333;background-color:#fff;*background-color:#f2f2f2}.has-switch span.switch-right:active,.has-switch span.switch-right.active{background-color:#e6e6e6 \9}.has-switch span.switch-primary,.has-switch span.switch-left{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#005fcc;background-image:-moz-linear-gradient(top,#04c,#08c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#04c),to(#08c));background-image:-webkit-linear-gradient(top,#04c,#08c);background-image:-o-linear-gradient(top,#04c,#08c);background-image:linear-gradient(to bottom,#04c,#08c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);border-color:#08c #08c #005580;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#08c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-primary:hover,.has-switch span.switch-left:hover,.has-switch span.switch-primary:focus,.has-switch span.switch-left:focus,.has-switch span.switch-primary:active,.has-switch span.switch-left:active,.has-switch span.switch-primary.active,.has-switch span.switch-left.active,.has-switch span.switch-primary.disabled,.has-switch span.switch-left.disabled,.has-switch span.switch-primary[disabled],.has-switch span.switch-left[disabled]{color:#fff;background-color:#08c;*background-color:#0077b3}.has-switch span.switch-primary:active,.has-switch span.switch-left:active,.has-switch span.switch-primary.active,.has-switch span.switch-left.active{background-color:#069 \9}.has-switch span.switch-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#41a7c5;background-image:-moz-linear-gradient(top,#2f96b4,#5bc0de);background-image:-webkit-gradient(linear,0 0,0 100%,from(#2f96b4),to(#5bc0de));background-image:-webkit-linear-gradient(top,#2f96b4,#5bc0de);background-image:-o-linear-gradient(top,#2f96b4,#5bc0de);background-image:linear-gradient(to bottom,#2f96b4,#5bc0de);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0);border-color:#5bc0de #5bc0de #28a1c5;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#5bc0de;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-info:hover,.has-switch span.switch-info:focus,.has-switch span.switch-info:active,.has-switch span.switch-info.active,.has-switch span.switch-info.disabled,.has-switch span.switch-info[disabled]{color:#fff;background-color:#5bc0de;*background-color:#46b8da}.has-switch span.switch-info:active,.has-switch span.switch-info.active{background-color:#31b0d5 \9}.has-switch span.switch-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#58b058;background-image:-moz-linear-gradient(top,#51a351,#62c462);background-image:-webkit-gradient(linear,0 0,0 100%,from(#51a351),to(#62c462));background-image:-webkit-linear-gradient(top,#51a351,#62c462);background-image:-o-linear-gradient(top,#51a351,#62c462);background-image:linear-gradient(to bottom,#51a351,#62c462);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0);border-color:#62c462 #62c462 #3b9e3b;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#62c462;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-success:hover,.has-switch span.switch-success:focus,.has-switch span.switch-success:active,.has-switch span.switch-success.active,.has-switch span.switch-success.disabled,.has-switch span.switch-success[disabled]{color:#fff;background-color:#62c462;*background-color:#4fbd4f}.has-switch span.switch-success:active,.has-switch span.switch-success.active{background-color:#42b142 \9}.has-switch span.switch-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f9a123;background-image:-moz-linear-gradient(top,#f89406,#fbb450);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f89406),to(#fbb450));background-image:-webkit-linear-gradient(top,#f89406,#fbb450);background-image:-o-linear-gradient(top,#f89406,#fbb450);background-image:linear-gradient(to bottom,#f89406,#fbb450);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0);border-color:#fbb450 #fbb450 #f89406;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#fbb450;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-warning:hover,.has-switch span.switch-warning:focus,.has-switch span.switch-warning:active,.has-switch span.switch-warning.active,.has-switch span.switch-warning.disabled,.has-switch span.switch-warning[disabled]{color:#fff;background-color:#fbb450;*background-color:#faa937}.has-switch span.switch-warning:active,.has-switch span.switch-warning.active{background-color:#fa9f1e \9}.has-switch span.switch-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#d14641;background-image:-moz-linear-gradient(top,#bd362f,#ee5f5b);background-image:-webkit-gradient(linear,0 0,0 100%,from(#bd362f),to(#ee5f5b));background-image:-webkit-linear-gradient(top,#bd362f,#ee5f5b);background-image:-o-linear-gradient(top,#bd362f,#ee5f5b);background-image:linear-gradient(to bottom,#bd362f,#ee5f5b);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0);border-color:#ee5f5b #ee5f5b #e51d18;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#ee5f5b;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-danger:hover,.has-switch span.switch-danger:focus,.has-switch span.switch-danger:active,.has-switch span.switch-danger.active,.has-switch span.switch-danger.disabled,.has-switch span.switch-danger[disabled]{color:#fff;background-color:#ee5f5b;*background-color:#ec4844}.has-switch span.switch-danger:active,.has-switch span.switch-danger.active{background-color:#e9322d \9}.has-switch span.switch-default{color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f0f0f0;background-image:-moz-linear-gradient(top,#e6e6e6,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e6e6e6),to(#fff));background-image:-webkit-linear-gradient(top,#e6e6e6,#fff);background-image:-o-linear-gradient(top,#e6e6e6,#fff);background-image:linear-gradient(to bottom,#e6e6e6,#fff);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);border-color:#fff #fff #d9d9d9;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#fff;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.has-switch span.switch-default:hover,.has-switch span.switch-default:focus,.has-switch span.switch-default:active,.has-switch span.switch-default.active,.has-switch span.switch-default.disabled,.has-switch span.switch-default[disabled]{color:#333;background-color:#fff;*background-color:#f2f2f2}.has-switch span.switch-default:active,.has-switch span.switch-default.active{background-color:#e6e6e6 \9}
1
+ /* ========================================================================
2
+ * bootstrap-switch - v2.0.0
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
+
22
+ .clearfix {
23
+ *zoom: 1;
24
+ }
25
+ .clearfix:before,
26
+ .clearfix:after {
27
+ display: table;
28
+ content: "";
29
+ line-height: 0;
30
+ }
31
+ .clearfix:after {
32
+ clear: both;
33
+ }
34
+ .hide-text {
35
+ font: 0/0 a;
36
+ color: transparent;
37
+ text-shadow: none;
38
+ background-color: transparent;
39
+ border: 0;
40
+ }
41
+ .input-block-level {
42
+ display: block;
43
+ width: 100%;
44
+ min-height: 30px;
45
+ -webkit-box-sizing: border-box;
46
+ -moz-box-sizing: border-box;
47
+ box-sizing: border-box;
48
+ }
49
+ .has-switch {
50
+ display: inline-block;
51
+ cursor: pointer;
52
+ -webkit-border-radius: 5px;
53
+ -moz-border-radius: 5px;
54
+ border-radius: 5px;
55
+ border: 1px solid;
56
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
57
+ position: relative;
58
+ text-align: left;
59
+ overflow: hidden;
60
+ line-height: 8px;
61
+ -webkit-user-select: none;
62
+ -moz-user-select: none;
63
+ -ms-user-select: none;
64
+ -o-user-select: none;
65
+ user-select: none;
66
+ vertical-align: middle;
67
+ min-width: 100px;
68
+ -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
69
+ -moz-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
70
+ -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
71
+ transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
72
+ }
73
+ .has-switch.switch-mini {
74
+ min-width: 72px;
75
+ }
76
+ .has-switch.switch-mini i.switch-mini-icons {
77
+ height: 1.20em;
78
+ line-height: 9px;
79
+ vertical-align: text-top;
80
+ text-align: center;
81
+ transform: scale(0.6);
82
+ margin-top: -1px;
83
+ margin-bottom: -1px;
84
+ }
85
+ .has-switch.switch-small {
86
+ min-width: 80px;
87
+ }
88
+ .has-switch.switch-large {
89
+ min-width: 120px;
90
+ }
91
+ .has-switch.disabled {
92
+ opacity: 0.5;
93
+ filter: alpha(opacity=50);
94
+ cursor: default !important;
95
+ }
96
+ .has-switch.disabled label,
97
+ .has-switch.disabled span {
98
+ cursor: default !important;
99
+ }
100
+ .has-switch > div {
101
+ display: inline-block;
102
+ width: 150%;
103
+ position: relative;
104
+ top: 0;
105
+ }
106
+ .has-switch > div.switch-animate {
107
+ -webkit-transition: left 0.5s;
108
+ -moz-transition: left 0.5s;
109
+ -o-transition: left 0.5s;
110
+ transition: left 0.5s;
111
+ }
112
+ .has-switch > div.switch-off {
113
+ left: -50%;
114
+ }
115
+ .has-switch > div.switch-on {
116
+ left: 0%;
117
+ }
118
+ .has-switch input[type=radio],
119
+ .has-switch input[type=checkbox] {
120
+ display: none;
121
+ }
122
+ .has-switch span,
123
+ .has-switch label {
124
+ -webkit-box-sizing: border-box;
125
+ -moz-box-sizing: border-box;
126
+ box-sizing: border-box;
127
+ cursor: pointer;
128
+ position: relative;
129
+ display: inline-block;
130
+ height: 100%;
131
+ padding-bottom: 4px;
132
+ padding-top: 4px;
133
+ font-size: 14px;
134
+ line-height: 20px;
135
+ }
136
+ .has-switch span.switch-mini,
137
+ .has-switch label.switch-mini {
138
+ padding-bottom: 4px;
139
+ padding-top: 4px;
140
+ font-size: 10px;
141
+ line-height: 9px;
142
+ }
143
+ .has-switch span.switch-small,
144
+ .has-switch label.switch-small {
145
+ padding-bottom: 3px;
146
+ padding-top: 3px;
147
+ font-size: 12px;
148
+ line-height: 18px;
149
+ }
150
+ .has-switch span.switch-large,
151
+ .has-switch label.switch-large {
152
+ padding-bottom: 9px;
153
+ padding-top: 9px;
154
+ font-size: 16px;
155
+ line-height: normal;
156
+ }
157
+ .has-switch label {
158
+ text-align: center;
159
+ margin-top: -1px;
160
+ margin-bottom: -1px;
161
+ z-index: 100;
162
+ width: 34%;
163
+ border-left: 1px solid #cccccc;
164
+ border-right: 1px solid #cccccc;
165
+ color: #333333;
166
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
167
+ background-color: #f5f5f5;
168
+ background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
169
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
170
+ background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
171
+ background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
172
+ background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
173
+ background-repeat: repeat-x;
174
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
175
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
176
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
177
+ *background-color: #e6e6e6;
178
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
179
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
180
+ }
181
+ .has-switch label:hover,
182
+ .has-switch label:focus,
183
+ .has-switch label:active,
184
+ .has-switch label.active,
185
+ .has-switch label.disabled,
186
+ .has-switch label[disabled] {
187
+ color: #333333;
188
+ background-color: #e6e6e6;
189
+ *background-color: #d9d9d9;
190
+ }
191
+ .has-switch label:active,
192
+ .has-switch label.active {
193
+ background-color: #cccccc \9;
194
+ }
195
+ .has-switch label i {
196
+ color: #000;
197
+ text-shadow: 0 1px 0 #fff;
198
+ line-height: 18px;
199
+ pointer-events: none;
200
+ }
201
+ .has-switch span {
202
+ text-align: center;
203
+ z-index: 1;
204
+ width: 33%;
205
+ }
206
+ .has-switch span.switch-left {
207
+ -webkit-border-top-left-radius: 4px;
208
+ -moz-border-radius-topleft: 4px;
209
+ border-top-left-radius: 4px;
210
+ -webkit-border-bottom-left-radius: 4px;
211
+ -moz-border-radius-bottomleft: 4px;
212
+ border-bottom-left-radius: 4px;
213
+ }
214
+ .has-switch span.switch-right {
215
+ color: #333333;
216
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
217
+ background-color: #f0f0f0;
218
+ background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
219
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
220
+ background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
221
+ background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
222
+ background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
223
+ background-repeat: repeat-x;
224
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
225
+ border-color: #ffffff #ffffff #d9d9d9;
226
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
227
+ *background-color: #ffffff;
228
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
229
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
230
+ }
231
+ .has-switch span.switch-right:hover,
232
+ .has-switch span.switch-right:focus,
233
+ .has-switch span.switch-right:active,
234
+ .has-switch span.switch-right.active,
235
+ .has-switch span.switch-right.disabled,
236
+ .has-switch span.switch-right[disabled] {
237
+ color: #333333;
238
+ background-color: #ffffff;
239
+ *background-color: #f2f2f2;
240
+ }
241
+ .has-switch span.switch-right:active,
242
+ .has-switch span.switch-right.active {
243
+ background-color: #e6e6e6 \9;
244
+ }
245
+ .has-switch span.switch-primary,
246
+ .has-switch span.switch-left {
247
+ color: #ffffff;
248
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
249
+ background-color: #005fcc;
250
+ background-image: -moz-linear-gradient(top, #0044cc, #0088cc);
251
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#0088cc));
252
+ background-image: -webkit-linear-gradient(top, #0044cc, #0088cc);
253
+ background-image: -o-linear-gradient(top, #0044cc, #0088cc);
254
+ background-image: linear-gradient(to bottom, #0044cc, #0088cc);
255
+ background-repeat: repeat-x;
256
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);
257
+ border-color: #0088cc #0088cc #005580;
258
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
259
+ *background-color: #0088cc;
260
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
261
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
262
+ }
263
+ .has-switch span.switch-primary:hover,
264
+ .has-switch span.switch-left:hover,
265
+ .has-switch span.switch-primary:focus,
266
+ .has-switch span.switch-left:focus,
267
+ .has-switch span.switch-primary:active,
268
+ .has-switch span.switch-left:active,
269
+ .has-switch span.switch-primary.active,
270
+ .has-switch span.switch-left.active,
271
+ .has-switch span.switch-primary.disabled,
272
+ .has-switch span.switch-left.disabled,
273
+ .has-switch span.switch-primary[disabled],
274
+ .has-switch span.switch-left[disabled] {
275
+ color: #ffffff;
276
+ background-color: #0088cc;
277
+ *background-color: #0077b3;
278
+ }
279
+ .has-switch span.switch-primary:active,
280
+ .has-switch span.switch-left:active,
281
+ .has-switch span.switch-primary.active,
282
+ .has-switch span.switch-left.active {
283
+ background-color: #006699 \9;
284
+ }
285
+ .has-switch span.switch-info {
286
+ color: #ffffff;
287
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
288
+ background-color: #41a7c5;
289
+ background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de);
290
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2f96b4), to(#5bc0de));
291
+ background-image: -webkit-linear-gradient(top, #2f96b4, #5bc0de);
292
+ background-image: -o-linear-gradient(top, #2f96b4, #5bc0de);
293
+ background-image: linear-gradient(to bottom, #2f96b4, #5bc0de);
294
+ background-repeat: repeat-x;
295
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0);
296
+ border-color: #5bc0de #5bc0de #28a1c5;
297
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
298
+ *background-color: #5bc0de;
299
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
300
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
301
+ }
302
+ .has-switch span.switch-info:hover,
303
+ .has-switch span.switch-info:focus,
304
+ .has-switch span.switch-info:active,
305
+ .has-switch span.switch-info.active,
306
+ .has-switch span.switch-info.disabled,
307
+ .has-switch span.switch-info[disabled] {
308
+ color: #ffffff;
309
+ background-color: #5bc0de;
310
+ *background-color: #46b8da;
311
+ }
312
+ .has-switch span.switch-info:active,
313
+ .has-switch span.switch-info.active {
314
+ background-color: #31b0d5 \9;
315
+ }
316
+ .has-switch span.switch-success {
317
+ color: #ffffff;
318
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
319
+ background-color: #58b058;
320
+ background-image: -moz-linear-gradient(top, #51a351, #62c462);
321
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#51a351), to(#62c462));
322
+ background-image: -webkit-linear-gradient(top, #51a351, #62c462);
323
+ background-image: -o-linear-gradient(top, #51a351, #62c462);
324
+ background-image: linear-gradient(to bottom, #51a351, #62c462);
325
+ background-repeat: repeat-x;
326
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0);
327
+ border-color: #62c462 #62c462 #3b9e3b;
328
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
329
+ *background-color: #62c462;
330
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
331
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
332
+ }
333
+ .has-switch span.switch-success:hover,
334
+ .has-switch span.switch-success:focus,
335
+ .has-switch span.switch-success:active,
336
+ .has-switch span.switch-success.active,
337
+ .has-switch span.switch-success.disabled,
338
+ .has-switch span.switch-success[disabled] {
339
+ color: #ffffff;
340
+ background-color: #62c462;
341
+ *background-color: #4fbd4f;
342
+ }
343
+ .has-switch span.switch-success:active,
344
+ .has-switch span.switch-success.active {
345
+ background-color: #42b142 \9;
346
+ }
347
+ .has-switch span.switch-warning {
348
+ color: #ffffff;
349
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
350
+ background-color: #f9a123;
351
+ background-image: -moz-linear-gradient(top, #f89406, #fbb450);
352
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f89406), to(#fbb450));
353
+ background-image: -webkit-linear-gradient(top, #f89406, #fbb450);
354
+ background-image: -o-linear-gradient(top, #f89406, #fbb450);
355
+ background-image: linear-gradient(to bottom, #f89406, #fbb450);
356
+ background-repeat: repeat-x;
357
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0);
358
+ border-color: #fbb450 #fbb450 #f89406;
359
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
360
+ *background-color: #fbb450;
361
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
362
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
363
+ }
364
+ .has-switch span.switch-warning:hover,
365
+ .has-switch span.switch-warning:focus,
366
+ .has-switch span.switch-warning:active,
367
+ .has-switch span.switch-warning.active,
368
+ .has-switch span.switch-warning.disabled,
369
+ .has-switch span.switch-warning[disabled] {
370
+ color: #ffffff;
371
+ background-color: #fbb450;
372
+ *background-color: #faa937;
373
+ }
374
+ .has-switch span.switch-warning:active,
375
+ .has-switch span.switch-warning.active {
376
+ background-color: #fa9f1e \9;
377
+ }
378
+ .has-switch span.switch-danger {
379
+ color: #ffffff;
380
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
381
+ background-color: #d14641;
382
+ background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b);
383
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd362f), to(#ee5f5b));
384
+ background-image: -webkit-linear-gradient(top, #bd362f, #ee5f5b);
385
+ background-image: -o-linear-gradient(top, #bd362f, #ee5f5b);
386
+ background-image: linear-gradient(to bottom, #bd362f, #ee5f5b);
387
+ background-repeat: repeat-x;
388
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0);
389
+ border-color: #ee5f5b #ee5f5b #e51d18;
390
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
391
+ *background-color: #ee5f5b;
392
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
393
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
394
+ }
395
+ .has-switch span.switch-danger:hover,
396
+ .has-switch span.switch-danger:focus,
397
+ .has-switch span.switch-danger:active,
398
+ .has-switch span.switch-danger.active,
399
+ .has-switch span.switch-danger.disabled,
400
+ .has-switch span.switch-danger[disabled] {
401
+ color: #ffffff;
402
+ background-color: #ee5f5b;
403
+ *background-color: #ec4844;
404
+ }
405
+ .has-switch span.switch-danger:active,
406
+ .has-switch span.switch-danger.active {
407
+ background-color: #e9322d \9;
408
+ }
409
+ .has-switch span.switch-default {
410
+ color: #333333;
411
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
412
+ background-color: #f0f0f0;
413
+ background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
414
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
415
+ background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
416
+ background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
417
+ background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
418
+ background-repeat: repeat-x;
419
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
420
+ border-color: #ffffff #ffffff #d9d9d9;
421
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
422
+ *background-color: #ffffff;
423
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders */
424
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
425
+ }
426
+ .has-switch span.switch-default:hover,
427
+ .has-switch span.switch-default:focus,
428
+ .has-switch span.switch-default:active,
429
+ .has-switch span.switch-default.active,
430
+ .has-switch span.switch-default.disabled,
431
+ .has-switch span.switch-default[disabled] {
432
+ color: #333333;
433
+ background-color: #ffffff;
434
+ *background-color: #f2f2f2;
435
+ }
436
+ .has-switch span.switch-default:active,
437
+ .has-switch span.switch-default.active {
438
+ background-color: #e6e6e6 \9;
439
+ }
@@ -1 +1,182 @@
1
- .has-switch{display:inline-block;cursor:pointer;border-radius:4px;border:1px solid;border-color:#ccc;position:relative;text-align:left;overflow:hidden;line-height:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;vertical-align:middle;min-width:100px}.has-switch.switch-mini{min-width:72px}.has-switch.switch-mini i.switch-mini-icons{height:1.2em;line-height:9px;vertical-align:text-top;text-align:center;transform:scale(0.6);margin-top:-1px;margin-bottom:-1px}.has-switch.switch-small{min-width:80px}.has-switch.switch-large{min-width:120px}.has-switch.deactivate{opacity:50;filter:alpha(opacity=5000);cursor:default!important}.has-switch.deactivate label,.has-switch.deactivate span{cursor:default!important}.has-switch>div{display:inline-block;width:150%;position:relative;top:0}.has-switch>div.switch-animate{-webkit-transition:left .5s;transition:left .5s}.has-switch>div.switch-off{left:-50%}.has-switch>div.switch-on{left:0}.has-switch input[type=radio],.has-switch input[type=checkbox]{display:none}.has-switch span,.has-switch label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;position:relative;display:inline-block;height:100%;padding-bottom:4px;padding-top:4px;font-size:14px;line-height:20px}.has-switch span.switch-mini,.has-switch label.switch-mini{padding-bottom:4px;padding-top:4px;font-size:10px;line-height:9px}.has-switch span.switch-small,.has-switch label.switch-small{padding-bottom:3px;padding-top:3px;font-size:12px;line-height:18px}.has-switch span.switch-large,.has-switch label.switch-large{padding-bottom:9px;padding-top:9px;font-size:16px;line-height:normal}.has-switch label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;width:34%;background:#fff}.has-switch label i{color:#000;text-shadow:0 1px 0 #fff;line-height:18px;pointer-events:none}.has-switch span{text-align:center;z-index:1;width:33%}.has-switch span.switch-left{color:red;border-bottom-left-radius:4px;border-top-left-radius:4px}.has-switch span.switch-right{color:#000;background:#eee}.has-switch span.switch-primary,.has-switch span.switch-left{color:#fff;background:#428bca}.has-switch span.switch-info{color:#fff;background:#5bc0de}.has-switch span.switch-success{color:#fff;background:#5cb85c}.has-switch span.switch-warning{background:#f0ad4e;color:#fff}.has-switch span.switch-danger{color:#fff;background:#d9534f}.has-switch span.switch-default{color:#000;background:#eee}
1
+ /* ========================================================================
2
+ * bootstrap-switch - v2.0.0
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
+
22
+ .has-switch {
23
+ display: inline-block;
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
+ -webkit-user-select: none;
33
+ -moz-user-select: none;
34
+ -ms-user-select: none;
35
+ -o-user-select: none;
36
+ user-select: none;
37
+ vertical-align: middle;
38
+ min-width: 100px;
39
+ -webkit-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
+ .has-switch:focus {
43
+ border-color: #66afe9;
44
+ outline: 0;
45
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
46
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
47
+ }
48
+ .has-switch.switch-mini {
49
+ min-width: 72px;
50
+ }
51
+ .has-switch.switch-mini i.switch-mini-icons {
52
+ height: 1.20em;
53
+ line-height: 9px;
54
+ vertical-align: text-top;
55
+ text-align: center;
56
+ transform: scale(0.6);
57
+ margin-top: -1px;
58
+ margin-bottom: -1px;
59
+ }
60
+ .has-switch.switch-small {
61
+ min-width: 80px;
62
+ }
63
+ .has-switch.switch-large {
64
+ min-width: 120px;
65
+ }
66
+ .has-switch.disabled {
67
+ opacity: 0.5;
68
+ filter: alpha(opacity=50);
69
+ cursor: default !important;
70
+ }
71
+ .has-switch.disabled label,
72
+ .has-switch.disabled span {
73
+ cursor: default !important;
74
+ }
75
+ .has-switch > div {
76
+ display: inline-block;
77
+ width: 150%;
78
+ position: relative;
79
+ top: 0;
80
+ }
81
+ .has-switch > div.switch-animate {
82
+ -webkit-transition: left 0.5s;
83
+ transition: left 0.5s;
84
+ }
85
+ .has-switch > div.switch-off {
86
+ left: -50%;
87
+ }
88
+ .has-switch > div.switch-on {
89
+ left: 0%;
90
+ }
91
+ .has-switch input[type=radio],
92
+ .has-switch input[type=checkbox] {
93
+ display: none;
94
+ }
95
+ .has-switch span,
96
+ .has-switch label {
97
+ -webkit-box-sizing: border-box;
98
+ -moz-box-sizing: border-box;
99
+ box-sizing: border-box;
100
+ cursor: pointer;
101
+ position: relative;
102
+ display: inline-block !important;
103
+ height: 100%;
104
+ padding-bottom: 4px;
105
+ padding-top: 4px;
106
+ font-size: 14px;
107
+ line-height: 20px;
108
+ }
109
+ .has-switch span.switch-mini,
110
+ .has-switch label.switch-mini {
111
+ padding-bottom: 4px;
112
+ padding-top: 4px;
113
+ font-size: 10px;
114
+ line-height: 9px;
115
+ }
116
+ .has-switch span.switch-small,
117
+ .has-switch label.switch-small {
118
+ padding-bottom: 3px;
119
+ padding-top: 3px;
120
+ font-size: 12px;
121
+ line-height: 18px;
122
+ }
123
+ .has-switch span.switch-large,
124
+ .has-switch label.switch-large {
125
+ padding-bottom: 9px;
126
+ padding-top: 9px;
127
+ font-size: 16px;
128
+ line-height: normal;
129
+ }
130
+ .has-switch label {
131
+ text-align: center;
132
+ margin-top: -1px;
133
+ margin-bottom: -1px;
134
+ z-index: 100;
135
+ width: 34%;
136
+ background: #ffffff;
137
+ }
138
+ .has-switch label i {
139
+ color: #000;
140
+ text-shadow: 0 1px 0 #fff;
141
+ line-height: 18px;
142
+ pointer-events: none;
143
+ }
144
+ .has-switch span {
145
+ text-align: center;
146
+ z-index: 1;
147
+ width: 33%;
148
+ }
149
+ .has-switch span.switch-left {
150
+ color: #f00;
151
+ border-bottom-left-radius: 4px;
152
+ border-top-left-radius: 4px;
153
+ }
154
+ .has-switch span.switch-right {
155
+ color: #000;
156
+ background: #eeeeee;
157
+ }
158
+ .has-switch span.switch-primary,
159
+ .has-switch span.switch-left {
160
+ color: #fff;
161
+ background: #428bca;
162
+ }
163
+ .has-switch span.switch-info {
164
+ color: #fff;
165
+ background: #5bc0de;
166
+ }
167
+ .has-switch span.switch-success {
168
+ color: #fff;
169
+ background: #5cb85c;
170
+ }
171
+ .has-switch span.switch-warning {
172
+ background: #f0ad4e;
173
+ color: #fff;
174
+ }
175
+ .has-switch span.switch-danger {
176
+ color: #fff;
177
+ background: #d9534f;
178
+ }
179
+ .has-switch span.switch-default {
180
+ color: #000;
181
+ background: #eeeeee;
182
+ }