vhx-quartz 0.7.7 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vhx/quartz/version.rb +1 -1
- data/vendor/assets/javascripts/vhx-quartz.autosuggest.js +266 -0
- data/vendor/assets/javascripts/vhx-quartz.checkbox.js +46 -0
- data/vendor/assets/javascripts/vhx-quartz.filter.js +254 -0
- data/vendor/assets/javascripts/vhx-quartz.header.js +27 -0
- data/vendor/assets/javascripts/vhx-quartz.radio.js +66 -0
- data/vendor/assets/javascripts/vhx-quartz.search_input.js +66 -0
- data/vendor/assets/javascripts/vhx-quartz.select.js +263 -0
- data/vendor/assets/stylesheets/vhx-quartz.autosuggest.css +67 -0
- data/vendor/assets/stylesheets/vhx-quartz.checkbox.css +328 -0
- data/vendor/assets/stylesheets/vhx-quartz.css +9 -616
- data/vendor/assets/stylesheets/vhx-quartz.filter.css +66 -0
- data/vendor/assets/stylesheets/vhx-quartz.min.css +1 -1
- data/vendor/assets/stylesheets/vhx-quartz.radio.css +150 -0
- data/vendor/assets/stylesheets/vhx-quartz.select.css +128 -0
- metadata +14 -2
@@ -0,0 +1,328 @@
|
|
1
|
+
/* .....................................
|
2
|
+
Fonts
|
3
|
+
..................................... */
|
4
|
+
/* .....................................
|
5
|
+
Sets
|
6
|
+
..................................... */
|
7
|
+
/* .....................................
|
8
|
+
Media Query Ranges
|
9
|
+
..................................... */
|
10
|
+
/* .....................................
|
11
|
+
Colors - Grays
|
12
|
+
..................................... */
|
13
|
+
/* .....................................
|
14
|
+
Colors - Teals
|
15
|
+
..................................... */
|
16
|
+
/* .....................................
|
17
|
+
Colors - Red
|
18
|
+
..................................... */
|
19
|
+
/* .....................................
|
20
|
+
Colors - Navy
|
21
|
+
..................................... */
|
22
|
+
/* .....................................
|
23
|
+
Colors - Brand Palette
|
24
|
+
..................................... */
|
25
|
+
/* .....................................
|
26
|
+
Colors - External Palette
|
27
|
+
..................................... */
|
28
|
+
/* helper function for margin and padding
|
29
|
+
......................................*/
|
30
|
+
/*.....................................
|
31
|
+
Admin Checkbox
|
32
|
+
......................................*/
|
33
|
+
.form .checkbox {
|
34
|
+
position: relative;
|
35
|
+
display: inline-block;
|
36
|
+
min-height: 40px;
|
37
|
+
width: 100%;
|
38
|
+
color: #5E7887;
|
39
|
+
font-size: 14px;
|
40
|
+
background: transparent;
|
41
|
+
user-select: none;
|
42
|
+
/* checkbox
|
43
|
+
...................................*/
|
44
|
+
/* label unchecked
|
45
|
+
...................................*/
|
46
|
+
/* label not-checked
|
47
|
+
...................................*/
|
48
|
+
/* label checked
|
49
|
+
...................................*/
|
50
|
+
/* label checked
|
51
|
+
...................................*/ }
|
52
|
+
.form .checkbox:after {
|
53
|
+
content: "";
|
54
|
+
display: table;
|
55
|
+
clear: both; }
|
56
|
+
.form .checkbox input[type="checkbox"] {
|
57
|
+
display: none; }
|
58
|
+
.form .checkbox label {
|
59
|
+
display: block;
|
60
|
+
min-height: 40px;
|
61
|
+
margin: 0;
|
62
|
+
float: left;
|
63
|
+
box-sizing: border-box;
|
64
|
+
line-height: 40px; }
|
65
|
+
.form .checkbox label:after {
|
66
|
+
content: "";
|
67
|
+
display: table;
|
68
|
+
clear: both; }
|
69
|
+
.form .checkbox label.wide {
|
70
|
+
width: 100%; }
|
71
|
+
.form .checkbox label.wide .checkbox--contain {
|
72
|
+
min-height: 40px; }
|
73
|
+
.form .checkbox label .checkbox--contain {
|
74
|
+
width: 100%;
|
75
|
+
display: block; }
|
76
|
+
.form .checkbox label .checkbox--contain:after {
|
77
|
+
content: "";
|
78
|
+
display: table;
|
79
|
+
clear: both; }
|
80
|
+
.form .checkbox label .checkbox--icon {
|
81
|
+
display: inline-block;
|
82
|
+
width: 40px;
|
83
|
+
height: 40px;
|
84
|
+
margin-right: 10;
|
85
|
+
float: left;
|
86
|
+
background-color: #fff;
|
87
|
+
background-position: 50% 50%;
|
88
|
+
background-size: 75%;
|
89
|
+
position: relative;
|
90
|
+
box-shadow: none;
|
91
|
+
box-sizing: border-box;
|
92
|
+
border-radius: 3px;
|
93
|
+
transition: box-shadow .2s ease, color .2s ease; }
|
94
|
+
.form .checkbox label .checkbox--icon .checkbox-animate {
|
95
|
+
transition: all 300ms ease;
|
96
|
+
width: 30px;
|
97
|
+
height: 30px;
|
98
|
+
top: 4px;
|
99
|
+
right: 4px;
|
100
|
+
display: block;
|
101
|
+
position: absolute;
|
102
|
+
background: #fff; }
|
103
|
+
.form .checkbox label .checkbox--label {
|
104
|
+
display: block;
|
105
|
+
margin-left: 5px;
|
106
|
+
float: left;
|
107
|
+
min-height: 40px; }
|
108
|
+
.form .checkbox label.check-right .checkbox--label {
|
109
|
+
float: left;
|
110
|
+
text-align: left; }
|
111
|
+
.form .checkbox label.check-right .checkbox--icon {
|
112
|
+
float: right; }
|
113
|
+
.form .checkbox.invert input[type="checkbox"]:checked + label .checkbox--icon,
|
114
|
+
.form .checkbox input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
115
|
+
transition: border 400ms ease-out;
|
116
|
+
border: 1px solid #d1d9dc;
|
117
|
+
background-image: none; }
|
118
|
+
.form .checkbox input[type="checkbox"]:checked + label .checkbox--icon, .form .checkbox.invert input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
119
|
+
transition: border 400ms ease-out;
|
120
|
+
border: 1px solid #5E7887;
|
121
|
+
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2223%22%20height%3D%2223%22%20viewBox%3D%220%200%2023%2023%22%3E%3Cpath%20fill%3D%22%2322B8AF%22%20d%3D%22M9.291%2019.819l-3.323-3.323%2013.293-13.293%203.323%203.323z%22%2F%3E%3Cpath%20fill%3D%22%23149996%22%20d%3D%22M3.748%207.535l8.84%208.838-3.323%203.324-8.84-8.838z%22%2F%3E%3C%2Fsvg%3E");
|
122
|
+
background-repeat: no-repeat; }
|
123
|
+
.form .checkbox input[type="checkbox"]:checked + label .checkbox--icon .checkbox-animate, .form .checkbox.invert input[type="checkbox"]:not(:checked) + label .checkbox--icon .checkbox-animate {
|
124
|
+
width: 0px;
|
125
|
+
height: 0px; }
|
126
|
+
.form .checkbox input[type="checkbox"]:focus + label .checkbox--icon {
|
127
|
+
border: 1px solid #9aaab4; }
|
128
|
+
|
129
|
+
.form .checkbox.small {
|
130
|
+
min-height: 13.33333px; }
|
131
|
+
.form .checkbox.small label {
|
132
|
+
min-height: 13.33333px;
|
133
|
+
line-height: 13.33333px; }
|
134
|
+
.form .checkbox.small label .checkbox--icon {
|
135
|
+
width: 13.33333px;
|
136
|
+
height: 13.33333px; }
|
137
|
+
.form .checkbox.small label .checkbox--icon .checkbox-animate {
|
138
|
+
width: 10.33333px;
|
139
|
+
height: 10.33333px;
|
140
|
+
top: 1px;
|
141
|
+
right: 1px; }
|
142
|
+
.form .checkbox.small label .checkbox--label,
|
143
|
+
.form .checkbox.small label .checkbox--contain {
|
144
|
+
min-height: 13.33333px; }
|
145
|
+
|
146
|
+
.form .checkbox.medium {
|
147
|
+
min-height: 20px; }
|
148
|
+
.form .checkbox.medium label {
|
149
|
+
min-height: 20px;
|
150
|
+
line-height: 20px; }
|
151
|
+
.form .checkbox.medium label .checkbox--icon {
|
152
|
+
width: 20px;
|
153
|
+
height: 20px; }
|
154
|
+
.form .checkbox.medium label .checkbox--icon .checkbox-animate {
|
155
|
+
width: 15px;
|
156
|
+
height: 15px;
|
157
|
+
top: 2px;
|
158
|
+
right: 2px; }
|
159
|
+
.form .checkbox.medium label .checkbox--label,
|
160
|
+
.form .checkbox.medium label .checkbox--contain {
|
161
|
+
min-height: 20px; }
|
162
|
+
|
163
|
+
.form .checkbox.alt {
|
164
|
+
/* label not-checked
|
165
|
+
...................................*/
|
166
|
+
/* label checked
|
167
|
+
...................................*/ }
|
168
|
+
.form .checkbox.alt label {
|
169
|
+
border-radius: 20px;
|
170
|
+
background: #ffffff;
|
171
|
+
width: 70px;
|
172
|
+
padding: 7px; }
|
173
|
+
.form .checkbox.alt label .checkbox--contain {
|
174
|
+
display: block;
|
175
|
+
background: #ffffff;
|
176
|
+
position: relative;
|
177
|
+
padding: 0;
|
178
|
+
border-radius: 20px;
|
179
|
+
height: 100%;
|
180
|
+
width: 100%; }
|
181
|
+
.form .checkbox.alt label .checkbox--label {
|
182
|
+
display: none; }
|
183
|
+
.form .checkbox.alt label .checkbox--circle {
|
184
|
+
transition: all 200ms ease;
|
185
|
+
display: inline-block;
|
186
|
+
width: 24px;
|
187
|
+
height: 24px;
|
188
|
+
position: absolute;
|
189
|
+
top: 0; }
|
190
|
+
.form .checkbox.alt label .checkbox--circle .circle-top {
|
191
|
+
transition: opacity .2s ease;
|
192
|
+
display: block;
|
193
|
+
height: 12px;
|
194
|
+
overflow: hidden;
|
195
|
+
position: absolute;
|
196
|
+
top: 0px;
|
197
|
+
left: 0px; }
|
198
|
+
.form .checkbox.alt label .checkbox--circle .circle-top span {
|
199
|
+
display: block;
|
200
|
+
width: 24px;
|
201
|
+
height: 24px;
|
202
|
+
background: #D7DDE1;
|
203
|
+
border-radius: 24px; }
|
204
|
+
.form .checkbox.alt label .checkbox--circle .circle-bottom {
|
205
|
+
transition: opacity .2s ease;
|
206
|
+
display: block;
|
207
|
+
height: 12px;
|
208
|
+
overflow: hidden;
|
209
|
+
position: absolute;
|
210
|
+
bottom: 0px;
|
211
|
+
left: 0px; }
|
212
|
+
.form .checkbox.alt label .checkbox--circle .circle-bottom span {
|
213
|
+
position: relative;
|
214
|
+
top: -12px;
|
215
|
+
display: block;
|
216
|
+
width: 24px;
|
217
|
+
height: 24px;
|
218
|
+
background: #D7DDE1;
|
219
|
+
border-radius: 23px; }
|
220
|
+
.form .checkbox.alt.invert input[type="checkbox"]:checked + label,
|
221
|
+
.form .checkbox.alt input[type="checkbox"]:not(:checked) + label {
|
222
|
+
border: 1px solid #d1d9dc; }
|
223
|
+
.form .checkbox.alt.invert input[type="checkbox"]:checked + label .checkbox--icon,
|
224
|
+
.form .checkbox.alt input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
225
|
+
border: none;
|
226
|
+
height: 20px;
|
227
|
+
width: 20px;
|
228
|
+
position: absolute;
|
229
|
+
margin-right: 0;
|
230
|
+
top: 2px;
|
231
|
+
left: auto;
|
232
|
+
right: 3px;
|
233
|
+
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2223%22%20height%3D%2223%22%20viewBox%3D%220%200%2023%2023%22%3E%3Cpath%20d%3D%22M21.5%2018.3c.3.3.4.6.4.9%200%20.3-.1.6-.4.9l-1.3%201.4c-.3.3-.6.4-.9.4-.3%200-.6-.1-.9-.4l-6.8-6.8-6.8%206.8c-.3.3-.6.4-.9.4-.3%200-.6-.1-.9-.4l-1.4-1.3c-.3-.3-.4-.6-.4-.9%200-.3.1-.6.4-.9l6.8-6.9-6.9-6.8c-.2-.3-.3-.6-.3-.9%200-.3.1-.6.4-.9l1.4-1.4c.3-.3.6-.4.9-.4.3%200%20.6.1.9.4l6.8%206.8%206.8-6.8c.3-.3.6-.4.9-.4.3%200%20.6.1.9.4l1.3%201.4c.3.3.4.6.4.9%200%20.3-.1.7-.4.9l-6.8%206.9%206.8%206.7z%22%20fill%3D%22%23D1D9DC%22%2F%3E%3C%2Fsvg%3E");
|
234
|
+
background-repeat: no-repeat; }
|
235
|
+
.form .checkbox.alt.invert input[type="checkbox"]:checked + label .checkbox--circle,
|
236
|
+
.form .checkbox.alt input[type="checkbox"]:not(:checked) + label .checkbox--circle {
|
237
|
+
left: 0; }
|
238
|
+
.form .checkbox.alt.invert input[type="checkbox"]:checked + label .checkbox--circle .circle-top span,
|
239
|
+
.form .checkbox.alt input[type="checkbox"]:not(:checked) + label .checkbox--circle .circle-top span {
|
240
|
+
background: #D7DDE1; }
|
241
|
+
.form .checkbox.alt.invert input[type="checkbox"]:checked + label .checkbox--circle .circle-bottom span,
|
242
|
+
.form .checkbox.alt input[type="checkbox"]:not(:checked) + label .checkbox--circle .circle-bottom span {
|
243
|
+
background: #D7DDE1; }
|
244
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label {
|
245
|
+
border: 1px solid #9aaab4; }
|
246
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label .contain, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label .contain {
|
247
|
+
background: #149A97; }
|
248
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label .checkbox--icon, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
249
|
+
border: none;
|
250
|
+
height: 20px;
|
251
|
+
width: 20px;
|
252
|
+
position: absolute;
|
253
|
+
margin-right: 0;
|
254
|
+
top: 2px;
|
255
|
+
left: 5px;
|
256
|
+
right: auto;
|
257
|
+
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2223%22%20height%3D%2223%22%20viewBox%3D%220%200%2023%2023%22%3E%3Cg%20fill%3D%22%2322B8AF%22%3E%3Cpath%20d%3D%22M9.291%2019.819l-3.323-3.323%2013.293-13.293%203.323%203.323zM3.748%207.535l8.84%208.838-3.323%203.324-8.84-8.838z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
258
|
+
background-repeat: no-repeat; }
|
259
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label .checkbox--circle, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label .checkbox--circle {
|
260
|
+
left: 30px; }
|
261
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label .checkbox--circle .circle-top span, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label .checkbox--circle .circle-top span {
|
262
|
+
background: #22B9B0; }
|
263
|
+
.form .checkbox.alt input[type="checkbox"]:checked + label .checkbox--circle .circle-bottom span, .form .checkbox.alt.invert input[type="checkbox"]:not(:checked) + label .checkbox--circle .circle-bottom span {
|
264
|
+
background: #149A97; }
|
265
|
+
.form .checkbox.alt.small input[type="checkbox"]:checked + label .checkbox--circle, .form .checkbox.alt.small.invert input[type="checkbox"]:not(:checked) + label .checkbox--circle {
|
266
|
+
left: 20px; }
|
267
|
+
.form .checkbox.alt.small {
|
268
|
+
/* label not-checked
|
269
|
+
...................................*/
|
270
|
+
/* label checked
|
271
|
+
...................................*/ }
|
272
|
+
.form .checkbox.alt.small label {
|
273
|
+
border-radius: 15px;
|
274
|
+
width: 52.5px;
|
275
|
+
padding: 7px; }
|
276
|
+
.form .checkbox.alt.small label .checkbox--contain {
|
277
|
+
border-radius: 15px; }
|
278
|
+
.form .checkbox.alt.small label .checkbox--circle {
|
279
|
+
left: 0px;
|
280
|
+
top: -2px;
|
281
|
+
width: 18px;
|
282
|
+
height: 18px; }
|
283
|
+
.form .checkbox.alt.small label .checkbox--circle .circle-top {
|
284
|
+
height: 9px; }
|
285
|
+
.form .checkbox.alt.small label .checkbox--circle .circle-top span {
|
286
|
+
width: 18px;
|
287
|
+
height: 18px;
|
288
|
+
border-radius: 18px; }
|
289
|
+
.form .checkbox.alt.small label .checkbox--circle .circle-bottom {
|
290
|
+
height: 9px; }
|
291
|
+
.form .checkbox.alt.small label .checkbox--circle .circle-bottom span {
|
292
|
+
top: -9px;
|
293
|
+
width: 18px;
|
294
|
+
height: 18px;
|
295
|
+
border-radius: 18px; }
|
296
|
+
.form .checkbox.alt.small.invert input[type="checkbox"]:checked + label .checkbox--icon,
|
297
|
+
.form .checkbox.alt.small input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
298
|
+
height: 15px;
|
299
|
+
width: 15px;
|
300
|
+
top: 0px;
|
301
|
+
right: 0px;
|
302
|
+
left: auto; }
|
303
|
+
.form .checkbox.alt.small.invert input[type="checkbox"]:checked + label .checkbox--circle,
|
304
|
+
.form .checkbox.alt.small input[type="checkbox"]:not(:checked) + label .checkbox--circle {
|
305
|
+
left: 0px; }
|
306
|
+
.form .checkbox.alt.small input[type="checkbox"]:checked + label .checkbox--icon, .form .checkbox.alt.small.invert input[type="checkbox"]:not(:checked) + label .checkbox--icon {
|
307
|
+
height: 18px;
|
308
|
+
width: 18px;
|
309
|
+
top: -2px;
|
310
|
+
left: -1px;
|
311
|
+
right: auto; }
|
312
|
+
|
313
|
+
.checkbox-container:after {
|
314
|
+
clear: both; }
|
315
|
+
.checkbox-container:before, .checkbox-container:after {
|
316
|
+
content: " ";
|
317
|
+
display: table; }
|
318
|
+
.checkbox-container .checkbox {
|
319
|
+
float: left;
|
320
|
+
width: auto; }
|
321
|
+
.checkbox-container .checkbox-label {
|
322
|
+
float: left;
|
323
|
+
padding-left: 15px;
|
324
|
+
line-height: 30px; }
|
325
|
+
|
326
|
+
[data-checkable].is-hovered, [data-checkable]:hover {
|
327
|
+
background: #149A97 !important;
|
328
|
+
cursor: pointer; }
|