@enigmatry/scss-foundation 17.0.0-preview.4 → 17.0.0-preview.5.1

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.
Files changed (60) hide show
  1. package/README.md +18 -18
  2. package/coverage/clover.xml +2 -2
  3. package/coverage/lcov-report/index.html +1 -1
  4. package/docs/modules/README.md +19 -19
  5. package/docs/modules/absolute-positioning.md +28 -28
  6. package/docs/modules/alignment.md +45 -45
  7. package/docs/modules/background-hover.md +18 -18
  8. package/docs/modules/border-radius.md +19 -19
  9. package/docs/modules/breakpoints.md +27 -27
  10. package/docs/modules/fixed-positioning.md +28 -28
  11. package/docs/modules/grid.md +46 -46
  12. package/docs/modules/row-coloring.md +23 -23
  13. package/docs/modules/text-hover.md +18 -18
  14. package/docs/modules/text-modification.md +27 -27
  15. package/docs/modules/visibility.md +27 -27
  16. package/docs/partials/README.md +14 -14
  17. package/docs/partials/alignment.md +15 -15
  18. package/docs/partials/cursor.md +13 -13
  19. package/docs/partials/resize.md +9 -9
  20. package/docs/partials/text-control.md +11 -11
  21. package/docs/partials/visibility.md +9 -9
  22. package/jest.config.js +21 -21
  23. package/package.json +24 -24
  24. package/src/modules/_index.scss +7 -7
  25. package/src/modules/_map.scss +53 -52
  26. package/src/modules/_variables.scss +11 -11
  27. package/src/modules/borders/_border-radius.scss +10 -10
  28. package/src/modules/display/_items.scss +21 -21
  29. package/src/modules/layout/_grid-core.scss +53 -53
  30. package/src/modules/layout/_grid.scss +98 -97
  31. package/src/modules/layout/_index.scss +1 -1
  32. package/src/modules/lists/_row-coloring.scss +12 -12
  33. package/src/modules/position/_absolute.scss +8 -8
  34. package/src/modules/position/_fixed.scss +8 -8
  35. package/src/modules/position/_index.scss +2 -2
  36. package/src/modules/position/_set-position.scss +24 -22
  37. package/src/modules/responsiveness/_breakpoints.scss +55 -55
  38. package/src/modules/states/_hover.scss +6 -6
  39. package/src/modules/states/_index.scss +1 -1
  40. package/src/modules/states/_visibility.scss +15 -15
  41. package/src/modules/text/_hover.scss +6 -6
  42. package/src/modules/text/_index.scss +1 -1
  43. package/src/modules/text/_modification.scss +29 -29
  44. package/src/partials/core/_index.scss +2 -2
  45. package/src/partials/core/fonts/_text-control.scss +10 -10
  46. package/src/partials/core/layouts/_alignment.scss +21 -21
  47. package/src/partials/core/states/_cursors.scss +10 -10
  48. package/src/partials/core/states/_index.scss +2 -2
  49. package/src/partials/core/states/_resize.scss +2 -2
  50. package/src/partials/core/states/_visibility.scss +2 -2
  51. package/tests/display/items.tests.scss +99 -99
  52. package/tests/layout/grid-core.tests.scss +115 -115
  53. package/tests/layout/grid.tests.scss +1154 -1154
  54. package/tests/lists/row-coloring.tests.scss +51 -51
  55. package/tests/position/absolute.tests.scss +67 -67
  56. package/tests/position/fixed.tests.scss +67 -67
  57. package/tests/position/set-position.tests.scss +64 -64
  58. package/tests/shim.test.js +13 -13
  59. package/tests/text/modification.tests.scss +20 -20
  60. package/.stylelintrc.json +0 -32
