yummacss 1.1.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,1272 +0,0 @@
1
- @use "sass:math";
2
-
3
- $utilities: (
4
- // borders & background
5
- "border-width":
6
- (
7
- "prefix": "b",
8
- "values": (
9
- "0": $base-border * 0,
10
- "1": $base-border,
11
- "2": $base-border * 2,
12
- "3": $base-border * 4,
13
- "4": $base-border * 6,
14
- "5": $base-border * 8,
15
- "6": $base-border * 10,
16
- "7": $base-border * 12,
17
- "8": $base-border * 14
18
- )
19
- ),
20
-
21
- "border-bottom-width": (
22
- "prefix": "bb",
23
- "values": (
24
- "0": $base-border * 0,
25
- "1": $base-border,
26
- "2": $base-border * 2,
27
- "3": $base-border * 4,
28
- "4": $base-border * 6,
29
- "5": $base-border * 8,
30
- "6": $base-border * 10,
31
- "7": $base-border * 12,
32
- "8": $base-border * 14
33
- )
34
- ),
35
-
36
- "border-left-width": (
37
- "prefix": "bl",
38
- "values": (
39
- "0": $base-border * 0,
40
- "1": $base-border,
41
- "2": $base-border * 2,
42
- "3": $base-border * 4,
43
- "4": $base-border * 6,
44
- "5": $base-border * 8,
45
- "6": $base-border * 10,
46
- "7": $base-border * 12,
47
- "8": $base-border * 14
48
- )
49
- ),
50
-
51
- "border-right-width": (
52
- "prefix": "br",
53
- "values": (
54
- "0": $base-border * 0,
55
- "1": $base-border,
56
- "2": $base-border * 2,
57
- "3": $base-border * 4,
58
- "4": $base-border * 6,
59
- "5": $base-border * 8,
60
- "6": $base-border * 10,
61
- "7": $base-border * 12,
62
- "8": $base-border * 14
63
- )
64
- ),
65
-
66
- "border-top-width": (
67
- "prefix": "bt",
68
- "values": (
69
- "0": $base-border * 0,
70
- "1": $base-border,
71
- "2": $base-border * 2,
72
- "3": $base-border * 4,
73
- "4": $base-border * 6,
74
- "5": $base-border * 8,
75
- "6": $base-border * 10,
76
- "7": $base-border * 12,
77
- "8": $base-border * 14
78
- )
79
- ),
80
-
81
- "border-radius": (
82
- "prefix": "rad",
83
- "values": (
84
- "0": $base-border-radius * 0,
85
- "1": $base-border-radius,
86
- "2": $base-border-radius * 2,
87
- "3": $base-border-radius * 4,
88
- "4": $base-border-radius * 6,
89
- "5": $base-border-radius * 8,
90
- "6": $base-border-radius * 10,
91
- "7": $base-border-radius * 12,
92
- "8": $base-border-radius * 14,
93
- "full": 100%,
94
- "half": 50%
95
- )
96
- ),
97
-
98
- "border-top-left-radius": (
99
- "prefix": "rad-tl",
100
- "values": (
101
- "0": $base-border-radius * 0,
102
- "1": $base-border-radius,
103
- "2": $base-border-radius * 2,
104
- "3": $base-border-radius * 4,
105
- "4": $base-border-radius * 6,
106
- "5": $base-border-radius * 8,
107
- "6": $base-border-radius * 10,
108
- "7": $base-border-radius * 12,
109
- "8": $base-border-radius * 14
110
- )
111
- ),
112
-
113
- "border-top-right-radius": (
114
- "prefix": "rad-tr",
115
- "values": (
116
- "0": $base-border-radius * 0,
117
- "1": $base-border-radius,
118
- "2": $base-border-radius * 2,
119
- "3": $base-border-radius * 4,
120
- "4": $base-border-radius * 6,
121
- "5": $base-border-radius * 8,
122
- "6": $base-border-radius * 10,
123
- "7": $base-border-radius * 12,
124
- "8": $base-border-radius * 14
125
- )
126
- ),
127
-
128
- "border-bottom-left-radius": (
129
- "prefix": "rad-bl",
130
- "values": (
131
- "0": $base-border-radius * 0,
132
- "1": $base-border-radius,
133
- "2": $base-border-radius * 2,
134
- "3": $base-border-radius * 4,
135
- "4": $base-border-radius * 6,
136
- "5": $base-border-radius * 8,
137
- "6": $base-border-radius * 10,
138
- "7": $base-border-radius * 12,
139
- "8": $base-border-radius * 14
140
- )
141
- ),
142
-
143
- "border-bottom-right-radius": (
144
- "prefix": "rad-br",
145
- "values": (
146
- "0": $base-border-radius * 0,
147
- "1": $base-border-radius,
148
- "2": $base-border-radius * 2,
149
- "3": $base-border-radius * 4,
150
- "4": $base-border-radius * 6,
151
- "5": $base-border-radius * 8,
152
- "6": $base-border-radius * 10,
153
- "7": $base-border-radius * 12,
154
- "8": $base-border-radius * 14
155
- )
156
- ),
157
-
158
- "box-shadow": (
159
- "prefix": "bs",
160
- "values": (
161
- "default": 1px 3px 5px rgba(0, 0, 0, 0.1),
162
- "xs": 1px 3px 5px -3px rgba(0, 0, 0, 0.1),
163
- "sm": 1px 3px 5px -2px rgba(0, 0, 0, 0.1),
164
- "md": 1px 3px 5px -1px rgba(0, 0, 0, 0.1),
165
- "lg": 1px 3px 5px 1px rgba(0, 0, 0, 0.1),
166
- "xl": 1px 3px 5px 2px rgba(0, 0, 0, 0.1)
167
- )
168
- ),
169
-
170
- // box model
171
- "box-sizing":
172
- (
173
- "prefix": "bs",
174
- "values": (
175
- "bb": border-box,
176
- "cb": content-box
177
- )
178
- ),
179
-
180
- // flexbox & grid
181
- "align-content":
182
- (
183
- "prefix": "ac",
184
- "values": (
185
- "c": center,
186
- "start": start,
187
- "e": end,
188
- "fs": flex-start,
189
- "fe": flex-end,
190
- "n": normal,
191
- "sb": space-between,
192
- "sa": space-around,
193
- "se": space-evenly,
194
- "stretch": stretch
195
- )
196
- ),
197
-
198
- "align-items": (
199
- "prefix": "ai",
200
- "values": (
201
- "n": normal,
202
- "stretch": stretch,
203
- "c": center,
204
- "start": start,
205
- "e": end,
206
- "fs": flex-start,
207
- "fe": flex-end
208
- )
209
- ),
210
-
211
- "align-self": (
212
- "prefix": "as",
213
- "values": (
214
- "auto": auto,
215
- "n": normal,
216
- "c": center,
217
- "start": start,
218
- "e": end,
219
- "fs": flex-start,
220
- "fe": flex-end,
221
- "stretch": stretch
222
- )
223
- ),
224
-
225
- "column-gap": (
226
- "prefix": "cg",
227
- "values": (
228
- "1": $base-column-gap,
229
- "2": $base-column-gap * 2,
230
- "3": $base-column-gap * 3,
231
- "4": $base-column-gap * 4,
232
- "5": $base-column-gap * 5,
233
- "6": $base-column-gap * 6,
234
- "7": $base-column-gap * 7,
235
- "8": $base-column-gap * 8,
236
- "9": $base-column-gap * 9,
237
- "10": $base-column-gap * 10,
238
- "11": $base-column-gap * 11,
239
- "12": $base-column-gap * 12,
240
- "13": $base-column-gap * 13,
241
- "14": $base-column-gap * 14,
242
- "15": $base-column-gap * 15,
243
- "16": $base-column-gap * 16
244
- )
245
- ),
246
-
247
- "flex-direction": (
248
- "prefix": "fd",
249
- "values": (
250
- "r": row,
251
- "rr": row-reverse,
252
- "c": column,
253
- "cr": column-reverse
254
- )
255
- ),
256
-
257
- "flex-grow": (
258
- "prefix": "fg",
259
- "values": (
260
- "1": $base-flex-grow,
261
- "2": $base-flex-grow * 2,
262
- "3": $base-flex-grow * 3,
263
- "4": $base-flex-grow * 4,
264
- "5": $base-flex-grow * 5,
265
- "6": $base-flex-grow * 6,
266
- "7": $base-flex-grow * 7,
267
- "8": $base-flex-grow * 8
268
- )
269
- ),
270
-
271
- "flex-shrink": (
272
- "prefix": "fs",
273
- "values": (
274
- "1": $base-flex-shrink,
275
- "2": $base-flex-shrink * 2,
276
- "3": $base-flex-shrink * 3,
277
- "4": $base-flex-shrink * 4,
278
- "5": $base-flex-shrink * 5,
279
- "6": $base-flex-shrink * 6,
280
- "7": $base-flex-shrink * 7,
281
- "8": $base-flex-shrink * 8
282
- )
283
- ),
284
-
285
- "flex-wrap": (
286
- "prefix": "fw",
287
- "values": (
288
- "nw": nowrap,
289
- "w": wrap,
290
- "wr": wrap-reverse
291
- )
292
- ),
293
-
294
- "flex": (
295
- "prefix": "f",
296
- "values": (
297
- "1": $base-flex,
298
- "2": $base-flex * 2,
299
- "3": $base-flex * 3,
300
- "4": $base-flex * 4,
301
- "5": $base-flex * 5,
302
- "6": $base-flex * 6,
303
- "7": $base-flex * 7,
304
- "8": $base-flex * 8,
305
- "9": $base-flex * 9,
306
- "10": $base-flex * 10,
307
- "11": $base-flex * 11,
308
- "12": $base-flex * 12,
309
- "13": $base-flex * 13,
310
- "14": $base-flex * 14,
311
- "15": $base-flex * 15,
312
- "16": $base-flex * 16
313
- )
314
- ),
315
-
316
- "grid-auto-columns": (
317
- "prefix": "gac",
318
- "values": (
319
- "min": min-content,
320
- "max": max-content,
321
- "auto": auto
322
- )
323
- ),
324
-
325
- "grid-auto-flow": (
326
- "prefix": "gaf",
327
- "values": (
328
- "r": row,
329
- "c": column,
330
- "d": dense
331
- )
332
- ),
333
-
334
- "grid-auto-rows": (
335
- "prefix": "gar",
336
- "values": (
337
- "min": min-content,
338
- "max": max-content,
339
- "auto": auto
340
- )
341
- ),
342
-
343
- "grid-template-columns": (
344
- "prefix": "gtc",
345
- "values": (
346
- "1": repeat(1, auto),
347
- "2": repeat(2, auto),
348
- "3": repeat(3, auto),
349
- "4": repeat(4, auto),
350
- "5": repeat(5, auto),
351
- "6": repeat(6, auto),
352
- "7": repeat(7, auto),
353
- "8": repeat(8, auto),
354
- "9": repeat(9, auto),
355
- "10": repeat(10, auto),
356
- "11": repeat(11, auto),
357
- "12": repeat(12, auto),
358
- "13": repeat(13, auto),
359
- "14": repeat(14, auto),
360
- "15": repeat(15, auto),
361
- "16": repeat(16, auto)
362
- )
363
- ),
364
-
365
- "grid-template-rows": (
366
- "prefix": "gtr",
367
- "values": (
368
- "1": repeat($base-template-rows, auto),
369
- "2": repeat(2, auto),
370
- "3": repeat(3, auto),
371
- "4": repeat(4, auto),
372
- "5": repeat(5, auto),
373
- "6": repeat(6, auto),
374
- "7": repeat(7, auto),
375
- "8": repeat(8, auto),
376
- "9": repeat(9, auto),
377
- "10": repeat(10, auto),
378
- "11": repeat(11, auto),
379
- "12": repeat(12, auto),
380
- "13": repeat(13, auto),
381
- "14": repeat(14, auto),
382
- "15": repeat(15, auto),
383
- "16": repeat(16, auto)
384
- )
385
- ),
386
-
387
- "justify-content": (
388
- "prefix": "jc",
389
- "values": (
390
- "c": center,
391
- "s": start,
392
- "e": end,
393
- "fs": flex-start,
394
- "fe": flex-end,
395
- "l": left,
396
- "r": right,
397
- "n": normal,
398
- "sb": space-between,
399
- "sa": space-around,
400
- "se": space-evenly,
401
- "stretch": stretch
402
- )
403
- ),
404
-
405
- "justify-items": (
406
- "prefix": "ji",
407
- "values": (
408
- "n": normal,
409
- "stretch": stretch,
410
- "c": center,
411
- "s": start,
412
- "e": end,
413
- "fs": flex-start,
414
- "fe": flex-end,
415
- "l": left,
416
- "r": right
417
- )
418
- ),
419
-
420
- "justify-self": (
421
- "prefix": "js",
422
- "values": (
423
- "auto": auto,
424
- "n": normal,
425
- "stretch": stretch,
426
- "c": center,
427
- "s": start,
428
- "e": end,
429
- "fs": flex-start,
430
- "fe": flex-end,
431
- "l": left,
432
- "r": right
433
- )
434
- ),
435
-
436
- "row-gap": (
437
- "prefix": "rg",
438
- "values": (
439
- "1": $base-row-gap,
440
- "2": $base-row-gap * 2,
441
- "3": $base-row-gap * 3,
442
- "4": $base-row-gap * 4,
443
- "5": $base-row-gap * 5,
444
- "6": $base-row-gap * 6,
445
- "7": $base-row-gap * 7,
446
- "8": $base-row-gap * 8,
447
- "9": $base-row-gap * 9,
448
- "10": $base-row-gap * 10,
449
- "11": $base-row-gap * 11,
450
- "12": $base-row-gap * 12,
451
- "13": $base-row-gap * 13,
452
- "14": $base-row-gap * 14,
453
- "15": $base-row-gap * 15,
454
- "16": $base-row-gap * 16
455
- )
456
- ),
457
-
458
- // miscellaneous
459
- "appearance":
460
- (
461
- "prefix": "a",
462
- "values": (
463
- "none": none,
464
- "auto": auto
465
- )
466
- ),
467
-
468
- "cursor": (
469
- "prefix": "c",
470
- "values": (
471
- "auto": auto,
472
- "p": pointer,
473
- "t": text,
474
- "m": move,
475
- "na": not-allowed,
476
- "c": crosshair,
477
- "h": help,
478
- "er": e-resize,
479
- "nr": n-resize,
480
- "w": wait
481
- )
482
- ),
483
-
484
- "pointer-events": (
485
- "prefix": "pe",
486
- "values": (
487
- "auto": auto,
488
- "none": none
489
- )
490
- ),
491
-
492
- "user-select": (
493
- "prefix": "us",
494
- "values": (
495
- "auto": auto,
496
- "none": none
497
- )
498
- ),
499
-
500
- "resize": (
501
- "prefix": "r",
502
- "values": (
503
- "b": both,
504
- "h": horizontal,
505
- "v": vertical,
506
- "none": none
507
- )
508
- ),
509
-
510
- // positioning
511
- "overflow":
512
- (
513
- "prefix": "ovf",
514
- "values": (
515
- "v": visible,
516
- "h": hidden,
517
- "c": clip,
518
- "s": scroll,
519
- "auto": auto
520
- )
521
- ),
522
-
523
- "overflow-x": (
524
- "prefix": "ovf-x",
525
- "values": (
526
- "v": visible,
527
- "h": hidden,
528
- "c": clip,
529
- "s": scroll,
530
- "auto": auto
531
- )
532
- ),
533
-
534
- "overflow-y": (
535
- "prefix": "ovf-y",
536
- "values": (
537
- "v": visible,
538
- "h": hidden,
539
- "c": clip,
540
- "s": scroll,
541
- "auto": auto
542
- )
543
- ),
544
-
545
- "columns": (
546
- "prefix": "cols",
547
- "values": (
548
- "1": $base-columns,
549
- "2": $base-columns * 2,
550
- "3": $base-columns * 3,
551
- "4": $base-columns * 4,
552
- "5": $base-columns * 5,
553
- "6": $base-columns * 6,
554
- "7": $base-columns * 7,
555
- "8": $base-columns * 8,
556
- "9": $base-columns * 9,
557
- "10": $base-columns * 10,
558
- "11": $base-columns * 11,
559
- "12": $base-columns * 12,
560
- "13": $base-columns * 13,
561
- "14": $base-columns * 14,
562
- "15": $base-columns * 15,
563
- "16": $base-columns * 16
564
- )
565
- ),
566
-
567
- "bottom": (
568
- "prefix": "dir-b",
569
- "values": (
570
- "default": $base-direction * 0,
571
- "1": $base-direction,
572
- "2": $base-direction * 2,
573
- "3": $base-direction * 4,
574
- "4": $base-direction * 6,
575
- "5": $base-direction * 8,
576
- "6": $base-direction * 10,
577
- "7": $base-direction * 12,
578
- "8": $base-direction * 14,
579
- "9": $base-direction * 16,
580
- "10": $base-direction * 18,
581
- "11": $base-direction * 20,
582
- "12": $base-direction * 22,
583
- "13": $base-direction * 24,
584
- "14": $base-direction * 26,
585
- "15": $base-direction * 28,
586
- "16": $base-direction * 30,
587
- "none": none
588
- )
589
- ),
590
-
591
- "inset": (
592
- "prefix": "dir-i",
593
- "values": (
594
- "default": $base-direction * 0,
595
- "1": $base-direction,
596
- "2": $base-direction * 2,
597
- "3": $base-direction * 4,
598
- "4": $base-direction * 6,
599
- "5": $base-direction * 8,
600
- "6": $base-direction * 10,
601
- "7": $base-direction * 12,
602
- "8": $base-direction * 14,
603
- "9": $base-direction * 16,
604
- "10": $base-direction * 18,
605
- "11": $base-direction * 20,
606
- "12": $base-direction * 22,
607
- "13": $base-direction * 24,
608
- "14": $base-direction * 26,
609
- "15": $base-direction * 28,
610
- "16": $base-direction * 30,
611
- "none": none
612
- )
613
- ),
614
-
615
- "left": (
616
- "prefix": "dir-l",
617
- "values": (
618
- "default": $base-direction * 0,
619
- "1": $base-direction,
620
- "2": $base-direction * 2,
621
- "3": $base-direction * 4,
622
- "4": $base-direction * 6,
623
- "5": $base-direction * 8,
624
- "6": $base-direction * 10,
625
- "7": $base-direction * 12,
626
- "8": $base-direction * 14,
627
- "9": $base-direction * 16,
628
- "10": $base-direction * 18,
629
- "11": $base-direction * 20,
630
- "12": $base-direction * 22,
631
- "13": $base-direction * 24,
632
- "14": $base-direction * 26,
633
- "15": $base-direction * 28,
634
- "16": $base-direction * 30,
635
- "none": none
636
- )
637
- ),
638
-
639
- "right": (
640
- "prefix": "dir-r",
641
- "values": (
642
- "default": $base-direction * 0,
643
- "1": $base-direction,
644
- "2": $base-direction * 2,
645
- "3": $base-direction * 4,
646
- "4": $base-direction * 6,
647
- "5": $base-direction * 8,
648
- "6": $base-direction * 10,
649
- "7": $base-direction * 12,
650
- "8": $base-direction * 14,
651
- "9": $base-direction * 16,
652
- "10": $base-direction * 18,
653
- "11": $base-direction * 20,
654
- "12": $base-direction * 22,
655
- "13": $base-direction * 24,
656
- "14": $base-direction * 26,
657
- "15": $base-direction * 28,
658
- "16": $base-direction * 30,
659
- "none": none
660
- )
661
- ),
662
-
663
- "top": (
664
- "prefix": "dir-t",
665
- "values": (
666
- "default": $base-direction * 0,
667
- "1": $base-direction,
668
- "2": $base-direction * 2,
669
- "3": $base-direction * 4,
670
- "4": $base-direction * 6,
671
- "5": $base-direction * 8,
672
- "6": $base-direction * 10,
673
- "7": $base-direction * 12,
674
- "8": $base-direction * 14,
675
- "9": $base-direction * 16,
676
- "10": $base-direction * 18,
677
- "11": $base-direction * 20,
678
- "12": $base-direction * 22,
679
- "13": $base-direction * 24,
680
- "14": $base-direction * 26,
681
- "15": $base-direction * 28,
682
- "16": $base-direction * 30,
683
- "none": none
684
- )
685
- ),
686
-
687
- "display": (
688
- "prefix": "d",
689
- "values": (
690
- "b": block,
691
- "i": inline,
692
- "ib": inline-block,
693
- "f": flex,
694
- "if": inline-flex,
695
- "g": grid,
696
- "fr": flow-root,
697
- "none": none
698
- )
699
- ),
700
-
701
- "float": (
702
- "prefix": "f",
703
- "values": (
704
- "none": none,
705
- "l": left,
706
- "r": right,
707
- "is": inline-start,
708
- "ie": inline-end
709
- )
710
- ),
711
-
712
- "position": (
713
- "prefix": "pos",
714
- "values": (
715
- "static": static,
716
- "r": relative,
717
- "a": absolute,
718
- "f": fixed,
719
- "sticky": sticky
720
- )
721
- ),
722
-
723
- "z-index": (
724
- "prefix": "zi",
725
- "values": (
726
- "0": 0,
727
- "10": 10,
728
- "20": 20,
729
- "30": 30,
730
- "40": 40,
731
- "50": 50,
732
- "60": 60,
733
- "70": 70,
734
- "80": 80,
735
- "90": 90,
736
- "auto": auto
737
- )
738
- ),
739
-
740
- // typography & text
741
- "font-size":
742
- (
743
- "prefix": "fs",
744
- "values": (
745
- "xs": $base-font-size-xs,
746
- "sm": $base-font-size-sm,
747
- "md": $base-font-size-md,
748
- "lg": $base-font-size-lg,
749
- "xl": $base-font-size-xl
750
- )
751
- ),
752
-
753
- "font-weight": (
754
- "prefix": "fw",
755
- "values": (
756
- "100": 100,
757
- "200": 200,
758
- "300": 300,
759
- "400": 400,
760
- "500": 500,
761
- "600": 600,
762
- "700": 700,
763
- "800": 800,
764
- "900": 900
765
- )
766
- ),
767
-
768
- "list-style-type": (
769
- "prefix": "lst",
770
- "values": (
771
- "d": disc,
772
- "c": circle,
773
- "s": square
774
- )
775
- ),
776
-
777
- "opacity": (
778
- "prefix": "o",
779
- "values": (
780
- "10": 0.1,
781
- "20": 0.2,
782
- "30": 0.3,
783
- "40": 0.4,
784
- "50": 0.5,
785
- "60": 0.6,
786
- "70": 0.7,
787
- "80": 0.8,
788
- "90": 0.9,
789
- "100": 1
790
- )
791
- ),
792
-
793
- "text-align": (
794
- "prefix": "ta",
795
- "values": (
796
- "s": start,
797
- "e": end,
798
- "l": left,
799
- "r": right,
800
- "c": center,
801
- "j": justify,
802
- "ja": justify-all,
803
- "mp": match-parent
804
- )
805
- ),
806
-
807
- "text-decoration-line": (
808
- "prefix": "tdl",
809
- "values": (
810
- "none": none,
811
- "u": underline,
812
- "o": overline,
813
- "lt": line-through
814
- )
815
- ),
816
-
817
- "text-decoration": (
818
- "prefix": "td",
819
- "values": (
820
- "u": underline,
821
- "none": none
822
- )
823
- ),
824
-
825
- "overflow-wrap": (
826
- "prefix": "ow",
827
- "values": (
828
- "n": normal,
829
- "bw": break-word
830
- )
831
- )
832
- );
833
-
834
- @for $i from 0 through 100 {
835
- $suffix: #{$i};
836
-
837
- .h-#{$suffix} {
838
- height: $i * $base-height;
839
- }
840
-
841
- .max-h-#{$suffix} {
842
- max-height: $i * $base-height;
843
- }
844
-
845
- .min-h-#{$suffix} {
846
- min-height: $i * $base-height;
847
- }
848
-
849
- .w-#{$suffix} {
850
- width: $i * $base-width;
851
- }
852
-
853
- .max-w-#{$suffix} {
854
- max-width: $i * $base-width;
855
- }
856
-
857
- .min-w-#{$suffix} {
858
- min-width: $i * $base-width;
859
- }
860
-
861
- .dim-#{$suffix} {
862
- height: $i * $base-height;
863
- width: $i * $base-width;
864
- }
865
-
866
- .m-#{$i} {
867
- margin: $i * $base-margin;
868
- }
869
-
870
- .mb-#{$i} {
871
- margin-bottom: $i * $base-margin;
872
- }
873
-
874
- .ml-#{$i} {
875
- margin-left: $i * $base-margin;
876
- }
877
-
878
- .mr-#{$i} {
879
- margin-right: $i * $base-margin;
880
- }
881
-
882
- .mt-#{$i} {
883
- margin-top: $i * $base-margin;
884
- }
885
-
886
- .mx-#{$i} {
887
- margin-left: $i * $base-margin;
888
- margin-right: $i * $base-margin;
889
- }
890
-
891
- .my-#{$i} {
892
- margin-top: $i * $base-margin;
893
- margin-bottom: $i * $base-margin;
894
- }
895
-
896
- .p-#{$i} {
897
- padding: $i * $base-padding;
898
- }
899
-
900
- .pb-#{$i} {
901
- padding-bottom: $i * $base-padding;
902
- }
903
-
904
- .pl-#{$i} {
905
- padding-left: $i * $base-padding;
906
- }
907
-
908
- .pr-#{$i} {
909
- padding-right: $i * $base-padding;
910
- }
911
-
912
- .pt-#{$i} {
913
- padding-top: $i * $base-padding;
914
- }
915
-
916
- .px-#{$i} {
917
- padding-left: $i * $base-padding;
918
- padding-right: $i * $base-padding;
919
- }
920
-
921
- .py-#{$i} {
922
- padding-top: $i * $base-padding;
923
- padding-bottom: $i * $base-padding;
924
- }
925
-
926
- .fb-#{$suffix} {
927
- flex-basis: $i * $base-flex-basis;
928
- }
929
- }
930
-
931
- @each $property, $map in $utilities {
932
- $prefix: map-get($map, "prefix");
933
- $values: map-get($map, "values");
934
-
935
- @each $k, $v in $values {
936
- @if ($k == "default") {
937
- .#{$prefix} {
938
- #{$property}: $v;
939
- }
940
- } @else {
941
- .#{$prefix}-#{$k} {
942
- #{$property}: $v;
943
- }
944
- }
945
- }
946
- }
947
-
948
- // height & width
949
- @each $key, $value in $custom-values {
950
- .h-#{$key} {
951
- height: $value;
952
- }
953
-
954
- .max-h-#{$key} {
955
- max-height: $value;
956
- }
957
-
958
- .min-h-#{$key} {
959
- min-height: $value;
960
- }
961
-
962
- .w-#{$key} {
963
- width: $value;
964
- }
965
-
966
- .max-w-#{$key} {
967
- max-width: $value;
968
- }
969
-
970
- .min-w-#{$key} {
971
- min-width: $value;
972
- }
973
-
974
- .dim-#{$key} {
975
- height: $value;
976
- width: $value;
977
- }
978
- }
979
-
980
- // margin & padding
981
- @each $key, $value in $custom-values {
982
- @if $key == "auto" {
983
- .m-#{$key} {
984
- margin: $value;
985
- }
986
-
987
- .mb-#{$key} {
988
- margin-bottom: $value;
989
- }
990
-
991
- .ml-#{$key} {
992
- margin-left: $value;
993
- }
994
-
995
- .mr-#{$key} {
996
- margin-right: $value;
997
- }
998
-
999
- .mt-#{$key} {
1000
- margin-top: $value;
1001
- }
1002
-
1003
- .p-#{$key} {
1004
- padding: $value;
1005
- }
1006
-
1007
- .pb-#{$key} {
1008
- padding-bottom: $value;
1009
- }
1010
-
1011
- .pl-#{$key} {
1012
- padding-left: $value;
1013
- }
1014
-
1015
- .pr-#{$key} {
1016
- padding-right: $value;
1017
- }
1018
-
1019
- .pt-#{$key} {
1020
- padding-top: $value;
1021
- }
1022
- }
1023
- }
1024
-
1025
- // viewport height
1026
- @each $key, $value in $custom-height-values {
1027
- .h-#{$key} {
1028
- height: $value;
1029
- }
1030
-
1031
- .max-h-#{$key} {
1032
- max-height: $value;
1033
- }
1034
-
1035
- .min-h-#{$key} {
1036
- min-height: $value;
1037
- }
1038
- }
1039
-
1040
- // viewport width
1041
- @each $key, $value in $custom-width-values {
1042
- .w-#{$key} {
1043
- width: $value;
1044
- }
1045
-
1046
- .max-w-#{$key} {
1047
- max-width: $value;
1048
- }
1049
-
1050
- .min-w-#{$key} {
1051
- min-width: $value;
1052
- }
1053
- }
1054
-
1055
- @mixin breakpoint-classes($breakpoint) {
1056
- @media (min-width: map-get($breakpoints, $breakpoint)) {
1057
- .#{$breakpoint}\: {
1058
- @for $i from 0 through 100 {
1059
- $suffix: #{$i};
1060
-
1061
- &h-#{$suffix} {
1062
- height: $i * $base-height;
1063
- }
1064
-
1065
- &max-h-#{$suffix} {
1066
- max-height: $i * $base-height;
1067
- }
1068
-
1069
- &min-h-#{$suffix} {
1070
- min-height: $i * $base-height;
1071
- }
1072
-
1073
- &w-#{$suffix} {
1074
- width: $i * $base-width;
1075
- }
1076
-
1077
- &max-w-#{$suffix} {
1078
- max-width: $i * $base-width;
1079
- }
1080
-
1081
- &min-w-#{$suffix} {
1082
- min-width: $i * $base-width;
1083
- }
1084
-
1085
- &m-#{$i} {
1086
- margin: $i * $base-margin;
1087
- }
1088
-
1089
- &mb-#{$i} {
1090
- margin-bottom: $i * $base-margin;
1091
- }
1092
-
1093
- &ml-#{$i} {
1094
- margin-left: $i * $base-margin;
1095
- }
1096
-
1097
- &mr-#{$i} {
1098
- margin-right: $i * $base-margin;
1099
- }
1100
-
1101
- &mt-#{$i} {
1102
- margin-top: $i * $base-margin;
1103
- }
1104
-
1105
- &mx-#{$i} {
1106
- margin-left: $i * $base-margin;
1107
- margin-right: $i * $base-margin;
1108
- }
1109
-
1110
- &my-#{$i} {
1111
- margin-top: $i * $base-margin;
1112
- margin-bottom: $i * $base-margin;
1113
- }
1114
-
1115
- &p-#{$i} {
1116
- padding: $i * $base-padding;
1117
- }
1118
-
1119
- &pb-#{$i} {
1120
- padding-bottom: $i * $base-padding;
1121
- }
1122
-
1123
- &pl-#{$i} {
1124
- padding-left: $i * $base-padding;
1125
- }
1126
-
1127
- &pr-#{$i} {
1128
- padding-right: $i * $base-padding;
1129
- }
1130
-
1131
- &pt-#{$i} {
1132
- padding-top: $i * $base-padding;
1133
- }
1134
-
1135
- &px-#{$i} {
1136
- padding-left: $i * $base-padding;
1137
- padding-right: $i * $base-padding;
1138
- }
1139
-
1140
- &py-#{$i} {
1141
- padding-top: $i * $base-padding;
1142
- padding-bottom: $i * $base-padding;
1143
- }
1144
-
1145
- &fb-#{$suffix} {
1146
- flex-basis: $i * $base-flex-basis;
1147
- }
1148
- }
1149
-
1150
- @each $property, $map in $utilities {
1151
- $prefix: map-get($map, "prefix");
1152
- $values: map-get($map, "values");
1153
-
1154
- @each $k, $v in $values {
1155
- @if ($k == "default") {
1156
- &#{$prefix} {
1157
- #{$property}: $v;
1158
- }
1159
- } @else {
1160
- &#{$prefix}-#{$k} {
1161
- #{$property}: $v;
1162
- }
1163
- }
1164
- }
1165
- }
1166
-
1167
- @each $key, $value in $custom-values {
1168
- &h-#{$key} {
1169
- height: $value;
1170
- }
1171
-
1172
- &max-h-#{$key} {
1173
- max-height: $value;
1174
- }
1175
-
1176
- &min-h-#{$key} {
1177
- min-height: $value;
1178
- }
1179
-
1180
- &w-#{$key} {
1181
- width: $value;
1182
- }
1183
-
1184
- &max-w-#{$key} {
1185
- max-width: $value;
1186
- }
1187
-
1188
- &min-w-#{$key} {
1189
- min-width: $value;
1190
- }
1191
- }
1192
-
1193
- @each $key, $value in $custom-values {
1194
- @if $key == "auto" {
1195
- &m-#{$key} {
1196
- margin: $value;
1197
- }
1198
-
1199
- &mb-#{$key} {
1200
- margin-bottom: $value;
1201
- }
1202
-
1203
- &ml-#{$key} {
1204
- margin-left: $value;
1205
- }
1206
-
1207
- &mr-#{$key} {
1208
- margin-right: $value;
1209
- }
1210
-
1211
- &mt-#{$key} {
1212
- margin-top: $value;
1213
- }
1214
-
1215
- &p-#{$key} {
1216
- padding: $value;
1217
- }
1218
-
1219
- &pb-#{$key} {
1220
- padding-bottom: $value;
1221
- }
1222
-
1223
- &pl-#{$key} {
1224
- padding-left: $value;
1225
- }
1226
-
1227
- &pr-#{$key} {
1228
- padding-right: $value;
1229
- }
1230
-
1231
- &pt-#{$key} {
1232
- padding-top: $value;
1233
- }
1234
- }
1235
- }
1236
-
1237
- @each $key, $value in $custom-height-values {
1238
- &h-#{$key} {
1239
- height: $value;
1240
- }
1241
-
1242
- &max-h-#{$key} {
1243
- max-height: $value;
1244
- }
1245
-
1246
- &min-h-#{$key} {
1247
- min-height: $value;
1248
- }
1249
- }
1250
-
1251
- @each $key, $value in $custom-width-values {
1252
- &w-#{$key} {
1253
- width: $value;
1254
- }
1255
-
1256
- &max-w-#{$key} {
1257
- max-width: $value;
1258
- }
1259
-
1260
- &min-w-#{$key} {
1261
- min-width: $value;
1262
- }
1263
- }
1264
- }
1265
- }
1266
- }
1267
-
1268
- @include breakpoint-classes(xs);
1269
- @include breakpoint-classes(sm);
1270
- @include breakpoint-classes(md);
1271
- @include breakpoint-classes(lg);
1272
- @include breakpoint-classes(xl);