yummacss 1.0.3 → 1.2.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,1034 +0,0 @@
1
- @use "sass:math";
2
-
3
- $utilities: (
4
-
5
- // borders & background
6
- "border-width": (
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
- "xsm": 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
- "xlg": 1px 3px 5px 2px rgba(0, 0, 0, 0.1)
167
- )
168
- ),
169
-
170
- // box model
171
- "box-sizing": (
172
- "prefix": "bs",
173
- "values": (
174
- "bb": border-box,
175
- "cb": content-box
176
- )
177
- ),
178
-
179
- // flexbox & grid
180
- "align-content": (
181
- "prefix": "ac",
182
- "values": (
183
- "c": center,
184
- "start": start,
185
- "e": end,
186
- "fs": flex-start,
187
- "fe": flex-end,
188
- "n": normal,
189
- "sb": space-between,
190
- "sa": space-around,
191
- "se": space-evenly,
192
- "stretch": stretch
193
- )
194
- ),
195
-
196
- "align-items": (
197
- "prefix": "ai",
198
- "values": (
199
- "n": normal,
200
- "stretch": stretch,
201
- "c": center,
202
- "start": start,
203
- "e": end,
204
- "fs": flex-start,
205
- "fe": flex-end
206
- )
207
- ),
208
-
209
- "align-self": (
210
- "prefix": "as",
211
- "values": (
212
- "auto": auto,
213
- "n": normal,
214
- "c": center,
215
- "start": start,
216
- "e": end,
217
- "fs": flex-start,
218
- "fe": flex-end,
219
- "stretch": stretch
220
- )
221
- ),
222
-
223
- "column-gap": (
224
- "prefix": "cg",
225
- "values": (
226
- "1": $base-column-gap,
227
- "2": $base-column-gap * 2,
228
- "3": $base-column-gap * 3,
229
- "4": $base-column-gap * 4,
230
- "5": $base-column-gap * 5,
231
- "6": $base-column-gap * 6,
232
- "7": $base-column-gap * 7,
233
- "8": $base-column-gap * 8,
234
- "9": $base-column-gap * 9,
235
- "10": $base-column-gap * 10,
236
- "11": $base-column-gap * 11,
237
- "12": $base-column-gap * 12,
238
- "13": $base-column-gap * 13,
239
- "14": $base-column-gap * 14,
240
- "15": $base-column-gap * 15,
241
- "16": $base-column-gap * 16
242
- )
243
- ),
244
-
245
- "flex-direction": (
246
- "prefix": "fd",
247
- "values": (
248
- "r": row,
249
- "rr": row-reverse,
250
- "c": column,
251
- "cr": column-reverse
252
- )
253
- ),
254
-
255
- "flex-grow": (
256
- "prefix": "fg",
257
- "values": (
258
- "1": $base-flex-grow,
259
- "2": $base-flex-grow * 2,
260
- "3": $base-flex-grow * 3,
261
- "4": $base-flex-grow * 4,
262
- "5": $base-flex-grow * 5,
263
- "6": $base-flex-grow * 6,
264
- "7": $base-flex-grow * 7,
265
- "8": $base-flex-grow * 8
266
- )
267
- ),
268
-
269
- "flex-shrink": (
270
- "prefix": "fs",
271
- "values": (
272
- "1": $base-flex-shrink,
273
- "2": $base-flex-shrink * 2,
274
- "3": $base-flex-shrink * 3,
275
- "4": $base-flex-shrink * 4,
276
- "5": $base-flex-shrink * 5,
277
- "6": $base-flex-shrink * 6,
278
- "7": $base-flex-shrink * 7,
279
- "8": $base-flex-shrink * 8
280
- )
281
- ),
282
-
283
- "flex-wrap": (
284
- "prefix": "fw",
285
- "values": (
286
- "nw": nowrap,
287
- "w": wrap,
288
- "wr": wrap-reverse
289
- )
290
- ),
291
-
292
- "flex": (
293
- "prefix": "f",
294
- "values": (
295
- "1": $base-flex,
296
- "2": $base-flex * 2,
297
- "3": $base-flex * 3,
298
- "4": $base-flex * 4,
299
- "5": $base-flex * 5,
300
- "6": $base-flex * 6,
301
- "7": $base-flex * 7,
302
- "8": $base-flex * 8,
303
- "9": $base-flex * 9,
304
- "10": $base-flex * 10,
305
- "11": $base-flex * 11,
306
- "12": $base-flex * 12,
307
- "13": $base-flex * 13,
308
- "14": $base-flex * 14,
309
- "15": $base-flex * 15,
310
- "16": $base-flex * 16
311
- )
312
- ),
313
-
314
- "grid-auto-columns": (
315
- "prefix": "gac",
316
- "values": (
317
- "min": min-content,
318
- "max": max-content,
319
- "auto": auto
320
- )
321
- ),
322
-
323
- "grid-auto-flow": (
324
- "prefix": "gaf",
325
- "values": (
326
- "r": row,
327
- "c": column,
328
- "d": dense
329
- )
330
- ),
331
-
332
- "grid-auto-rows": (
333
- "prefix": "gar",
334
- "values": (
335
- "min": min-content,
336
- "max": max-content,
337
- "auto": auto
338
- )
339
- ),
340
-
341
- "grid-template-columns": (
342
- "prefix": "gtc",
343
- "values": (
344
- "1": repeat(1, auto),
345
- "2": repeat(2, auto),
346
- "3": repeat(3, auto),
347
- "4": repeat(4, auto),
348
- "5": repeat(5, auto),
349
- "6": repeat(6, auto),
350
- "7": repeat(7, auto),
351
- "8": repeat(8, auto),
352
- "9": repeat(9, auto),
353
- "10": repeat(10, auto),
354
- "11": repeat(11, auto),
355
- "12": repeat(12, auto),
356
- "13": repeat(13, auto),
357
- "14": repeat(14, auto),
358
- "15": repeat(15, auto),
359
- "16": repeat(16, auto)
360
- )
361
- ),
362
-
363
- "grid-template-rows": (
364
- "prefix": "gtr",
365
- "values": (
366
- "1": repeat($base-template-rows, auto),
367
- "2": repeat(2, auto),
368
- "3": repeat(3, auto),
369
- "4": repeat(4, auto),
370
- "5": repeat(5, auto),
371
- "6": repeat(6, auto),
372
- "7": repeat(7, auto),
373
- "8": repeat(8, auto),
374
- "9": repeat(9, auto),
375
- "10": repeat(10, auto),
376
- "11": repeat(11, auto),
377
- "12": repeat(12, auto),
378
- "13": repeat(13, auto),
379
- "14": repeat(14, auto),
380
- "15": repeat(15, auto),
381
- "16": repeat(16, auto)
382
- )
383
- ),
384
-
385
- "justify-content": (
386
- "prefix": "jc",
387
- "values": (
388
- "c": center,
389
- "s": start,
390
- "e": end,
391
- "fs": flex-start,
392
- "fe": flex-end,
393
- "l": left,
394
- "r": right,
395
- "n": normal,
396
- "sb": space-between,
397
- "sa": space-around,
398
- "se": space-evenly,
399
- "stretch": stretch
400
- )
401
- ),
402
-
403
- "justify-items": (
404
- "prefix": "ji",
405
- "values": (
406
- "n": normal,
407
- "stretch": stretch,
408
- "c": center,
409
- "s": start,
410
- "e": end,
411
- "fs": flex-start,
412
- "fe": flex-end,
413
- "l": left,
414
- "r": right
415
- )
416
- ),
417
-
418
- "justify-self": (
419
- "prefix": "js",
420
- "values": (
421
- "auto": auto,
422
- "n": normal,
423
- "stretch": stretch,
424
- "c": center,
425
- "s": start,
426
- "e": end,
427
- "fs": flex-start,
428
- "fe": flex-end,
429
- "l": left,
430
- "r": right
431
- )
432
- ),
433
-
434
- "row-gap": (
435
- "prefix": "rg",
436
- "values": (
437
- "1": $base-row-gap,
438
- "2": $base-row-gap * 2,
439
- "3": $base-row-gap * 3,
440
- "4": $base-row-gap * 4,
441
- "5": $base-row-gap * 5,
442
- "6": $base-row-gap * 6,
443
- "7": $base-row-gap * 7,
444
- "8": $base-row-gap * 8,
445
- "9": $base-row-gap * 9,
446
- "10": $base-row-gap * 10,
447
- "11": $base-row-gap * 11,
448
- "12": $base-row-gap * 12,
449
- "13": $base-row-gap * 13,
450
- "14": $base-row-gap * 14,
451
- "15": $base-row-gap * 15,
452
- "16": $base-row-gap * 16
453
- )
454
- ),
455
-
456
- // miscellaneous
457
- "appearance": (
458
- "prefix": "a",
459
- "values": (
460
- "none": none,
461
- "auto": auto
462
- )
463
- ),
464
-
465
- "cursor": (
466
- "prefix": "c",
467
- "values": (
468
- "auto": auto,
469
- "p": pointer,
470
- "t": text,
471
- "m": move,
472
- "na": not-allowed,
473
- "c": crosshair,
474
- "h": help,
475
- "er": e-resize,
476
- "nr": n-resize,
477
- "w": wait
478
- )
479
- ),
480
-
481
- "pointer-events": (
482
- "prefix": "pe",
483
- "values": (
484
- "auto": auto,
485
- "none": none
486
- )
487
- ),
488
-
489
- "user-select": (
490
- "prefix": "us",
491
- "values": (
492
- "auto": auto,
493
- "none": none
494
- )
495
- ),
496
-
497
- "resize": (
498
- "prefix": "r",
499
- "values": (
500
- "b": both,
501
- "h": horizontal,
502
- "v": vertical,
503
- "none": none
504
- )
505
- ),
506
-
507
- // positioning
508
- "overflow": (
509
- "prefix": "ovf",
510
- "values": (
511
- "v": visible,
512
- "h": hidden,
513
- "c": clip,
514
- "s": scroll,
515
- "auto": auto
516
- )
517
- ),
518
-
519
- "overflow-x": (
520
- "prefix": "ovf-x",
521
- "values": (
522
- "v": visible,
523
- "h": hidden,
524
- "c": clip,
525
- "s": scroll,
526
- "auto": auto
527
- )
528
- ),
529
-
530
- "overflow-y": (
531
- "prefix": "ovf-y",
532
- "values": (
533
- "v": visible,
534
- "h": hidden,
535
- "c": clip,
536
- "s": scroll,
537
- "auto": auto
538
- )
539
- ),
540
-
541
- "columns": (
542
- "prefix": "col",
543
- "values": (
544
- "1": $base-columns,
545
- "2": $base-columns * 2,
546
- "3": $base-columns * 3,
547
- "4": $base-columns * 4,
548
- "5": $base-columns * 5,
549
- "6": $base-columns * 6,
550
- "7": $base-columns * 7,
551
- "8": $base-columns * 8,
552
- "9": $base-columns * 9,
553
- "10": $base-columns * 10,
554
- "11": $base-columns * 11,
555
- "12": $base-columns * 12,
556
- "13": $base-columns * 13,
557
- "14": $base-columns * 14,
558
- "15": $base-columns * 15,
559
- "16": $base-columns * 16
560
- )
561
- ),
562
-
563
- "bottom": (
564
- "prefix": "dir-b",
565
- "values": (
566
- "default": $base-direction * 0,
567
- "1": $base-direction,
568
- "2": $base-direction * 2,
569
- "3": $base-direction * 4,
570
- "4": $base-direction * 6,
571
- "5": $base-direction * 8,
572
- "6": $base-direction * 10,
573
- "7": $base-direction * 12,
574
- "8": $base-direction * 14,
575
- "9": $base-direction * 16,
576
- "10": $base-direction * 18,
577
- "11": $base-direction * 20,
578
- "12": $base-direction * 22,
579
- "13": $base-direction * 24,
580
- "14": $base-direction * 26,
581
- "15": $base-direction * 28,
582
- "16": $base-direction * 30,
583
- "none": none
584
- )
585
- ),
586
-
587
- "inset": (
588
- "prefix": "dir-i",
589
- "values": (
590
- "default": $base-direction * 0,
591
- "1": $base-direction,
592
- "2": $base-direction * 2,
593
- "3": $base-direction * 4,
594
- "4": $base-direction * 6,
595
- "5": $base-direction * 8,
596
- "6": $base-direction * 10,
597
- "7": $base-direction * 12,
598
- "8": $base-direction * 14,
599
- "9": $base-direction * 16,
600
- "10": $base-direction * 18,
601
- "11": $base-direction * 20,
602
- "12": $base-direction * 22,
603
- "13": $base-direction * 24,
604
- "14": $base-direction * 26,
605
- "15": $base-direction * 28,
606
- "16": $base-direction * 30,
607
- "none": none
608
- )
609
- ),
610
-
611
- "left": (
612
- "prefix": "dir-l",
613
- "values": (
614
- "default": $base-direction * 0,
615
- "1": $base-direction,
616
- "2": $base-direction * 2,
617
- "3": $base-direction * 4,
618
- "4": $base-direction * 6,
619
- "5": $base-direction * 8,
620
- "6": $base-direction * 10,
621
- "7": $base-direction * 12,
622
- "8": $base-direction * 14,
623
- "9": $base-direction * 16,
624
- "10": $base-direction * 18,
625
- "11": $base-direction * 20,
626
- "12": $base-direction * 22,
627
- "13": $base-direction * 24,
628
- "14": $base-direction * 26,
629
- "15": $base-direction * 28,
630
- "16": $base-direction * 30,
631
- "none": none
632
- )
633
- ),
634
-
635
- "right": (
636
- "prefix": "dir-r",
637
- "values": (
638
- "default": $base-direction * 0,
639
- "1": $base-direction,
640
- "2": $base-direction * 2,
641
- "3": $base-direction * 4,
642
- "4": $base-direction * 6,
643
- "5": $base-direction * 8,
644
- "6": $base-direction * 10,
645
- "7": $base-direction * 12,
646
- "8": $base-direction * 14,
647
- "9": $base-direction * 16,
648
- "10": $base-direction * 18,
649
- "11": $base-direction * 20,
650
- "12": $base-direction * 22,
651
- "13": $base-direction * 24,
652
- "14": $base-direction * 26,
653
- "15": $base-direction * 28,
654
- "16": $base-direction * 30,
655
- "none": none
656
- )
657
- ),
658
-
659
- "top": (
660
- "prefix": "dir-t",
661
- "values": (
662
- "default": $base-direction * 0,
663
- "1": $base-direction,
664
- "2": $base-direction * 2,
665
- "3": $base-direction * 4,
666
- "4": $base-direction * 6,
667
- "5": $base-direction * 8,
668
- "6": $base-direction * 10,
669
- "7": $base-direction * 12,
670
- "8": $base-direction * 14,
671
- "9": $base-direction * 16,
672
- "10": $base-direction * 18,
673
- "11": $base-direction * 20,
674
- "12": $base-direction * 22,
675
- "13": $base-direction * 24,
676
- "14": $base-direction * 26,
677
- "15": $base-direction * 28,
678
- "16": $base-direction * 30,
679
- "none": none
680
- )
681
- ),
682
-
683
- "display": (
684
- "prefix": "d",
685
- "values": (
686
- "b": block,
687
- "i": inline,
688
- "ib": inline-block,
689
- "f": flex,
690
- "if": inline-flex,
691
- "g": grid,
692
- "fr": flow-root,
693
- "none": none
694
- )
695
- ),
696
-
697
- "float": (
698
- "prefix": "f",
699
- "values": (
700
- "none": none,
701
- "l": left,
702
- "r": right,
703
- "is": inline-start,
704
- "ie": inline-end
705
- )
706
- ),
707
-
708
- "position": (
709
- "prefix": "pos",
710
- "values": (
711
- "static": static,
712
- "r": relative,
713
- "a": absolute,
714
- "f": fixed,
715
- "sticky": sticky
716
- )
717
- ),
718
-
719
- "z-index": (
720
- "prefix": "zi",
721
- "values": (
722
- "0": 0,
723
- "10": 10,
724
- "20": 20,
725
- "30": 30,
726
- "40": 40,
727
- "50": 50,
728
- "60": 60,
729
- "70": 70,
730
- "80": 80,
731
- "90": 90,
732
- "auto": auto
733
- )
734
- ),
735
-
736
- // typography & text
737
- "font-size": (
738
- "prefix": "fs",
739
- "values": (
740
- "sm": $base-font-size-sm,
741
- "md": $base-font-size,
742
- "lg": $base-font-size-lg,
743
- "xlg": $base-font-size-xlg
744
- )
745
- ),
746
-
747
- "font-weight": (
748
- "prefix": "fw",
749
- "values": (
750
- "100": 100,
751
- "200": 200,
752
- "300": 300,
753
- "400": 400,
754
- "500": 500,
755
- "600": 600,
756
- "700": 700,
757
- "800": 800,
758
- "900": 900
759
- )
760
- ),
761
-
762
- "list-style-type": (
763
- "prefix": "tst",
764
- "values": (
765
- "d": disc,
766
- "c": circle,
767
- "s": square
768
- )
769
- ),
770
-
771
- "opacity": (
772
- "prefix": "o",
773
- "values": (
774
- "10": 0.1,
775
- "20": 0.2,
776
- "30": 0.3,
777
- "40": 0.4,
778
- "50": 0.5,
779
- "60": 0.6,
780
- "70": 0.7,
781
- "80": 0.8,
782
- "90": 0.9,
783
- "100": 1
784
- )
785
- ),
786
-
787
- "text-align": (
788
- "prefix": "ta",
789
- "values": (
790
- "s": start,
791
- "e": end,
792
- "l": left,
793
- "r": right,
794
- "c": center,
795
- "j": justify,
796
- "ja": justify-all,
797
- "mp": match-parent
798
- )
799
- ),
800
-
801
- "text-decoration-line": (
802
- "prefix": "tdl",
803
- "values": (
804
- "none": none,
805
- "u": underline,
806
- "o": overline,
807
- "lt": line-through
808
- )
809
- ),
810
-
811
- "text-decoration": (
812
- "prefix": "td",
813
- "values": (
814
- "u": underline,
815
- "none": none
816
- )
817
- ),
818
-
819
- "overflow-wrap": (
820
- "prefix": "ow",
821
- "values": (
822
- "n": normal,
823
- "bw": break-word
824
- )
825
- ),
826
-
827
- );
828
-
829
- @for $i from 0 through 100 {
830
- $suffix: #{$i};
831
-
832
- .h-#{$suffix} {
833
- height: $i * $base-height;
834
- }
835
-
836
- .max-h-#{$suffix} {
837
- max-height: $i * $base-height;
838
- }
839
-
840
- .min-h-#{$suffix} {
841
- min-height: $i * $base-height;
842
- }
843
-
844
- .w-#{$suffix} {
845
- width: $i * $base-width;
846
- }
847
-
848
- .max-w-#{$suffix} {
849
- max-width: $i * $base-width;
850
- }
851
-
852
- .min-w-#{$suffix} {
853
- min-width: $i * $base-width;
854
- }
855
-
856
- .m-#{$i} {
857
- margin: $i * $base-margin;
858
- }
859
-
860
- .mb-#{$i} {
861
- margin-bottom: $i * $base-margin;
862
- }
863
-
864
- .ml-#{$i} {
865
- margin-left: $i * $base-margin;
866
- }
867
-
868
- .mr-#{$i} {
869
- margin-right: $i * $base-margin;
870
- }
871
-
872
- .mt-#{$i} {
873
- margin-top: $i * $base-margin;
874
- }
875
-
876
- .mx-#{$i} {
877
- margin-left: $i * $base-margin;
878
- margin-right: $i * $base-margin;
879
- }
880
-
881
- .my-#{$i} {
882
- margin-top: $i * $base-margin;
883
- margin-bottom: $i * $base-margin;
884
- }
885
-
886
- .p-#{$i} {
887
- padding: $i * $base-padding;
888
- }
889
-
890
- .pb-#{$i} {
891
- padding-bottom: $i * $base-padding;
892
- }
893
-
894
- .pl-#{$i} {
895
- padding-left: $i * $base-padding;
896
- }
897
-
898
- .pr-#{$i} {
899
- padding-right: $i * $base-padding;
900
- }
901
-
902
- .pt-#{$i} {
903
- padding-top: $i * $base-padding;
904
- }
905
-
906
- .px-#{$i} {
907
- padding-left: $i * $base-padding;
908
- padding-right: $i * $base-padding;
909
- }
910
-
911
- .py-#{$i} {
912
- padding-top: $i * $base-padding;
913
- padding-bottom: $i * $base-padding;
914
- }
915
-
916
- .fb-#{$suffix} {
917
- flex-basis: $i * $base-flex-basis;
918
- }
919
- }
920
-
921
- @each $property, $map in $utilities {
922
- $prefix: map-get($map, "prefix");
923
- $values: map-get($map, "values");
924
-
925
- @each $k, $v in $values {
926
- @if ($k == "default") {
927
- .#{$prefix} {
928
- #{$property}: $v;
929
- }
930
- } @else {
931
- .#{$prefix}-#{$k} {
932
- #{$property}: $v;
933
- }
934
- }
935
- }
936
- }
937
-
938
- @each $key, $value in $custom-values {
939
- .h-#{$key} {
940
- height: $value;
941
- }
942
-
943
- .max-h-#{$key} {
944
- max-height: $value;
945
- }
946
-
947
- .min-h-#{$key} {
948
- min-height: $value;
949
- }
950
-
951
- .w-#{$key} {
952
- width: $value;
953
- }
954
-
955
- .max-w-#{$key} {
956
- max-width: $value;
957
- }
958
-
959
- .min-w-#{$key} {
960
- min-width: $value;
961
- }
962
- }
963
-
964
- @each $key, $value in $custom-values {
965
- @if $key == "auto" {
966
- .m-#{$key} {
967
- margin: $value;
968
- }
969
-
970
- .mb-#{$key} {
971
- margin-bottom: $value;
972
- }
973
-
974
- .ml-#{$key} {
975
- margin-left: $value;
976
- }
977
-
978
- .mr-#{$key} {
979
- margin-right: $value;
980
- }
981
-
982
- .mt-#{$key} {
983
- margin-top: $value;
984
- }
985
-
986
- .p-#{$key} {
987
- padding: $value;
988
- }
989
-
990
- .pb-#{$key} {
991
- padding-bottom: $value;
992
- }
993
-
994
- .pl-#{$key} {
995
- padding-left: $value;
996
- }
997
-
998
- .pr-#{$key} {
999
- padding-right: $value;
1000
- }
1001
-
1002
- .pt-#{$key} {
1003
- padding-top: $value;
1004
- }
1005
- }
1006
- }
1007
-
1008
- @each $key, $value in $custom-height-values {
1009
- .h-#{$key} {
1010
- height: $value;
1011
- }
1012
-
1013
- .max-h-#{$key} {
1014
- max-height: $value;
1015
- }
1016
-
1017
- .min-h-#{$key} {
1018
- min-height: $value;
1019
- }
1020
- }
1021
-
1022
- @each $key, $value in $custom-width-values {
1023
- .w-#{$key} {
1024
- width: $value;
1025
- }
1026
-
1027
- .max-w-#{$key} {
1028
- max-width: $value;
1029
- }
1030
-
1031
- .min-w-#{$key} {
1032
- min-width: $value;
1033
- }
1034
- }