@roblexperu/style 1.0.59 → 1.1.2
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.
- package/.eslintrc.js +21 -0
- package/.husky/pre-commit +4 -0
- package/CLAUDE.md +52 -0
- package/README.md +123 -0
- package/fonts-icons.js +17 -4
- package/package.json +14 -11
- package/scripts/version-update.js +93 -80
- package/test/js/fonts-icons.test.js +53 -0
- package/test/js/version-update.test.js +49 -0
- package/test/sass/flexbox.test.js +4 -0
- package/test/sass/flexbox.test.scss +479 -0
- package/test/sass/fonts.test.js +4 -0
- package/test/sass/fonts.test.scss +243 -0
- package/test/sass/media.test.js +4 -0
- package/test/sass/media.test.scss +103 -0
- package/.huskyrc.js +0 -6
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
@import '../../node_modules/sass-true/sass/true';
|
|
2
|
+
@import '../../src/mixins/flexbox';
|
|
3
|
+
|
|
4
|
+
@include describe('flexbox mixin') {
|
|
5
|
+
@include it('sets display to flex with vendor-prefixed fallbacks') {
|
|
6
|
+
@include assert {
|
|
7
|
+
@include output {
|
|
8
|
+
@include flexbox;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include expect {
|
|
12
|
+
display: -webkit-box !important;
|
|
13
|
+
display: -moz-box !important;
|
|
14
|
+
display: -webkit-flex !important;
|
|
15
|
+
display: -ms-flexbox !important;
|
|
16
|
+
display: flex !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include describe('inline-flex mixin') {
|
|
23
|
+
@include it('sets display to inline-flex with vendor-prefixed fallbacks') {
|
|
24
|
+
@include assert {
|
|
25
|
+
@include output {
|
|
26
|
+
@include inline-flex;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include expect {
|
|
30
|
+
display: -webkit-inline-box !important;
|
|
31
|
+
display: -moz-inline-box !important;
|
|
32
|
+
display: -webkit-inline-flex !important;
|
|
33
|
+
display: -ms-inline-flexbox !important;
|
|
34
|
+
display: inline-flex !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include describe('flex-direction mixin') {
|
|
41
|
+
@include it('defaults to row') {
|
|
42
|
+
@include assert {
|
|
43
|
+
@include output {
|
|
44
|
+
@include flex-direction;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include expect {
|
|
48
|
+
-webkit-box-direction: normal !important;
|
|
49
|
+
-webkit-box-orient: horizontal !important;
|
|
50
|
+
-moz-box-direction: normal !important;
|
|
51
|
+
-moz-box-orient: horizontal !important;
|
|
52
|
+
-webkit-flex-direction: row !important;
|
|
53
|
+
-ms-flex-direction: row !important;
|
|
54
|
+
flex-direction: row !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@include it('reverses the box direction for row-reverse') {
|
|
60
|
+
@include assert {
|
|
61
|
+
@include output {
|
|
62
|
+
@include flex-direction(row-reverse);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include expect {
|
|
66
|
+
-webkit-box-direction: reverse !important;
|
|
67
|
+
-webkit-box-orient: horizontal !important;
|
|
68
|
+
-moz-box-direction: reverse !important;
|
|
69
|
+
-moz-box-orient: horizontal !important;
|
|
70
|
+
-webkit-flex-direction: row-reverse !important;
|
|
71
|
+
-ms-flex-direction: row-reverse !important;
|
|
72
|
+
flex-direction: row-reverse !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include it('switches the box orientation to vertical for column') {
|
|
78
|
+
@include assert {
|
|
79
|
+
@include output {
|
|
80
|
+
@include flex-direction(column);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include expect {
|
|
84
|
+
-webkit-box-direction: normal !important;
|
|
85
|
+
-webkit-box-orient: vertical !important;
|
|
86
|
+
-moz-box-direction: normal !important;
|
|
87
|
+
-moz-box-orient: vertical !important;
|
|
88
|
+
-webkit-flex-direction: column !important;
|
|
89
|
+
-ms-flex-direction: column !important;
|
|
90
|
+
flex-direction: column !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include it('reverses the box direction for column-reverse') {
|
|
96
|
+
@include assert {
|
|
97
|
+
@include output {
|
|
98
|
+
@include flex-direction(column-reverse);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@include expect {
|
|
102
|
+
-webkit-box-direction: reverse !important;
|
|
103
|
+
-webkit-box-orient: vertical !important;
|
|
104
|
+
-moz-box-direction: reverse !important;
|
|
105
|
+
-moz-box-orient: vertical !important;
|
|
106
|
+
-webkit-flex-direction: column-reverse !important;
|
|
107
|
+
-ms-flex-direction: column-reverse !important;
|
|
108
|
+
flex-direction: column-reverse !important;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@include describe('flex-wrap mixin') {
|
|
115
|
+
@include it('maps the default nowrap value to -ms-flex-wrap: none') {
|
|
116
|
+
@include assert {
|
|
117
|
+
@include output {
|
|
118
|
+
@include flex-wrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include expect {
|
|
122
|
+
-webkit-flex-wrap: nowrap !important;
|
|
123
|
+
-ms-flex-wrap: none !important;
|
|
124
|
+
flex-wrap: nowrap !important;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include it('passes non-nowrap values straight through to -ms-flex-wrap') {
|
|
130
|
+
@include assert {
|
|
131
|
+
@include output {
|
|
132
|
+
@include flex-wrap(wrap);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@include expect {
|
|
136
|
+
-webkit-flex-wrap: wrap !important;
|
|
137
|
+
-ms-flex-wrap: wrap !important;
|
|
138
|
+
flex-wrap: wrap !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include describe('flex-flow mixin') {
|
|
145
|
+
@include it('defaults to row nowrap') {
|
|
146
|
+
@include assert {
|
|
147
|
+
@include output {
|
|
148
|
+
@include flex-flow;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@include expect {
|
|
152
|
+
-webkit-flex-flow: row nowrap !important;
|
|
153
|
+
-ms-flex-flow: row nowrap !important;
|
|
154
|
+
flex-flow: row nowrap !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@include it('accepts a custom value list') {
|
|
160
|
+
@include assert {
|
|
161
|
+
@include output {
|
|
162
|
+
@include flex-flow(column wrap);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@include expect {
|
|
166
|
+
-webkit-flex-flow: column wrap !important;
|
|
167
|
+
-ms-flex-flow: column wrap !important;
|
|
168
|
+
flex-flow: column wrap !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@include describe('order mixin') {
|
|
175
|
+
@include it('defaults to 0, offsetting the box-ordinal-group properties by 1') {
|
|
176
|
+
@include assert {
|
|
177
|
+
@include output {
|
|
178
|
+
@include order;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@include expect {
|
|
182
|
+
-webkit-box-ordinal-group: 1 !important;
|
|
183
|
+
-moz-box-ordinal-group: 1 !important;
|
|
184
|
+
-webkit-order: 0 !important;
|
|
185
|
+
-ms-flex-order: 0 !important;
|
|
186
|
+
order: 0 !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@include it('offsets a custom order by 1 for the box-ordinal-group properties') {
|
|
192
|
+
@include assert {
|
|
193
|
+
@include output {
|
|
194
|
+
@include order(2);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@include expect {
|
|
198
|
+
-webkit-box-ordinal-group: 3 !important;
|
|
199
|
+
-moz-box-ordinal-group: 3 !important;
|
|
200
|
+
-webkit-order: 2 !important;
|
|
201
|
+
-ms-flex-order: 2 !important;
|
|
202
|
+
order: 2 !important;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@include describe('flex-grow mixin') {
|
|
209
|
+
@include it('defaults to 1') {
|
|
210
|
+
@include assert {
|
|
211
|
+
@include output {
|
|
212
|
+
@include flex-grow;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@include expect {
|
|
216
|
+
-webkit-box-flex: 1 !important;
|
|
217
|
+
-moz-box-flex: 1 !important;
|
|
218
|
+
-webkit-flex-grow: 1 !important;
|
|
219
|
+
-ms-flex-positive: 1 !important;
|
|
220
|
+
flex-grow: 1 !important;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@include describe('flex-shrink mixin') {
|
|
227
|
+
@include it('defaults to 0') {
|
|
228
|
+
@include assert {
|
|
229
|
+
@include output {
|
|
230
|
+
@include flex-shrink;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@include expect {
|
|
234
|
+
-webkit-flex-shrink: 0 !important;
|
|
235
|
+
-moz-flex-shrink: 0 !important;
|
|
236
|
+
-ms-flex: 0 !important;
|
|
237
|
+
flex-shrink: 0 !important;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@include describe('flex-basis mixin') {
|
|
244
|
+
@include it('defaults to auto') {
|
|
245
|
+
@include assert {
|
|
246
|
+
@include output {
|
|
247
|
+
@include flex-basis;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@include expect {
|
|
251
|
+
-ms-flex-preferred-size: auto !important;
|
|
252
|
+
-webkit-flex-basis: auto !important;
|
|
253
|
+
flex-basis: auto !important;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@include describe('flex mixin') {
|
|
260
|
+
@include it('defaults to grow:1 shrink:0 basis:auto') {
|
|
261
|
+
@include assert {
|
|
262
|
+
@include output {
|
|
263
|
+
@include flex;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@include expect {
|
|
267
|
+
-webkit-box: 1 !important;
|
|
268
|
+
-moz-box: 1 !important;
|
|
269
|
+
-webkit-flex: 1 0 auto !important;
|
|
270
|
+
-ms-flex: 1 0 auto !important;
|
|
271
|
+
flex: 1 0 auto !important;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@include it('uses the flex shorthand property alone when basis is initial') {
|
|
277
|
+
@include assert {
|
|
278
|
+
@include output {
|
|
279
|
+
@include flex(1, 0, initial);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@include expect {
|
|
283
|
+
-webkit-flex: initial !important;
|
|
284
|
+
-ms-flex: initial !important;
|
|
285
|
+
flex: initial !important;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@include describe('justify-content mixin') {
|
|
292
|
+
@include it('maps flex-start to box-pack: start') {
|
|
293
|
+
@include assert {
|
|
294
|
+
@include output {
|
|
295
|
+
@include justify-content(flex-start);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@include expect {
|
|
299
|
+
-webkit-box-pack: start !important;
|
|
300
|
+
-moz-box-pack: start !important;
|
|
301
|
+
-ms-flex-pack: start !important;
|
|
302
|
+
-webkit-justify-content: flex-start !important;
|
|
303
|
+
justify-content: flex-start !important;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@include it('maps flex-end to box-pack: end') {
|
|
309
|
+
@include assert {
|
|
310
|
+
@include output {
|
|
311
|
+
@include justify-content(flex-end);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@include expect {
|
|
315
|
+
-webkit-box-pack: end !important;
|
|
316
|
+
-moz-box-pack: end !important;
|
|
317
|
+
-ms-flex-pack: end !important;
|
|
318
|
+
-webkit-justify-content: flex-end !important;
|
|
319
|
+
justify-content: flex-end !important;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@include it('maps space-between to box-pack: justify') {
|
|
325
|
+
@include assert {
|
|
326
|
+
@include output {
|
|
327
|
+
@include justify-content(space-between);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@include expect {
|
|
331
|
+
-webkit-box-pack: justify !important;
|
|
332
|
+
-moz-box-pack: justify !important;
|
|
333
|
+
-ms-flex-pack: justify !important;
|
|
334
|
+
-webkit-justify-content: space-between !important;
|
|
335
|
+
justify-content: space-between !important;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@include it('maps space-around to -ms-flex-pack: distribute, without a box-pack fallback') {
|
|
341
|
+
@include assert {
|
|
342
|
+
@include output {
|
|
343
|
+
@include justify-content(space-around);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@include expect {
|
|
347
|
+
-ms-flex-pack: distribute !important;
|
|
348
|
+
-webkit-justify-content: space-around !important;
|
|
349
|
+
justify-content: space-around !important;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@include it('passes other values straight through to box-pack') {
|
|
355
|
+
@include assert {
|
|
356
|
+
@include output {
|
|
357
|
+
@include justify-content(center);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@include expect {
|
|
361
|
+
-webkit-box-pack: center !important;
|
|
362
|
+
-moz-box-pack: center !important;
|
|
363
|
+
-ms-flex-pack: center !important;
|
|
364
|
+
-webkit-justify-content: center !important;
|
|
365
|
+
justify-content: center !important;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@include describe('align-items mixin') {
|
|
372
|
+
@include it('defaults to stretch') {
|
|
373
|
+
@include assert {
|
|
374
|
+
@include output {
|
|
375
|
+
@include align-items;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@include expect {
|
|
379
|
+
-webkit-box-align: stretch !important;
|
|
380
|
+
-moz-box-align: stretch !important;
|
|
381
|
+
-ms-flex-align: stretch !important;
|
|
382
|
+
-webkit-align-items: stretch !important;
|
|
383
|
+
align-items: stretch !important;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
@include it('maps flex-start to box-align: start') {
|
|
389
|
+
@include assert {
|
|
390
|
+
@include output {
|
|
391
|
+
@include align-items(flex-start);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@include expect {
|
|
395
|
+
-webkit-box-align: start !important;
|
|
396
|
+
-moz-box-align: start !important;
|
|
397
|
+
-ms-flex-align: start !important;
|
|
398
|
+
-webkit-align-items: flex-start !important;
|
|
399
|
+
align-items: flex-start !important;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@include it('maps flex-end to box-align: end') {
|
|
405
|
+
@include assert {
|
|
406
|
+
@include output {
|
|
407
|
+
@include align-items(flex-end);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@include expect {
|
|
411
|
+
-webkit-box-align: end !important;
|
|
412
|
+
-moz-box-align: end !important;
|
|
413
|
+
-ms-flex-align: end !important;
|
|
414
|
+
-webkit-align-items: flex-end !important;
|
|
415
|
+
align-items: flex-end !important;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@include describe('align-self mixin') {
|
|
422
|
+
@include it('defaults to auto') {
|
|
423
|
+
@include assert {
|
|
424
|
+
@include output {
|
|
425
|
+
@include align-self;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
@include expect {
|
|
429
|
+
-webkit-align-self: auto !important;
|
|
430
|
+
-ms-flex-item-align: auto !important;
|
|
431
|
+
align-self: auto !important;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
@include it('maps flex-end to -ms-flex-item-align: end') {
|
|
437
|
+
@include assert {
|
|
438
|
+
@include output {
|
|
439
|
+
@include align-self(flex-end);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@include expect {
|
|
443
|
+
-webkit-align-self: flex-end !important;
|
|
444
|
+
-ms-flex-item-align: end !important;
|
|
445
|
+
align-self: flex-end !important;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@include describe('align-content mixin') {
|
|
452
|
+
@include it('defaults to stretch') {
|
|
453
|
+
@include assert {
|
|
454
|
+
@include output {
|
|
455
|
+
@include align-content;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
@include expect {
|
|
459
|
+
-webkit-align-content: stretch !important;
|
|
460
|
+
-ms-flex-line-pack: stretch !important;
|
|
461
|
+
align-content: stretch !important;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@include it('maps flex-start to -ms-flex-line-pack: start') {
|
|
467
|
+
@include assert {
|
|
468
|
+
@include output {
|
|
469
|
+
@include align-content(flex-start);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
@include expect {
|
|
473
|
+
-webkit-align-content: flex-start !important;
|
|
474
|
+
-ms-flex-line-pack: start !important;
|
|
475
|
+
align-content: flex-start !important;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|