@@ -1,1155 +1,1155 @@
1
- /* stylelint-disable pitcher/max-lines */
2
- /* stylelint-disable csstools/use-nesting */
3
- /* stylelint-disable selector-max-attribute */
4
- /* stylelint-disable shorthand-property-no-redundant-values */
5
- /* stylelint-disable number-max-precision */
6
- /* stylelint-disable max-nesting-depth */
7
- /* stylelint-disable at-rule-allowed-list */
8
- @use '../../src/modules/layout/grid';
9
- @use '../../src/modules/variables' as vars;
10
- @use 'sass-true';
11
-
12
- vars.$testing: true;
13
-
14
- @include sass-true.describe('generate($spacing, $divisions)') {
15
- @include sass-true.it('should throw if spacing is not a number') {
16
- @include sass-true.assert() {
17
- @include sass-true.output() {
18
- @include grid.generate(null);
19
- }
20
-
21
- @include sass-true.contains() {
22
- /* ERROR [generate($spacing, $divisions)]: */
23
- /* Please provide number parameter! Given value: */
24
- }
25
- }
26
-
27
- @include sass-true.assert() {
28
- @include sass-true.output() {
29
- @include grid.generate('abcd1234');
30
- }
31
-
32
- @include sass-true.contains() {
33
- /* ERROR [generate($spacing, $divisions)]: */
34
- /* Please provide number parameter! Given value: abcd1234 */
35
- }
36
- }
37
-
38
- @include sass-true.assert() {
39
- @include sass-true.output() {
40
- @include grid.generate(#FFEEAA);
41
- }
42
-
43
- @include sass-true.contains() {
44
- /* ERROR [generate($spacing, $divisions)]: */
45
- /* Please provide number parameter! Given value: #FFEEAA */
46
- }
47
- }
48
- }
49
-
50
- @include sass-true.it('should throw if $division is not a number or outside of bounds') {
51
- @include sass-true.assert() {
52
- @include sass-true.output() {
53
- @include grid.generate(4em, 'abba');
54
- }
55
-
56
- @include sass-true.contains() {
57
- /* ERROR [generate($spacing, $divisions)]: */
58
- /* Please provide positive number for divisions, between 2 and 1000! Given value: abba */
59
- }
60
- }
61
-
62
- @include sass-true.assert() {
63
- @include sass-true.output() {
64
- @include grid.generate(4em, null);
65
- }
66
-
67
- @include sass-true.contains() {
68
- /* ERROR [generate($spacing, $divisions)]: */
69
- /* Please provide positive number for divisions, between 2 and 1000! Given value: */
70
- }
71
- }
72
-
73
- @include sass-true.assert() {
74
- @include sass-true.output() {
75
- @include grid.generate(4em, #FFEEAA);
76
- }
77
-
78
- @include sass-true.contains() {
79
- /* ERROR [generate($spacing, $divisions)]: */
80
- /* Please provide positive number for divisions, between 2 and 1000! Given value: #FFEEAA */
81
- }
82
- }
83
-
84
- @include sass-true.assert() {
85
- @include sass-true.output() {
86
- @include grid.generate(4em, -15);
87
- }
88
-
89
- @include sass-true.contains() {
90
- /* ERROR [generate($spacing, $divisions)]: */
91
- /* Please provide positive number for divisions, between 2 and 1000! Given value: -15 */
92
- }
93
- }
94
-
95
- @include sass-true.assert() {
96
- @include sass-true.output() {
97
- @include grid.generate(4em, 1);
98
- }
99
-
100
- @include sass-true.contains() {
101
- /* ERROR [generate($spacing, $divisions)]: */
102
- /* Please provide positive number for divisions, between 2 and 1000! Given value: 1 */
103
- }
104
- }
105
-
106
- @include sass-true.assert() {
107
- @include sass-true.output() {
108
- @include grid.generate(4em, 1001);
109
- }
110
-
111
- @include sass-true.contains() {
112
- /* ERROR [generate($spacing, $divisions)]: */
113
- /* Please provide positive number for divisions, between 2 and 1000! Given value: 1001 */
114
- }
115
- }
116
- }
117
-
118
- @include sass-true.it('should have 12 columns if division not specified. If spacing not specified, padding should be 0') {
119
- @include sass-true.assert() {
120
- @include sass-true.output() {
121
- @include grid.generate();
122
- }
123
-
124
- @include sass-true.expect() {
125
- .row {
126
- display: flex;
127
- flex-wrap: wrap;
128
- }
129
-
130
- .row [class *= 'col-'], .row [class *= 'offset-'] {
131
- box-sizing: border-box;
132
- flex-shrink: 0;
133
- max-width: 100%;
134
- padding: 0 0;
135
- }
136
-
137
- .col-auto {
138
- flex: 0 0 auto;
139
- width: auto;
140
- padding: 0 0;
141
- }
142
-
143
- @media only screen and (width >= 576px) {
144
- .row.reverse-row-sm {
145
- flex-direction: row-reverse;
146
- }
147
- }
148
-
149
- @media only screen and (width >= 768px) {
150
- .row.reverse-row-md {
151
- flex-direction: row-reverse;
152
- }
153
- }
154
-
155
- @media only screen and (width >= 992px) {
156
- .row.reverse-row-lg {
157
- flex-direction: row-reverse;
158
- }
159
- }
160
-
161
- @media only screen and (width >= 1200px) {
162
- .row.reverse-row-xl {
163
- flex-direction: row-reverse;
164
- }
165
- }
166
-
167
- @media only screen and (width >= 1400px) {
168
- .row.reverse-row-xxl {
169
- flex-direction: row-reverse;
170
- }
171
- }
172
-
173
- .row.reverse-row-under-sm {
174
- flex-direction: row-reverse;
175
-
176
- @media only screen and (width >= 576px) {
177
- flex-direction: row;
178
- }
179
- }
180
-
181
- .row.reverse-row-under-md {
182
- flex-direction: row-reverse;
183
-
184
- @media only screen and (width >= 768px) {
185
- flex-direction: row;
186
- }
187
- }
188
-
189
- .row.reverse-row-under-lg {
190
- flex-direction: row-reverse;
191
-
192
- @media only screen and (width >= 992px) {
193
- flex-direction: row;
194
- }
195
- }
196
-
197
- .row.reverse-row-under-xl {
198
- flex-direction: row-reverse;
199
-
200
- @media only screen and (width >= 1200px) {
201
- flex-direction: row;
202
- }
203
- }
204
-
205
- .row.reverse-row-under-xxl {
206
- flex-direction: row-reverse;
207
-
208
- @media only screen and (width >= 1400px) {
209
- flex-direction: row;
210
- }
211
- }
212
-
213
- .col-1 {
214
- flex: 0 0 auto;
215
- width: 8.3333333333%;
216
- padding: 0 0;
217
- }
218
-
219
- .offset-1 {
220
- margin-left: 8.3333333333%;
221
- }
222
-
223
- .col-2 {
224
- flex: 0 0 auto;
225
- width: 16.6666666667%;
226
- padding: 0 0;
227
- }
228
-
229
- .offset-2 {
230
- margin-left: 16.6666666667%;
231
- }
232
-
233
- .col-3 {
234
- flex: 0 0 auto;
235
- width: 25%;
236
- padding: 0 0;
237
- }
238
-
239
- .offset-3 {
240
- margin-left: 25%;
241
- }
242
-
243
- .col-4 {
244
- flex: 0 0 auto;
245
- width: 33.3333333333%;
246
- padding: 0 0;
247
- }
248
-
249
- .offset-4 {
250
- margin-left: 33.3333333333%;
251
- }
252
-
253
- .col-5 {
254
- flex: 0 0 auto;
255
- width: 41.6666666667%;
256
- padding: 0 0;
257
- }
258
-
259
- .offset-5 {
260
- margin-left: 41.6666666667%;
261
- }
262
-
263
- .col-6 {
264
- flex: 0 0 auto;
265
- width: 50%;
266
- padding: 0 0;
267
- }
268
-
269
- .offset-6 {
270
- margin-left: 50%;
271
- }
272
-
273
- .col-7 {
274
- flex: 0 0 auto;
275
- width: 58.3333333333%;
276
- padding: 0 0;
277
- }
278
-
279
- .offset-7 {
280
- margin-left: 58.3333333333%;
281
- }
282
-
283
- .col-8 {
284
- flex: 0 0 auto;
285
- width: 66.6666666667%;
286
- padding: 0 0;
287
- }
288
-
289
- .offset-8 {
290
- margin-left: 66.6666666667%;
291
- }
292
-
293
- .col-9 {
294
- flex: 0 0 auto;
295
- width: 75%;
296
- padding: 0 0;
297
- }
298
-
299
- .offset-9 {
300
- margin-left: 75%;
301
- }
302
-
303
- .col-10 {
304
- flex: 0 0 auto;
305
- width: 83.3333333333%;
306
- padding: 0 0;
307
- }
308
-
309
- .offset-10 {
310
- margin-left: 83.3333333333%;
311
- }
312
-
313
- .col-11 {
314
- flex: 0 0 auto;
315
- width: 91.6666666667%;
316
- padding: 0 0;
317
- }
318
-
319
- .offset-11 {
320
- margin-left: 91.6666666667%;
321
- }
322
-
323
- .col-12 {
324
- flex: 0 0 auto;
325
- width: 100%;
326
- padding: 0 0;
327
- }
328
-
329
- .offset-12 {
330
- margin-left: 100%;
331
- }
332
-
333
- @media only screen and (width >= 576px) {
334
- .col-sm-auto {
335
- flex: 0 0 auto;
336
- width: auto;
337
- padding: 0 0;
338
- }
339
-
340
- .col-sm-1 {
341
- flex: 0 0 auto;
342
- width: 8.3333333333%;
343
- }
344
-
345
- .offset-sm-1 {
346
- margin-left: 8.3333333333%;
347
- }
348
-
349
- .col-sm-2 {
350
- flex: 0 0 auto;
351
- width: 16.6666666667%;
352
- }
353
-
354
- .offset-sm-2 {
355
- margin-left: 16.6666666667%;
356
- }
357
-
358
- .col-sm-3 {
359
- flex: 0 0 auto;
360
- width: 25%;
361
- }
362
-
363
- .offset-sm-3 {
364
- margin-left: 25%;
365
- }
366
-
367
- .col-sm-4 {
368
- flex: 0 0 auto;
369
- width: 33.3333333333%;
370
- }
371
-
372
- .offset-sm-4 {
373
- margin-left: 33.3333333333%;
374
- }
375
-
376
- .col-sm-5 {
377
- flex: 0 0 auto;
378
- width: 41.6666666667%;
379
- }
380
-
381
- .offset-sm-5 {
382
- margin-left: 41.6666666667%;
383
- }
384
-
385
- .col-sm-6 {
386
- flex: 0 0 auto;
387
- width: 50%;
388
- }
389
-
390
- .offset-sm-6 {
391
- margin-left: 50%;
392
- }
393
-
394
- .col-sm-7 {
395
- flex: 0 0 auto;
396
- width: 58.3333333333%;
397
- }
398
-
399
- .offset-sm-7 {
400
- margin-left: 58.3333333333%;
401
- }
402
-
403
- .col-sm-8 {
404
- flex: 0 0 auto;
405
- width: 66.6666666667%;
406
- }
407
-
408
- .offset-sm-8 {
409
- margin-left: 66.6666666667%;
410
- }
411
-
412
- .col-sm-9 {
413
- flex: 0 0 auto;
414
- width: 75%;
415
- }
416
-
417
- .offset-sm-9 {
418
- margin-left: 75%;
419
- }
420
-
421
- .col-sm-10 {
422
- flex: 0 0 auto;
423
- width: 83.3333333333%;
424
- }
425
-
426
- .offset-sm-10 {
427
- margin-left: 83.3333333333%;
428
- }
429
-
430
- .col-sm-11 {
431
- flex: 0 0 auto;
432
- width: 91.6666666667%;
433
- }
434
-
435
- .offset-sm-11 {
436
- margin-left: 91.6666666667%;
437
- }
438
-
439
- .col-sm-12 {
440
- flex: 0 0 auto;
441
- width: 100%;
442
- }
443
-
444
- .offset-sm-12 {
445
- margin-left: 100%;
446
- }
447
- }
448
-
449
- @media only screen and (width >= 768px) {
450
- .col-md-auto {
451
- flex: 0 0 auto;
452
- width: auto;
453
- padding: 0 0;
454
- }
455
-
456
- .col-md-1 {
457
- flex: 0 0 auto;
458
- width: 8.3333333333%;
459
- }
460
-
461
- .offset-md-1 {
462
- margin-left: 8.3333333333%;
463
- }
464
-
465
- .col-md-2 {
466
- flex: 0 0 auto;
467
- width: 16.6666666667%;
468
- }
469
-
470
- .offset-md-2 {
471
- margin-left: 16.6666666667%;
472
- }
473
-
474
- .col-md-3 {
475
- flex: 0 0 auto;
476
- width: 25%;
477
- }
478
-
479
- .offset-md-3 {
480
- margin-left: 25%;
481
- }
482
-
483
- .col-md-4 {
484
- flex: 0 0 auto;
485
- width: 33.3333333333%;
486
- }
487
-
488
- .offset-md-4 {
489
- margin-left: 33.3333333333%;
490
- }
491
-
492
- .col-md-5 {
493
- flex: 0 0 auto;
494
- width: 41.6666666667%;
495
- }
496
-
497
- .offset-md-5 {
498
- margin-left: 41.6666666667%;
499
- }
500
-
501
- .col-md-6 {
502
- flex: 0 0 auto;
503
- width: 50%;
504
- }
505
-
506
- .offset-md-6 {
507
- margin-left: 50%;
508
- }
509
-
510
- .col-md-7 {
511
- flex: 0 0 auto;
512
- width: 58.3333333333%;
513
- }
514
-
515
- .offset-md-7 {
516
- margin-left: 58.3333333333%;
517
- }
518
-
519
- .col-md-8 {
520
- flex: 0 0 auto;
521
- width: 66.6666666667%;
522
- }
523
-
524
- .offset-md-8 {
525
- margin-left: 66.6666666667%;
526
- }
527
-
528
- .col-md-9 {
529
- flex: 0 0 auto;
530
- width: 75%;
531
- }
532
-
533
- .offset-md-9 {
534
- margin-left: 75%;
535
- }
536
-
537
- .col-md-10 {
538
- flex: 0 0 auto;
539
- width: 83.3333333333%;
540
- }
541
-
542
- .offset-md-10 {
543
- margin-left: 83.3333333333%;
544
- }
545
-
546
- .col-md-11 {
547
- flex: 0 0 auto;
548
- width: 91.6666666667%;
549
- }
550
-
551
- .offset-md-11 {
552
- margin-left: 91.6666666667%;
553
- }
554
-
555
- .col-md-12 {
556
- flex: 0 0 auto;
557
- width: 100%;
558
- }
559
-
560
- .offset-md-12 {
561
- margin-left: 100%;
562
- }
563
- }
564
-
565
- @media only screen and (width >= 992px) {
566
- .col-lg-auto {
567
- flex: 0 0 auto;
568
- width: auto;
569
- padding: 0 0;
570
- }
571
-
572
- .col-lg-1 {
573
- flex: 0 0 auto;
574
- width: 8.3333333333%;
575
- }
576
-
577
- .offset-lg-1 {
578
- margin-left: 8.3333333333%;
579
- }
580
-
581
- .col-lg-2 {
582
- flex: 0 0 auto;
583
- width: 16.6666666667%;
584
- }
585
-
586
- .offset-lg-2 {
587
- margin-left: 16.6666666667%;
588
- }
589
-
590
- .col-lg-3 {
591
- flex: 0 0 auto;
592
- width: 25%;
593
- }
594
-
595
- .offset-lg-3 {
596
- margin-left: 25%;
597
- }
598
-
599
- .col-lg-4 {
600
- flex: 0 0 auto;
601
- width: 33.3333333333%;
602
- }
603
-
604
- .offset-lg-4 {
605
- margin-left: 33.3333333333%;
606
- }
607
-
608
- .col-lg-5 {
609
- flex: 0 0 auto;
610
- width: 41.6666666667%;
611
- }
612
-
613
- .offset-lg-5 {
614
- margin-left: 41.6666666667%;
615
- }
616
-
617
- .col-lg-6 {
618
- flex: 0 0 auto;
619
- width: 50%;
620
- }
621
-
622
- .offset-lg-6 {
623
- margin-left: 50%;
624
- }
625
-
626
- .col-lg-7 {
627
- flex: 0 0 auto;
628
- width: 58.3333333333%;
629
- }
630
-
631
- .offset-lg-7 {
632
- margin-left: 58.3333333333%;
633
- }
634
-
635
- .col-lg-8 {
636
- flex: 0 0 auto;
637
- width: 66.6666666667%;
638
- }
639
-
640
- .offset-lg-8 {
641
- margin-left: 66.6666666667%;
642
- }
643
-
644
- .col-lg-9 {
645
- flex: 0 0 auto;
646
- width: 75%;
647
- }
648
-
649
- .offset-lg-9 {
650
- margin-left: 75%;
651
- }
652
-
653
- .col-lg-10 {
654
- flex: 0 0 auto;
655
- width: 83.3333333333%;
656
- }
657
-
658
- .offset-lg-10 {
659
- margin-left: 83.3333333333%;
660
- }
661
-
662
- .col-lg-11 {
663
- flex: 0 0 auto;
664
- width: 91.6666666667%;
665
- }
666
-
667
- .offset-lg-11 {
668
- margin-left: 91.6666666667%;
669
- }
670
-
671
- .col-lg-12 {
672
- flex: 0 0 auto;
673
- width: 100%;
674
- }
675
-
676
- .offset-lg-12 {
677
- margin-left: 100%;
678
- }
679
- }
680
-
681
- @media only screen and (width >= 1200px) {
682
- .col-xl-auto {
683
- flex: 0 0 auto;
684
- width: auto;
685
- padding: 0 0;
686
- }
687
-
688
- .col-xl-1 {
689
- flex: 0 0 auto;
690
- width: 8.3333333333%;
691
- }
692
-
693
- .offset-xl-1 {
694
- margin-left: 8.3333333333%;
695
- }
696
-
697
- .col-xl-2 {
698
- flex: 0 0 auto;
699
- width: 16.6666666667%;
700
- }
701
-
702
- .offset-xl-2 {
703
- margin-left: 16.6666666667%;
704
- }
705
-
706
- .col-xl-3 {
707
- flex: 0 0 auto;
708
- width: 25%;
709
- }
710
-
711
- .offset-xl-3 {
712
- margin-left: 25%;
713
- }
714
-
715
- .col-xl-4 {
716
- flex: 0 0 auto;
717
- width: 33.3333333333%;
718
- }
719
-
720
- .offset-xl-4 {
721
- margin-left: 33.3333333333%;
722
- }
723
-
724
- .col-xl-5 {
725
- flex: 0 0 auto;
726
- width: 41.6666666667%;
727
- }
728
-
729
- .offset-xl-5 {
730
- margin-left: 41.6666666667%;
731
- }
732
-
733
- .col-xl-6 {
734
- flex: 0 0 auto;
735
- width: 50%;
736
- }
737
-
738
- .offset-xl-6 {
739
- margin-left: 50%;
740
- }
741
-
742
- .col-xl-7 {
743
- flex: 0 0 auto;
744
- width: 58.3333333333%;
745
- }
746
-
747
- .offset-xl-7 {
748
- margin-left: 58.3333333333%;
749
- }
750
-
751
- .col-xl-8 {
752
- flex: 0 0 auto;
753
- width: 66.6666666667%;
754
- }
755
-
756
- .offset-xl-8 {
757
- margin-left: 66.6666666667%;
758
- }
759
-
760
- .col-xl-9 {
761
- flex: 0 0 auto;
762
- width: 75%;
763
- }
764
-
765
- .offset-xl-9 {
766
- margin-left: 75%;
767
- }
768
-
769
- .col-xl-10 {
770
- flex: 0 0 auto;
771
- width: 83.3333333333%;
772
- }
773
-
774
- .offset-xl-10 {
775
- margin-left: 83.3333333333%;
776
- }
777
-
778
- .col-xl-11 {
779
- flex: 0 0 auto;
780
- width: 91.6666666667%;
781
- }
782
-
783
- .offset-xl-11 {
784
- margin-left: 91.6666666667%;
785
- }
786
-
787
- .col-xl-12 {
788
- flex: 0 0 auto;
789
- width: 100%;
790
- }
791
-
792
- .offset-xl-12 {
793
- margin-left: 100%;
794
- }
795
- }
796
-
797
- @media only screen and (width >= 1400px) {
798
- .col-xxl-auto {
799
- flex: 0 0 auto;
800
- width: auto;
801
- padding: 0 0;
802
- }
803
-
804
- .col-xxl-1 {
805
- flex: 0 0 auto;
806
- width: 8.3333333333%;
807
- }
808
-
809
- .offset-xxl-1 {
810
- margin-left: 8.3333333333%;
811
- }
812
-
813
- .col-xxl-2 {
814
- flex: 0 0 auto;
815
- width: 16.6666666667%;
816
- }
817
-
818
- .offset-xxl-2 {
819
- margin-left: 16.6666666667%;
820
- }
821
-
822
- .col-xxl-3 {
823
- flex: 0 0 auto;
824
- width: 25%;
825
- }
826
-
827
- .offset-xxl-3 {
828
- margin-left: 25%;
829
- }
830
-
831
- .col-xxl-4 {
832
- flex: 0 0 auto;
833
- width: 33.3333333333%;
834
- }
835
-
836
- .offset-xxl-4 {
837
- margin-left: 33.3333333333%;
838
- }
839
-
840
- .col-xxl-5 {
841
- flex: 0 0 auto;
842
- width: 41.6666666667%;
843
- }
844
-
845
- .offset-xxl-5 {
846
- margin-left: 41.6666666667%;
847
- }
848
-
849
- .col-xxl-6 {
850
- flex: 0 0 auto;
851
- width: 50%;
852
- }
853
-
854
- .offset-xxl-6 {
855
- margin-left: 50%;
856
- }
857
-
858
- .col-xxl-7 {
859
- flex: 0 0 auto;
860
- width: 58.3333333333%;
861
- }
862
-
863
- .offset-xxl-7 {
864
- margin-left: 58.3333333333%;
865
- }
866
-
867
- .col-xxl-8 {
868
- flex: 0 0 auto;
869
- width: 66.6666666667%;
870
- }
871
-
872
- .offset-xxl-8 {
873
- margin-left: 66.6666666667%;
874
- }
875
-
876
- .col-xxl-9 {
877
- flex: 0 0 auto;
878
- width: 75%;
879
- }
880
-
881
- .offset-xxl-9 {
882
- margin-left: 75%;
883
- }
884
-
885
- .col-xxl-10 {
886
- flex: 0 0 auto;
887
- width: 83.3333333333%;
888
- }
889
-
890
- .offset-xxl-10 {
891
- margin-left: 83.3333333333%;
892
- }
893
-
894
- .col-xxl-11 {
895
- flex: 0 0 auto;
896
- width: 91.6666666667%;
897
- }
898
-
899
- .offset-xxl-11 {
900
- margin-left: 91.6666666667%;
901
- }
902
-
903
- .col-xxl-12 {
904
- flex: 0 0 auto;
905
- width: 100%;
906
- }
907
-
908
- .offset-xxl-12 {
909
- margin-left: 100%;
910
- }
911
- }
912
- }
913
- }
914
- }
915
-
916
- @include sass-true.it('should have 2 columns. padding should be 8px') {
917
- @include sass-true.assert() {
918
- @include sass-true.output() {
919
- @include grid.generate($spacing: 8px, $divisions: 2);
920
- }
921
-
922
- @include sass-true.expect() {
923
- .row {
924
- display: flex;
925
- flex-wrap: wrap;
926
- margin: 0 -8px;
927
-
928
- [class *= 'col-'], [class *= 'offset-'] {
929
- box-sizing: border-box;
930
- flex-shrink: 0;
931
- max-width: 100%;
932
- padding: 0 8px;
933
- }
934
- }
935
-
936
- .col-auto {
937
- flex: 0 0 auto;
938
- width: auto;
939
- padding: 0 8px;
940
- }
941
-
942
- @media only screen and (width >= 576px) {
943
- .row.reverse-row-sm {
944
- flex-direction: row-reverse;
945
- }
946
- }
947
- @media only screen and (width >= 768px) {
948
- .row.reverse-row-md {
949
- flex-direction: row-reverse;
950
- }
951
- }
952
- @media only screen and (width >= 992px) {
953
- .row.reverse-row-lg {
954
- flex-direction: row-reverse;
955
- }
956
- }
957
- @media only screen and (width >= 1200px) {
958
- .row.reverse-row-xl {
959
- flex-direction: row-reverse;
960
- }
961
- }
962
- @media only screen and (width >= 1400px) {
963
- .row.reverse-row-xxl {
964
- flex-direction: row-reverse;
965
- }
966
- }
967
-
968
- .row.reverse-row-under-sm {
969
- flex-direction: row-reverse;
970
- @media only screen and (width >= 576px) {
971
- flex-direction: row;
972
- }
973
- }
974
-
975
- .row.reverse-row-under-md {
976
- flex-direction: row-reverse;
977
- @media only screen and (width >= 768px) {
978
- flex-direction: row;
979
- }
980
- }
981
-
982
- .row.reverse-row-under-lg {
983
- flex-direction: row-reverse;
984
- @media only screen and (width >= 992px) {
985
- flex-direction: row;
986
- }
987
- }
988
-
989
- .row.reverse-row-under-xl {
990
- flex-direction: row-reverse;
991
- @media only screen and (width >= 1200px) {
992
- flex-direction: row;
993
- }
994
- }
995
-
996
- .row.reverse-row-under-xxl {
997
- flex-direction: row-reverse;
998
- @media only screen and (width >= 1400px) {
999
- flex-direction: row;
1000
- }
1001
- }
1002
-
1003
- .col-1 {
1004
- flex: 0 0 auto;
1005
- width: 50%;
1006
- padding: 0 8px;
1007
- }
1008
-
1009
- .offset-1 {
1010
- margin-left: 50%;
1011
- }
1012
-
1013
- .col-2 {
1014
- flex: 0 0 auto;
1015
- width: 100%;
1016
- padding: 0 8px;
1017
- }
1018
-
1019
- .offset-2 {
1020
- margin-left: 100%;
1021
- }
1022
-
1023
- @media only screen and (width >= 576px) {
1024
- .col-sm-auto {
1025
- flex: 0 0 auto;
1026
- width: auto;
1027
- padding: 0 8px;
1028
- }
1029
-
1030
- .col-sm-1 {
1031
- flex: 0 0 auto;
1032
- width: 50%;
1033
- }
1034
-
1035
- .offset-sm-1 {
1036
- margin-left: 50%;
1037
- }
1038
-
1039
- .col-sm-2 {
1040
- flex: 0 0 auto;
1041
- width: 100%;
1042
- }
1043
-
1044
- .offset-sm-2 {
1045
- margin-left: 100%;
1046
- }
1047
- }
1048
-
1049
- @media only screen and (width >= 768px) {
1050
- .col-md-auto {
1051
- flex: 0 0 auto;
1052
- width: auto;
1053
- padding: 0 8px;
1054
- }
1055
-
1056
- .col-md-1 {
1057
- flex: 0 0 auto;
1058
- width: 50%;
1059
- }
1060
-
1061
- .offset-md-1 {
1062
- margin-left: 50%;
1063
- }
1064
-
1065
- .col-md-2 {
1066
- flex: 0 0 auto;
1067
- width: 100%;
1068
- }
1069
-
1070
- .offset-md-2 {
1071
- margin-left: 100%;
1072
- }
1073
- }
1074
-
1075
- @media only screen and (width >= 992px) {
1076
- .col-lg-auto {
1077
- flex: 0 0 auto;
1078
- width: auto;
1079
- padding: 0 8px;
1080
- }
1081
-
1082
- .col-lg-1 {
1083
- flex: 0 0 auto;
1084
- width: 50%;
1085
- }
1086
-
1087
- .offset-lg-1 {
1088
- margin-left: 50%;
1089
- }
1090
-
1091
- .col-lg-2 {
1092
- flex: 0 0 auto;
1093
- width: 100%;
1094
- }
1095
-
1096
- .offset-lg-2 {
1097
- margin-left: 100%;
1098
- }
1099
- }
1100
-
1101
- @media only screen and (width >= 1200px) {
1102
- .col-xl-auto {
1103
- flex: 0 0 auto;
1104
- width: auto;
1105
- padding: 0 8px;
1106
- }
1107
-
1108
- .col-xl-1 {
1109
- flex: 0 0 auto;
1110
- width: 50%;
1111
- }
1112
-
1113
- .offset-xl-1 {
1114
- margin-left: 50%;
1115
- }
1116
-
1117
- .col-xl-2 {
1118
- flex: 0 0 auto;
1119
- width: 100%;
1120
- }
1121
-
1122
- .offset-xl-2 {
1123
- margin-left: 100%;
1124
- }
1125
- }
1126
-
1127
- @media only screen and (width >= 1400px) {
1128
- .col-xxl-auto {
1129
- flex: 0 0 auto;
1130
- width: auto;
1131
- padding: 0 8px;
1132
- }
1133
-
1134
- .col-xxl-1 {
1135
- flex: 0 0 auto;
1136
- width: 50%;
1137
- }
1138
-
1139
- .offset-xxl-1 {
1140
- margin-left: 50%;
1141
- }
1142
-
1143
- .col-xxl-2 {
1144
- flex: 0 0 auto;
1145
- width: 100%;
1146
- }
1147
-
1148
- .offset-xxl-2 {
1149
- margin-left: 100%;
1150
- }
1151
- }
1152
- }
1153
- }
1154
- }
1
+ /* stylelint-disable pitcher/max-lines */
2
+ /* stylelint-disable csstools/use-nesting */
3
+ /* stylelint-disable selector-max-attribute */
4
+ /* stylelint-disable shorthand-property-no-redundant-values */
5
+ /* stylelint-disable number-max-precision */
6
+ /* stylelint-disable max-nesting-depth */
7
+ /* stylelint-disable at-rule-allowed-list */
8
+ @use '../../src/modules/layout/grid';
9
+ @use '../../src/modules/variables' as vars;
10
+ @use 'sass-true';
11
+
12
+ vars.$testing: true;
13
+
14
+ @include sass-true.describe('generate($spacing, $divisions)') {
15
+ @include sass-true.it('should throw if spacing is not a number') {
16
+ @include sass-true.assert() {
17
+ @include sass-true.output() {
18
+ @include grid.generate(null);
19
+ }
20
+
21
+ @include sass-true.contains() {
22
+ /* ERROR [generate($spacing, $divisions)]: */
23
+ /* Please provide number parameter! Given value: */
24
+ }
25
+ }
26
+
27
+ @include sass-true.assert() {
28
+ @include sass-true.output() {
29
+ @include grid.generate('abcd1234');
30
+ }
31
+
32
+ @include sass-true.contains() {
33
+ /* ERROR [generate($spacing, $divisions)]: */
34
+ /* Please provide number parameter! Given value: abcd1234 */
35
+ }
36
+ }
37
+
38
+ @include sass-true.assert() {
39
+ @include sass-true.output() {
40
+ @include grid.generate(#FFEEAA);
41
+ }
42
+
43
+ @include sass-true.contains() {
44
+ /* ERROR [generate($spacing, $divisions)]: */
45
+ /* Please provide number parameter! Given value: #FFEEAA */
46
+ }
47
+ }
48
+ }
49
+
50
+ @include sass-true.it('should throw if $division is not a number or outside of bounds') {
51
+ @include sass-true.assert() {
52
+ @include sass-true.output() {
53
+ @include grid.generate(4em, 'abba');
54
+ }
55
+
56
+ @include sass-true.contains() {
57
+ /* ERROR [generate($spacing, $divisions)]: */
58
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: abba */
59
+ }
60
+ }
61
+
62
+ @include sass-true.assert() {
63
+ @include sass-true.output() {
64
+ @include grid.generate(4em, null);
65
+ }
66
+
67
+ @include sass-true.contains() {
68
+ /* ERROR [generate($spacing, $divisions)]: */
69
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: */
70
+ }
71
+ }
72
+
73
+ @include sass-true.assert() {
74
+ @include sass-true.output() {
75
+ @include grid.generate(4em, #FFEEAA);
76
+ }
77
+
78
+ @include sass-true.contains() {
79
+ /* ERROR [generate($spacing, $divisions)]: */
80
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: #FFEEAA */
81
+ }
82
+ }
83
+
84
+ @include sass-true.assert() {
85
+ @include sass-true.output() {
86
+ @include grid.generate(4em, -15);
87
+ }
88
+
89
+ @include sass-true.contains() {
90
+ /* ERROR [generate($spacing, $divisions)]: */
91
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: -15 */
92
+ }
93
+ }
94
+
95
+ @include sass-true.assert() {
96
+ @include sass-true.output() {
97
+ @include grid.generate(4em, 1);
98
+ }
99
+
100
+ @include sass-true.contains() {
101
+ /* ERROR [generate($spacing, $divisions)]: */
102
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: 1 */
103
+ }
104
+ }
105
+
106
+ @include sass-true.assert() {
107
+ @include sass-true.output() {
108
+ @include grid.generate(4em, 1001);
109
+ }
110
+
111
+ @include sass-true.contains() {
112
+ /* ERROR [generate($spacing, $divisions)]: */
113
+ /* Please provide positive number for divisions, between 2 and 1000! Given value: 1001 */
114
+ }
115
+ }
116
+ }
117
+
118
+ @include sass-true.it('should have 12 columns if division not specified. If spacing not specified, padding should be 0') {
119
+ @include sass-true.assert() {
120
+ @include sass-true.output() {
121
+ @include grid.generate();
122
+ }
123
+
124
+ @include sass-true.expect() {
125
+ .row {
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ }
129
+
130
+ .row [class *= 'col-'], .row [class *= 'offset-'] {
131
+ box-sizing: border-box;
132
+ flex-shrink: 0;
133
+ max-width: 100%;
134
+ padding: 0 0;
135
+ }
136
+
137
+ .col-auto {
138
+ flex: 0 0 auto;
139
+ width: auto;
140
+ padding: 0 0;
141
+ }
142
+
143
+ @media only screen and (width >= 576px) {
144
+ .row.reverse-row-sm {
145
+ flex-direction: row-reverse;
146
+ }
147
+ }
148
+
149
+ @media only screen and (width >= 768px) {
150
+ .row.reverse-row-md {
151
+ flex-direction: row-reverse;
152
+ }
153
+ }
154
+
155
+ @media only screen and (width >= 992px) {
156
+ .row.reverse-row-lg {
157
+ flex-direction: row-reverse;
158
+ }
159
+ }
160
+
161
+ @media only screen and (width >= 1200px) {
162
+ .row.reverse-row-xl {
163
+ flex-direction: row-reverse;
164
+ }
165
+ }
166
+
167
+ @media only screen and (width >= 1400px) {
168
+ .row.reverse-row-xxl {
169
+ flex-direction: row-reverse;
170
+ }
171
+ }
172
+
173
+ .row.reverse-row-under-sm {
174
+ flex-direction: row-reverse;
175
+
176
+ @media only screen and (width >= 576px) {
177
+ flex-direction: row;
178
+ }
179
+ }
180
+
181
+ .row.reverse-row-under-md {
182
+ flex-direction: row-reverse;
183
+
184
+ @media only screen and (width >= 768px) {
185
+ flex-direction: row;
186
+ }
187
+ }
188
+
189
+ .row.reverse-row-under-lg {
190
+ flex-direction: row-reverse;
191
+
192
+ @media only screen and (width >= 992px) {
193
+ flex-direction: row;
194
+ }
195
+ }
196
+
197
+ .row.reverse-row-under-xl {
198
+ flex-direction: row-reverse;
199
+
200
+ @media only screen and (width >= 1200px) {
201
+ flex-direction: row;
202
+ }
203
+ }
204
+
205
+ .row.reverse-row-under-xxl {
206
+ flex-direction: row-reverse;
207
+
208
+ @media only screen and (width >= 1400px) {
209
+ flex-direction: row;
210
+ }
211
+ }
212
+
213
+ .col-1 {
214
+ flex: 0 0 auto;
215
+ width: 8.3333333333%;
216
+ padding: 0 0;
217
+ }
218
+
219
+ .offset-1 {
220
+ margin-left: 8.3333333333%;
221
+ }
222
+
223
+ .col-2 {
224
+ flex: 0 0 auto;
225
+ width: 16.6666666667%;
226
+ padding: 0 0;
227
+ }
228
+
229
+ .offset-2 {
230
+ margin-left: 16.6666666667%;
231
+ }
232
+
233
+ .col-3 {
234
+ flex: 0 0 auto;
235
+ width: 25%;
236
+ padding: 0 0;
237
+ }
238
+
239
+ .offset-3 {
240
+ margin-left: 25%;
241
+ }
242
+
243
+ .col-4 {
244
+ flex: 0 0 auto;
245
+ width: 33.3333333333%;
246
+ padding: 0 0;
247
+ }
248
+
249
+ .offset-4 {
250
+ margin-left: 33.3333333333%;
251
+ }
252
+
253
+ .col-5 {
254
+ flex: 0 0 auto;
255
+ width: 41.6666666667%;
256
+ padding: 0 0;
257
+ }
258
+
259
+ .offset-5 {
260
+ margin-left: 41.6666666667%;
261
+ }
262
+
263
+ .col-6 {
264
+ flex: 0 0 auto;
265
+ width: 50%;
266
+ padding: 0 0;
267
+ }
268
+
269
+ .offset-6 {
270
+ margin-left: 50%;
271
+ }
272
+
273
+ .col-7 {
274
+ flex: 0 0 auto;
275
+ width: 58.3333333333%;
276
+ padding: 0 0;
277
+ }
278
+
279
+ .offset-7 {
280
+ margin-left: 58.3333333333%;
281
+ }
282
+
283
+ .col-8 {
284
+ flex: 0 0 auto;
285
+ width: 66.6666666667%;
286
+ padding: 0 0;
287
+ }
288
+
289
+ .offset-8 {
290
+ margin-left: 66.6666666667%;
291
+ }
292
+
293
+ .col-9 {
294
+ flex: 0 0 auto;
295
+ width: 75%;
296
+ padding: 0 0;
297
+ }
298
+
299
+ .offset-9 {
300
+ margin-left: 75%;
301
+ }
302
+
303
+ .col-10 {
304
+ flex: 0 0 auto;
305
+ width: 83.3333333333%;
306
+ padding: 0 0;
307
+ }
308
+
309
+ .offset-10 {
310
+ margin-left: 83.3333333333%;
311
+ }
312
+
313
+ .col-11 {
314
+ flex: 0 0 auto;
315
+ width: 91.6666666667%;
316
+ padding: 0 0;
317
+ }
318
+
319
+ .offset-11 {
320
+ margin-left: 91.6666666667%;
321
+ }
322
+
323
+ .col-12 {
324
+ flex: 0 0 auto;
325
+ width: 100%;
326
+ padding: 0 0;
327
+ }
328
+
329
+ .offset-12 {
330
+ margin-left: 100%;
331
+ }
332
+
333
+ @media only screen and (width >= 576px) {
334
+ .col-sm-auto {
335
+ flex: 0 0 auto;
336
+ width: auto;
337
+ padding: 0 0;
338
+ }
339
+
340
+ .col-sm-1 {
341
+ flex: 0 0 auto;
342
+ width: 8.3333333333%;
343
+ }
344
+
345
+ .offset-sm-1 {
346
+ margin-left: 8.3333333333%;
347
+ }
348
+
349
+ .col-sm-2 {
350
+ flex: 0 0 auto;
351
+ width: 16.6666666667%;
352
+ }
353
+
354
+ .offset-sm-2 {
355
+ margin-left: 16.6666666667%;
356
+ }
357
+
358
+ .col-sm-3 {
359
+ flex: 0 0 auto;
360
+ width: 25%;
361
+ }
362
+
363
+ .offset-sm-3 {
364
+ margin-left: 25%;
365
+ }
366
+
367
+ .col-sm-4 {
368
+ flex: 0 0 auto;
369
+ width: 33.3333333333%;
370
+ }
371
+
372
+ .offset-sm-4 {
373
+ margin-left: 33.3333333333%;
374
+ }
375
+
376
+ .col-sm-5 {
377
+ flex: 0 0 auto;
378
+ width: 41.6666666667%;
379
+ }
380
+
381
+ .offset-sm-5 {
382
+ margin-left: 41.6666666667%;
383
+ }
384
+
385
+ .col-sm-6 {
386
+ flex: 0 0 auto;
387
+ width: 50%;
388
+ }
389
+
390
+ .offset-sm-6 {
391
+ margin-left: 50%;
392
+ }
393
+
394
+ .col-sm-7 {
395
+ flex: 0 0 auto;
396
+ width: 58.3333333333%;
397
+ }
398
+
399
+ .offset-sm-7 {
400
+ margin-left: 58.3333333333%;
401
+ }
402
+
403
+ .col-sm-8 {
404
+ flex: 0 0 auto;
405
+ width: 66.6666666667%;
406
+ }
407
+
408
+ .offset-sm-8 {
409
+ margin-left: 66.6666666667%;
410
+ }
411
+
412
+ .col-sm-9 {
413
+ flex: 0 0 auto;
414
+ width: 75%;
415
+ }
416
+
417
+ .offset-sm-9 {
418
+ margin-left: 75%;
419
+ }
420
+
421
+ .col-sm-10 {
422
+ flex: 0 0 auto;
423
+ width: 83.3333333333%;
424
+ }
425
+
426
+ .offset-sm-10 {
427
+ margin-left: 83.3333333333%;
428
+ }
429
+
430
+ .col-sm-11 {
431
+ flex: 0 0 auto;
432
+ width: 91.6666666667%;
433
+ }
434
+
435
+ .offset-sm-11 {
436
+ margin-left: 91.6666666667%;
437
+ }
438
+
439
+ .col-sm-12 {
440
+ flex: 0 0 auto;
441
+ width: 100%;
442
+ }
443
+
444
+ .offset-sm-12 {
445
+ margin-left: 100%;
446
+ }
447
+ }
448
+
449
+ @media only screen and (width >= 768px) {
450
+ .col-md-auto {
451
+ flex: 0 0 auto;
452
+ width: auto;
453
+ padding: 0 0;
454
+ }
455
+
456
+ .col-md-1 {
457
+ flex: 0 0 auto;
458
+ width: 8.3333333333%;
459
+ }
460
+
461
+ .offset-md-1 {
462
+ margin-left: 8.3333333333%;
463
+ }
464
+
465
+ .col-md-2 {
466
+ flex: 0 0 auto;
467
+ width: 16.6666666667%;
468
+ }
469
+
470
+ .offset-md-2 {
471
+ margin-left: 16.6666666667%;
472
+ }
473
+
474
+ .col-md-3 {
475
+ flex: 0 0 auto;
476
+ width: 25%;
477
+ }
478
+
479
+ .offset-md-3 {
480
+ margin-left: 25%;
481
+ }
482
+
483
+ .col-md-4 {
484
+ flex: 0 0 auto;
485
+ width: 33.3333333333%;
486
+ }
487
+
488
+ .offset-md-4 {
489
+ margin-left: 33.3333333333%;
490
+ }
491
+
492
+ .col-md-5 {
493
+ flex: 0 0 auto;
494
+ width: 41.6666666667%;
495
+ }
496
+
497
+ .offset-md-5 {
498
+ margin-left: 41.6666666667%;
499
+ }
500
+
501
+ .col-md-6 {
502
+ flex: 0 0 auto;
503
+ width: 50%;
504
+ }
505
+
506
+ .offset-md-6 {
507
+ margin-left: 50%;
508
+ }
509
+
510
+ .col-md-7 {
511
+ flex: 0 0 auto;
512
+ width: 58.3333333333%;
513
+ }
514
+
515
+ .offset-md-7 {
516
+ margin-left: 58.3333333333%;
517
+ }
518
+
519
+ .col-md-8 {
520
+ flex: 0 0 auto;
521
+ width: 66.6666666667%;
522
+ }
523
+
524
+ .offset-md-8 {
525
+ margin-left: 66.6666666667%;
526
+ }
527
+
528
+ .col-md-9 {
529
+ flex: 0 0 auto;
530
+ width: 75%;
531
+ }
532
+
533
+ .offset-md-9 {
534
+ margin-left: 75%;
535
+ }
536
+
537
+ .col-md-10 {
538
+ flex: 0 0 auto;
539
+ width: 83.3333333333%;
540
+ }
541
+
542
+ .offset-md-10 {
543
+ margin-left: 83.3333333333%;
544
+ }
545
+
546
+ .col-md-11 {
547
+ flex: 0 0 auto;
548
+ width: 91.6666666667%;
549
+ }
550
+
551
+ .offset-md-11 {
552
+ margin-left: 91.6666666667%;
553
+ }
554
+
555
+ .col-md-12 {
556
+ flex: 0 0 auto;
557
+ width: 100%;
558
+ }
559
+
560
+ .offset-md-12 {
561
+ margin-left: 100%;
562
+ }
563
+ }
564
+
565
+ @media only screen and (width >= 992px) {
566
+ .col-lg-auto {
567
+ flex: 0 0 auto;
568
+ width: auto;
569
+ padding: 0 0;
570
+ }
571
+
572
+ .col-lg-1 {
573
+ flex: 0 0 auto;
574
+ width: 8.3333333333%;
575
+ }
576
+
577
+ .offset-lg-1 {
578
+ margin-left: 8.3333333333%;
579
+ }
580
+
581
+ .col-lg-2 {
582
+ flex: 0 0 auto;
583
+ width: 16.6666666667%;
584
+ }
585
+
586
+ .offset-lg-2 {
587
+ margin-left: 16.6666666667%;
588
+ }
589
+
590
+ .col-lg-3 {
591
+ flex: 0 0 auto;
592
+ width: 25%;
593
+ }
594
+
595
+ .offset-lg-3 {
596
+ margin-left: 25%;
597
+ }
598
+
599
+ .col-lg-4 {
600
+ flex: 0 0 auto;
601
+ width: 33.3333333333%;
602
+ }
603
+
604
+ .offset-lg-4 {
605
+ margin-left: 33.3333333333%;
606
+ }
607
+
608
+ .col-lg-5 {
609
+ flex: 0 0 auto;
610
+ width: 41.6666666667%;
611
+ }
612
+
613
+ .offset-lg-5 {
614
+ margin-left: 41.6666666667%;
615
+ }
616
+
617
+ .col-lg-6 {
618
+ flex: 0 0 auto;
619
+ width: 50%;
620
+ }
621
+
622
+ .offset-lg-6 {
623
+ margin-left: 50%;
624
+ }
625
+
626
+ .col-lg-7 {
627
+ flex: 0 0 auto;
628
+ width: 58.3333333333%;
629
+ }
630
+
631
+ .offset-lg-7 {
632
+ margin-left: 58.3333333333%;
633
+ }
634
+
635
+ .col-lg-8 {
636
+ flex: 0 0 auto;
637
+ width: 66.6666666667%;
638
+ }
639
+
640
+ .offset-lg-8 {
641
+ margin-left: 66.6666666667%;
642
+ }
643
+
644
+ .col-lg-9 {
645
+ flex: 0 0 auto;
646
+ width: 75%;
647
+ }
648
+
649
+ .offset-lg-9 {
650
+ margin-left: 75%;
651
+ }
652
+
653
+ .col-lg-10 {
654
+ flex: 0 0 auto;
655
+ width: 83.3333333333%;
656
+ }
657
+
658
+ .offset-lg-10 {
659
+ margin-left: 83.3333333333%;
660
+ }
661
+
662
+ .col-lg-11 {
663
+ flex: 0 0 auto;
664
+ width: 91.6666666667%;
665
+ }
666
+
667
+ .offset-lg-11 {
668
+ margin-left: 91.6666666667%;
669
+ }
670
+
671
+ .col-lg-12 {
672
+ flex: 0 0 auto;
673
+ width: 100%;
674
+ }
675
+
676
+ .offset-lg-12 {
677
+ margin-left: 100%;
678
+ }
679
+ }
680
+
681
+ @media only screen and (width >= 1200px) {
682
+ .col-xl-auto {
683
+ flex: 0 0 auto;
684
+ width: auto;
685
+ padding: 0 0;
686
+ }
687
+
688
+ .col-xl-1 {
689
+ flex: 0 0 auto;
690
+ width: 8.3333333333%;
691
+ }
692
+
693
+ .offset-xl-1 {
694
+ margin-left: 8.3333333333%;
695
+ }
696
+
697
+ .col-xl-2 {
698
+ flex: 0 0 auto;
699
+ width: 16.6666666667%;
700
+ }
701
+
702
+ .offset-xl-2 {
703
+ margin-left: 16.6666666667%;
704
+ }
705
+
706
+ .col-xl-3 {
707
+ flex: 0 0 auto;
708
+ width: 25%;
709
+ }
710
+
711
+ .offset-xl-3 {
712
+ margin-left: 25%;
713
+ }
714
+
715
+ .col-xl-4 {
716
+ flex: 0 0 auto;
717
+ width: 33.3333333333%;
718
+ }
719
+
720
+ .offset-xl-4 {
721
+ margin-left: 33.3333333333%;
722
+ }
723
+
724
+ .col-xl-5 {
725
+ flex: 0 0 auto;
726
+ width: 41.6666666667%;
727
+ }
728
+
729
+ .offset-xl-5 {
730
+ margin-left: 41.6666666667%;
731
+ }
732
+
733
+ .col-xl-6 {
734
+ flex: 0 0 auto;
735
+ width: 50%;
736
+ }
737
+
738
+ .offset-xl-6 {
739
+ margin-left: 50%;
740
+ }
741
+
742
+ .col-xl-7 {
743
+ flex: 0 0 auto;
744
+ width: 58.3333333333%;
745
+ }
746
+
747
+ .offset-xl-7 {
748
+ margin-left: 58.3333333333%;
749
+ }
750
+
751
+ .col-xl-8 {
752
+ flex: 0 0 auto;
753
+ width: 66.6666666667%;
754
+ }
755
+
756
+ .offset-xl-8 {
757
+ margin-left: 66.6666666667%;
758
+ }
759
+
760
+ .col-xl-9 {
761
+ flex: 0 0 auto;
762
+ width: 75%;
763
+ }
764
+
765
+ .offset-xl-9 {
766
+ margin-left: 75%;
767
+ }
768
+
769
+ .col-xl-10 {
770
+ flex: 0 0 auto;
771
+ width: 83.3333333333%;
772
+ }
773
+
774
+ .offset-xl-10 {
775
+ margin-left: 83.3333333333%;
776
+ }
777
+
778
+ .col-xl-11 {
779
+ flex: 0 0 auto;
780
+ width: 91.6666666667%;
781
+ }
782
+
783
+ .offset-xl-11 {
784
+ margin-left: 91.6666666667%;
785
+ }
786
+
787
+ .col-xl-12 {
788
+ flex: 0 0 auto;
789
+ width: 100%;
790
+ }
791
+
792
+ .offset-xl-12 {
793
+ margin-left: 100%;
794
+ }
795
+ }
796
+
797
+ @media only screen and (width >= 1400px) {
798
+ .col-xxl-auto {
799
+ flex: 0 0 auto;
800
+ width: auto;
801
+ padding: 0 0;
802
+ }
803
+
804
+ .col-xxl-1 {
805
+ flex: 0 0 auto;
806
+ width: 8.3333333333%;
807
+ }
808
+
809
+ .offset-xxl-1 {
810
+ margin-left: 8.3333333333%;
811
+ }
812
+
813
+ .col-xxl-2 {
814
+ flex: 0 0 auto;
815
+ width: 16.6666666667%;
816
+ }
817
+
818
+ .offset-xxl-2 {
819
+ margin-left: 16.6666666667%;
820
+ }
821
+
822
+ .col-xxl-3 {
823
+ flex: 0 0 auto;
824
+ width: 25%;
825
+ }
826
+
827
+ .offset-xxl-3 {
828
+ margin-left: 25%;
829
+ }
830
+
831
+ .col-xxl-4 {
832
+ flex: 0 0 auto;
833
+ width: 33.3333333333%;
834
+ }
835
+
836
+ .offset-xxl-4 {
837
+ margin-left: 33.3333333333%;
838
+ }
839
+
840
+ .col-xxl-5 {
841
+ flex: 0 0 auto;
842
+ width: 41.6666666667%;
843
+ }
844
+
845
+ .offset-xxl-5 {
846
+ margin-left: 41.6666666667%;
847
+ }
848
+
849
+ .col-xxl-6 {
850
+ flex: 0 0 auto;
851
+ width: 50%;
852
+ }
853
+
854
+ .offset-xxl-6 {
855
+ margin-left: 50%;
856
+ }
857
+
858
+ .col-xxl-7 {
859
+ flex: 0 0 auto;
860
+ width: 58.3333333333%;
861
+ }
862
+
863
+ .offset-xxl-7 {
864
+ margin-left: 58.3333333333%;
865
+ }
866
+
867
+ .col-xxl-8 {
868
+ flex: 0 0 auto;
869
+ width: 66.6666666667%;
870
+ }
871
+
872
+ .offset-xxl-8 {
873
+ margin-left: 66.6666666667%;
874
+ }
875
+
876
+ .col-xxl-9 {
877
+ flex: 0 0 auto;
878
+ width: 75%;
879
+ }
880
+
881
+ .offset-xxl-9 {
882
+ margin-left: 75%;
883
+ }
884
+
885
+ .col-xxl-10 {
886
+ flex: 0 0 auto;
887
+ width: 83.3333333333%;
888
+ }
889
+
890
+ .offset-xxl-10 {
891
+ margin-left: 83.3333333333%;
892
+ }
893
+
894
+ .col-xxl-11 {
895
+ flex: 0 0 auto;
896
+ width: 91.6666666667%;
897
+ }
898
+
899
+ .offset-xxl-11 {
900
+ margin-left: 91.6666666667%;
901
+ }
902
+
903
+ .col-xxl-12 {
904
+ flex: 0 0 auto;
905
+ width: 100%;
906
+ }
907
+
908
+ .offset-xxl-12 {
909
+ margin-left: 100%;
910
+ }
911
+ }
912
+ }
913
+ }
914
+ }
915
+
916
+ @include sass-true.it('should have 2 columns. padding should be 8px') {
917
+ @include sass-true.assert() {
918
+ @include sass-true.output() {
919
+ @include grid.generate($spacing: 8px, $divisions: 2);
920
+ }
921
+
922
+ @include sass-true.expect() {
923
+ .row {
924
+ display: flex;
925
+ flex-wrap: wrap;
926
+ margin: 0 -8px;
927
+
928
+ [class *= 'col-'], [class *= 'offset-'] {
929
+ box-sizing: border-box;
930
+ flex-shrink: 0;
931
+ max-width: 100%;
932
+ padding: 0 8px;
933
+ }
934
+ }
935
+
936
+ .col-auto {
937
+ flex: 0 0 auto;
938
+ width: auto;
939
+ padding: 0 8px;
940
+ }
941
+
942
+ @media only screen and (width >= 576px) {
943
+ .row.reverse-row-sm {
944
+ flex-direction: row-reverse;
945
+ }
946
+ }
947
+ @media only screen and (width >= 768px) {
948
+ .row.reverse-row-md {
949
+ flex-direction: row-reverse;
950
+ }
951
+ }
952
+ @media only screen and (width >= 992px) {
953
+ .row.reverse-row-lg {
954
+ flex-direction: row-reverse;
955
+ }
956
+ }
957
+ @media only screen and (width >= 1200px) {
958
+ .row.reverse-row-xl {
959
+ flex-direction: row-reverse;
960
+ }
961
+ }
962
+ @media only screen and (width >= 1400px) {
963
+ .row.reverse-row-xxl {
964
+ flex-direction: row-reverse;
965
+ }
966
+ }
967
+
968
+ .row.reverse-row-under-sm {
969
+ flex-direction: row-reverse;
970
+ @media only screen and (width >= 576px) {
971
+ flex-direction: row;
972
+ }
973
+ }
974
+
975
+ .row.reverse-row-under-md {
976
+ flex-direction: row-reverse;
977
+ @media only screen and (width >= 768px) {
978
+ flex-direction: row;
979
+ }
980
+ }
981
+
982
+ .row.reverse-row-under-lg {
983
+ flex-direction: row-reverse;
984
+ @media only screen and (width >= 992px) {
985
+ flex-direction: row;
986
+ }
987
+ }
988
+
989
+ .row.reverse-row-under-xl {
990
+ flex-direction: row-reverse;
991
+ @media only screen and (width >= 1200px) {
992
+ flex-direction: row;
993
+ }
994
+ }
995
+
996
+ .row.reverse-row-under-xxl {
997
+ flex-direction: row-reverse;
998
+ @media only screen and (width >= 1400px) {
999
+ flex-direction: row;
1000
+ }
1001
+ }
1002
+
1003
+ .col-1 {
1004
+ flex: 0 0 auto;
1005
+ width: 50%;
1006
+ padding: 0 8px;
1007
+ }
1008
+
1009
+ .offset-1 {
1010
+ margin-left: 50%;
1011
+ }
1012
+
1013
+ .col-2 {
1014
+ flex: 0 0 auto;
1015
+ width: 100%;
1016
+ padding: 0 8px;
1017
+ }
1018
+
1019
+ .offset-2 {
1020
+ margin-left: 100%;
1021
+ }
1022
+
1023
+ @media only screen and (width >= 576px) {
1024
+ .col-sm-auto {
1025
+ flex: 0 0 auto;
1026
+ width: auto;
1027
+ padding: 0 8px;
1028
+ }
1029
+
1030
+ .col-sm-1 {
1031
+ flex: 0 0 auto;
1032
+ width: 50%;
1033
+ }
1034
+
1035
+ .offset-sm-1 {
1036
+ margin-left: 50%;
1037
+ }
1038
+
1039
+ .col-sm-2 {
1040
+ flex: 0 0 auto;
1041
+ width: 100%;
1042
+ }
1043
+
1044
+ .offset-sm-2 {
1045
+ margin-left: 100%;
1046
+ }
1047
+ }
1048
+
1049
+ @media only screen and (width >= 768px) {
1050
+ .col-md-auto {
1051
+ flex: 0 0 auto;
1052
+ width: auto;
1053
+ padding: 0 8px;
1054
+ }
1055
+
1056
+ .col-md-1 {
1057
+ flex: 0 0 auto;
1058
+ width: 50%;
1059
+ }
1060
+
1061
+ .offset-md-1 {
1062
+ margin-left: 50%;
1063
+ }
1064
+
1065
+ .col-md-2 {
1066
+ flex: 0 0 auto;
1067
+ width: 100%;
1068
+ }
1069
+
1070
+ .offset-md-2 {
1071
+ margin-left: 100%;
1072
+ }
1073
+ }
1074
+
1075
+ @media only screen and (width >= 992px) {
1076
+ .col-lg-auto {
1077
+ flex: 0 0 auto;
1078
+ width: auto;
1079
+ padding: 0 8px;
1080
+ }
1081
+
1082
+ .col-lg-1 {
1083
+ flex: 0 0 auto;
1084
+ width: 50%;
1085
+ }
1086
+
1087
+ .offset-lg-1 {
1088
+ margin-left: 50%;
1089
+ }
1090
+
1091
+ .col-lg-2 {
1092
+ flex: 0 0 auto;
1093
+ width: 100%;
1094
+ }
1095
+
1096
+ .offset-lg-2 {
1097
+ margin-left: 100%;
1098
+ }
1099
+ }
1100
+
1101
+ @media only screen and (width >= 1200px) {
1102
+ .col-xl-auto {
1103
+ flex: 0 0 auto;
1104
+ width: auto;
1105
+ padding: 0 8px;
1106
+ }
1107
+
1108
+ .col-xl-1 {
1109
+ flex: 0 0 auto;
1110
+ width: 50%;
1111
+ }
1112
+
1113
+ .offset-xl-1 {
1114
+ margin-left: 50%;
1115
+ }
1116
+
1117
+ .col-xl-2 {
1118
+ flex: 0 0 auto;
1119
+ width: 100%;
1120
+ }
1121
+
1122
+ .offset-xl-2 {
1123
+ margin-left: 100%;
1124
+ }
1125
+ }
1126
+
1127
+ @media only screen and (width >= 1400px) {
1128
+ .col-xxl-auto {
1129
+ flex: 0 0 auto;
1130
+ width: auto;
1131
+ padding: 0 8px;
1132
+ }
1133
+
1134
+ .col-xxl-1 {
1135
+ flex: 0 0 auto;
1136
+ width: 50%;
1137
+ }
1138
+
1139
+ .offset-xxl-1 {
1140
+ margin-left: 50%;
1141
+ }
1142
+
1143
+ .col-xxl-2 {
1144
+ flex: 0 0 auto;
1145
+ width: 100%;
1146
+ }
1147
+
1148
+ .offset-xxl-2 {
1149
+ margin-left: 100%;
1150
+ }
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
1155
  }