@softheon/armature 19.14.1 → 19.16.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,824 +1,57 @@
1
+ @use "sass:meta";
1
2
  @use "./variables" as vars;
2
3
 
3
- /** This file includes classes/attributes to control the margin & padding of elements */
4
-
5
- /** Margin Styling */
6
-
7
- /** M-Top */
8
- [m-t-auto],
9
- .m-t-auto {
10
- margin-top: auto !important;
11
- }
12
- [m-t-0],
13
- .m-t-0 {
14
- margin-top: 0px !important;
15
- }
16
- [m-t-5],
17
- .m-t-5 {
18
- margin-top: 5px !important;
19
- }
20
- [m-t-10],
21
- .m-t-10 {
22
- margin-top: 10px !important;
23
- }
24
- [m-t-15],
25
- .m-t-15 {
26
- margin-top: 15px !important;
27
- }
28
- [m-t-20],
29
- .m-t-20 {
30
- margin-top: 20px !important;
31
- }
32
- [m-t-24],
33
- .m-t-24 {
34
- margin-top: 24px !important;
35
- }
36
- [m-t-25],
37
- .m-t-25 {
38
- margin-top: 25px !important;
39
- }
40
- [m-t-30],
41
- .m-t-30 {
42
- margin-top: 30px !important;
43
- }
44
- [m-t-32],
45
- .m-t-32 {
46
- margin-top: 32px !important;
47
- }
48
- [m-t-40],
49
- .m-t-40 {
50
- margin-top: 40px !important;
51
- }
52
- [m-t-45],
53
- .m-t-45 {
54
- margin-top: 45px !important;
55
- }
56
- [m-t-50],
57
- .m-t-50 {
58
- margin-top: 45px !important;
59
- }
60
- .m-t-55,
61
- [m-t-55] {
62
- margin-top: 55px !important;
63
- }
64
- [m-t-60],
65
- .m-t-60 {
66
- margin-top: 60px !important;
67
- }
68
-
69
- /** M-Right */
70
- .m-r-auto,
71
- [m-r-auto] {
72
- margin-right: auto !important;
73
- }
74
- .m-r-0,
75
- [m-r-0] {
76
- margin-right: 0px !important;
77
- }
78
- .m-r-5,
79
- [m-r-5] {
80
- margin-right: 5px !important;
81
- }
82
- .m-r-10,
83
- [m-r-10] {
84
- margin-right: 10px !important;
85
- }
86
- .m-r-16,
87
- [m-r-16] {
88
- margin-right: 16px !important;
89
- }
90
- .m-r-20,
91
- [m-r-20] {
92
- margin-right: 20px !important;
93
- }
94
- .m-r-60,
95
- [m-r-60] {
96
- margin-right: 60px !important;
97
- }
98
-
99
- /** M-Bottom */
100
- [m-b-auto],
101
- .m-b-auto {
102
- margin-bottom: auto !important;
103
- }
104
- [m-b-0],
105
- .m-b-0 {
106
- margin-bottom: 0px !important;
107
- }
108
- [m-b-5],
109
- .m-b-5 {
110
- margin-bottom: 5px !important;
111
- }
112
- [m-b-10],
113
- .m-b-10 {
114
- margin-bottom: 10px !important;
115
- }
116
- [m-b-15],
117
- .m-b-15 {
118
- margin-bottom: 15px !important;
119
- }
120
- [m-b-20],
121
- .m-b-20 {
122
- margin-bottom: 20px !important;
123
- }
124
- [m-b-24],
125
- .m-b-24 {
126
- margin-bottom: 24px !important;
127
- }
128
- [m-b-25],
129
- .m-b-25 {
130
- margin-bottom: 25px !important;
131
- }
132
- [m-b-30],
133
- .m-b-30 {
134
- margin-bottom: 30px !important;
135
- }
136
- [m-b-37],
137
- .m-b-37 {
138
- margin-bottom: 37px !important;
139
- }
140
- [m-b-45],
141
- .m-b-45 {
142
- margin-bottom: 45px !important;
143
- }
144
- [m-b-50],
145
- .m-b-50 {
146
- margin-bottom: 50px !important;
147
- }
148
- [m-b-65],
149
- .m-b-65 {
150
- margin-bottom: 65px !important;
151
- }
152
-
153
- /** M-Left */
154
- .m-l-auto,
155
- [m-l-auto] {
156
- margin-left: auto !important;
157
- }
158
- .m-l-0,
159
- [m-l-0] {
160
- margin-left: 0px !important;
161
- }
162
- .m-l-5,
163
- [m-l-5] {
164
- margin-left: 5px !important;
165
- }
166
- .m-l-8,
167
- [m-l-8] {
168
- margin-left: 8px !important;
169
- }
170
- .m-l-10,
171
- [m-l-10] {
172
- margin-left: 10px !important;
173
- }
174
- .m-l-15,
175
- [m-l-15] {
176
- margin-left: 15px !important;
177
- }
178
- [m-l-20],
179
- .m-l-20 {
180
- margin-left: 20px !important;
181
- }
182
- .m-l-35,
183
- [m-l-35] {
184
- margin-left: 35px !important;
185
- }
186
-
187
- /** M-Horizontal */
188
- .m-h-auto,
189
- [m-h-auto] {
190
- margin-left: auto !important;
191
- margin-right: auto !important;
192
- }
193
- .m-h-0,
194
- [m-h-0] {
195
- margin-left: 0px !important;
196
- margin-right: 0px !important;
197
- }
198
- .m-h-5,
199
- [m-h-5] {
200
- margin-left: 5px !important;
201
- margin-right: 5px !important;
202
- }
203
- .m-h-10,
204
- [m-h-10] {
205
- margin-left: 10px !important;
206
- margin-right: 10px !important;
207
- }
208
- .m-h-15,
209
- [m-h-15] {
210
- margin-left: 15px !important;
211
- margin-right: 15px !important;
212
- }
213
- .m-h-20,
214
- [m-h-20] {
215
- margin-left: 20px !important;
216
- margin-right: 20px !important;
217
- }
218
- .m-h-24,
219
- [m-h-24] {
220
- margin-left: 24px !important;
221
- margin-right: 24px !important;
222
- }
223
- .m-h-25,
224
- [m-h-25] {
225
- margin-left: 25px !important;
226
- margin-right: 25px !important;
227
- }
228
- .m-h-30,
229
- [m-h-30] {
230
- margin-left: 30px !important;
231
- margin-right: 30px !important;
232
- }
233
- .m-h-68,
234
- [m-h-68] {
235
- margin-left: 68px !important;
236
- margin-right: 68px !important;
237
- }
238
- .m-h-70,
239
- [m-h-70] {
240
- margin-left: 70px !important;
241
- margin-right: 70px !important;
242
- }
243
-
244
- /** M-Vertical */
245
- .m-v-auto,
246
- [m-v-auto] {
247
- margin-top: auto !important;
248
- margin-bottom: auto !important;
249
- }
250
- .m-v-0,
251
- [m-v-0] {
252
- margin-top: 0px !important;
253
- margin-bottom: 0px !important;
254
- }
255
- .m-v-5,
256
- [m-v-5] {
257
- margin-top: 5px !important;
258
- margin-bottom: 5px !important;
259
- }
260
- .m-v-10,
261
- [m-v-10] {
262
- margin-top: 10px !important;
263
- margin-bottom: 10px !important;
264
- }
265
- [m-v-15],
266
- .m-v-15 {
267
- margin-top: 15px !important;
268
- margin-bottom: 15px !important;
269
- }
270
- .m-v-18,
271
- [m-v-18] {
272
- margin-top: 18px !important;
273
- margin-bottom: 18px !important;
274
- }
275
- .m-v-20,
276
- [m-v-20] {
277
- margin-top: 20px !important;
278
- margin-bottom: 20px !important;
279
- }
280
- [m-v-24],
281
- .m-v-24 {
282
- margin-top: 24px !important;
283
- margin-bottom: 24px !important;
284
- }
285
- [m-v-25],
286
- .m-v-25 {
287
- margin-top: 25px !important;
288
- margin-bottom: 25px !important;
289
- }
290
- .m-v-30,
291
- [m-v-30] {
292
- margin-top: 30px !important;
293
- margin-bottom: 30px !important;
294
- }
295
- .m-v-35,
296
- [m-v-35] {
297
- margin-top: 35px !important;
298
- margin-bottom: 35px !important;
299
- }
300
- .m-v-40,
301
- [m-v-40] {
302
- margin-top: 40px !important;
303
- margin-bottom: 40px !important;
304
- }
305
- .m-v-45,
306
- [m-v-45] {
307
- margin-top: 45px !important;
308
- margin-bottom: 45px !important;
309
- }
310
- .m-v-50,
311
- [m-v-50] {
312
- margin-top: 50px !important;
313
- margin-bottom: 50px !important;
314
- }
315
- .m-v-60,
316
- [m-v-60] {
317
- margin-top: 60px !important;
318
- margin-bottom: 60px !important;
319
- }
320
-
321
- /** M-All */
322
- .m-a-auto,
323
- [m-a-auto] {
324
- margin: auto !important;
325
- }
326
- .m-a-0,
327
- [m-a-0] {
328
- margin: 0px !important;
329
- }
330
- .m-a-5,
331
- [m-a-5] {
332
- margin: 5px !important;
333
- }
334
- .m-a-10,
335
- [m-a-10] {
336
- margin: 10px !important;
337
- }
338
- .m-a-15,
339
- [m-a-15] {
340
- margin: 15px !important;
341
- }
342
- .m-a-20,
343
- [m-a-20] {
344
- margin: 20px !important;
345
- }
346
- .m-a-25,
347
- [m-a-25] {
348
- margin: 25px !important;
349
- }
350
- .m-a-30,
351
- [m-a-30] {
352
- margin: 30px !important;
353
- }
354
-
355
- /** Padding Styling */
356
-
357
- /** P-Top */
358
- [p-t-0],
359
- .p-t-0 {
360
- padding-top: 0px !important;
361
- }
362
- [p-t-4],
363
- .p-t-4 {
364
- padding-top: 4px !important;
365
- }
366
- [p-t-5],
367
- .p-t-5 {
368
- padding-top: 5px !important;
369
- }
370
- [p-t-6],
371
- .p-t-6 {
372
- padding-top: 6px !important;
373
- }
374
- [p-t-8],
375
- .p-t-8 {
376
- padding-top: 8px !important;
377
- }
378
- [p-t-10],
379
- .p-t-10 {
380
- padding-top: 10px !important;
381
- }
382
- [p-t-12],
383
- .p-t-12 {
384
- padding-top: 12px !important;
385
- }
386
- .p-t-15,
387
- [p-t-15] {
388
- padding-top: 15px !important;
389
- }
390
- .p-t-16,
391
- [p-t-16] {
392
- padding-top: 16px !important;
393
- }
394
- [p-t-17],
395
- .p-t-17 {
396
- padding-top: 17px !important;
397
- }
398
- [p-t-18],
399
- .p-t-18 {
400
- padding-top: 18px !important;
401
- }
402
- [p-t-20],
403
- .p-t-20 {
404
- padding-top: 20px !important;
405
- }
406
- [p-t-24],
407
- .p-t-24 {
408
- padding-top: 24px !important;
409
- }
410
- [p-t-25],
411
- .p-t-25 {
412
- padding-top: 25px !important;
413
- }
414
- .p-t-30,
415
- [p-t-30] {
416
- padding-top: 30px !important;
417
- }
418
- .p-t-35,
419
- [p-t-35] {
420
- padding-top: 35px !important;
421
- }
422
- .p-t-40,
423
- [p-t-40] {
424
- padding-top: 40px !important;
425
- }
426
- .p-t-45,
427
- [p-t-45] {
428
- padding-top: 45px !important;
429
- }
430
- .p-t-48,
431
- [p-t-48] {
432
- padding-top: 48px !important;
433
- }
434
- .p-t-50,
435
- [p-t-50] {
436
- padding-top: 50px !important;
437
- }
438
- .p-t-55,
439
- [p-t-55] {
440
- padding-top: 55px !important;
441
- }
442
- .p-t-60,
443
- [p-t-60] {
444
- padding-top: 60px !important;
445
- }
446
- .p-t-65,
447
- [p-t-60] {
448
- padding-top: 65px !important;
449
- }
450
-
451
- /** P-Right */
452
- [p-r-0],
453
- .p-r-0 {
454
- padding-right: 0px !important;
455
- }
456
- [p-r-5],
457
- .p-r-5 {
458
- padding-right: 5px !important;
459
- }
460
- [p-r-6],
461
- .p-r-6 {
462
- padding-right: 6px !important;
463
- }
464
- [p-r-10],
465
- .p-r-10 {
466
- padding-right: 10px !important;
467
- }
468
- [p-r-15],
469
- .p-r-15 {
470
- padding-right: 15px !important;
471
- }
472
- [p-r-20],
473
- .p-r-20 {
474
- padding-right: 20px !important;
475
- }
476
- [p-r-25],
477
- .p-r-25 {
478
- padding-right: 25px !important;
479
- }
480
- [p-r-30],
481
- .p-r-30 {
482
- padding-right: 30px !important;
483
- }
484
-
485
- /** P-Bottom */
486
- [p-b-0],
487
- .p-b-0 {
488
- padding-bottom: 0px !important;
489
- }
490
- [p-b-5],
491
- .p-b-5 {
492
- padding-bottom: 5px !important;
493
- }
494
- [p-b-10],
495
- .p-b-10 {
496
- padding-bottom: 10px !important;
497
- }
498
- [p-b-12],
499
- .p-b-12 {
500
- padding-bottom: 12px !important;
501
- }
502
- [p-b-15],
503
- .p-b-15 {
504
- padding-bottom: 15px !important;
505
- }
506
- [p-b-20],
507
- .p-b-20 {
508
- padding-bottom: 20px !important;
509
- }
510
- [p-b-25],
511
- .p-b-25 {
512
- padding-bottom: 25px !important;
513
- }
514
- [p-b-30],
515
- .p-b-30 {
516
- padding-bottom: 30px !important;
517
- }
518
- [p-b-35],
519
- .p-b-35 {
520
- padding-bottom: 35px !important;
521
- }
522
- [p-b-40],
523
- .p-b-40 {
524
- padding-bottom: 40px !important;
525
- }
526
- [p-b-45],
527
- .p-b-45 {
528
- padding-bottom: 45px !important;
529
- }
530
- [p-b-50],
531
- .p-b-50 {
532
- padding-bottom: 50px !important;
533
- }
534
- [p-b-55],
535
- .p-b-55 {
536
- padding-bottom: 55px !important;
537
- }
538
- [p-b-60],
539
- .p-b-60 {
540
- padding-bottom: 60px !important;
541
- }
542
- [p-b-100],
543
- .p-b-100 {
544
- padding-bottom: 100px !important;
545
- }
546
-
547
- /** P-Left */
548
- .p-l-0,
549
- [p-l-0] {
550
- padding-left: 0px !important;
551
- }
552
- .p-l-4,
553
- [p-l-4] {
554
- padding-left: 4px !important;
555
- }
556
- .p-l-5,
557
- [p-l-5] {
558
- padding-left: 5px !important;
559
- }
560
- .p-l-10,
561
- [p-l-10] {
562
- padding-left: 10px !important;
563
- }
564
- .p-l-12,
565
- [p-l-12] {
566
- padding-left: 12px !important;
567
- }
568
- .p-l-15,
569
- [p-l-15] {
570
- padding-left: 15px !important;
571
- }
572
- .p-l-20,
573
- [p-l-20] {
574
- padding-left: 20px !important;
575
- }
576
- .p-l-25,
577
- [p-l-25] {
578
- padding-left: 25px !important;
579
- }
580
- .p-l-30,
581
- [p-l-30] {
582
- padding-left: 30px !important;
583
- }
584
-
585
- /** P-Horizontal */
586
- [p-h-0],
587
- .p-h-0 {
588
- padding-left: 0px !important;
589
- padding-right: 0px !important;
590
- }
591
- [p-h-5],
592
- .p-h-5 {
593
- padding-left: 5px !important;
594
- padding-right: 5px !important;
595
- }
596
- [p-h-6],
597
- .p-h-6 {
598
- padding-left: 6px !important;
599
- padding-right: 6px !important;
600
- }
601
- [p-h-10],
602
- .p-h-10 {
603
- padding-left: 10px !important;
604
- padding-right: 10px !important;
605
- }
606
- [p-h-15],
607
- .p-h-15 {
608
- padding-left: 15px !important;
609
- padding-right: 15px !important;
610
- }
611
- [p-h-16],
612
- .p-h-16 {
613
- padding-left: 16px !important;
614
- padding-right: 16px !important;
615
- }
616
- [p-h-20],
617
- .p-h-20 {
618
- padding-left: 20px !important;
619
- padding-right: 20px !important;
620
- }
621
-
622
- /** P-Vertical */
623
- [p-v-0],
624
- .p-v-0 {
625
- padding-top: 0px !important;
626
- padding-bottom: 0px !important;
627
- }
628
- [p-v-5],
629
- .p-v-5 {
630
- padding-top: 5px !important;
631
- padding-bottom: 5px !important;
632
- }
633
- [p-v-6],
634
- .p-v-6 {
635
- padding-top: 6px !important;
636
- padding-bottom: 6px !important;
637
- }
638
- [p-v-10],
639
- .p-v-10 {
640
- padding-top: 10px !important;
641
- padding-bottom: 10px !important;
642
- }
643
- [p-v-15],
644
- .p-v-15 {
645
- padding-top: 15px !important;
646
- padding-bottom: 15px !important;
647
- }
648
- [p-v-16],
649
- .p-v-16 {
650
- padding-top: 16px !important;
651
- padding-bottom: 16px !important;
652
- }
653
- [p-v-20],
654
- .p-v-20 {
655
- padding-top: 20px !important;
656
- padding-bottom: 20px !important;
657
- }
658
- [p-v-25],
659
- .p-v-25 {
660
- padding-top: 25px !important;
661
- padding-bottom: 25px !important;
662
- }
663
- [p-v-30],
664
- .p-v-30 {
665
- padding-top: 30px !important;
666
- padding-bottom: 30px !important;
667
- }
668
- [p-v-35],
669
- .p-v-35 {
670
- padding-top: 35px !important;
671
- padding-bottom: 35px !important;
672
- }
673
- [p-v-40],
674
- .p-v-40 {
675
- padding-top: 40px !important;
676
- padding-bottom: 40px !important;
677
- }
678
- [p-v-45],
679
- .p-v-45 {
680
- padding-top: 45px !important;
681
- padding-bottom: 45px !important;
682
- }
683
- [p-v-50],
684
- .p-v-50 {
685
- padding-top: 50px !important;
686
- padding-bottom: 50px !important;
687
- }
688
- [p-v-55],
689
- .p-v-55 {
690
- padding-top: 55px !important;
691
- padding-bottom: 55px !important;
692
- }
693
- [p-v-100],
694
- .p-v-100 {
695
- padding-top: 100px !important;
696
- padding-bottom: 100px !important;
697
- }
698
-
699
- /** P-All */
700
- [p-a-0],
701
- .p-a-0 {
702
- padding: 0px !important;
703
- }
704
- [p-a-5],
705
- .p-a-5 {
706
- padding: 5px !important;
707
- }
708
- [p-a-10],
709
- .p-a-10 {
710
- padding: 10px !important;
711
- }
712
- [p-a-15],
713
- .p-a-15 {
714
- padding: 15px !important;
715
- }
716
- [p-a-20],
717
- .p-a-20 {
718
- padding: 20px !important;
719
- }
720
- [p-a-25],
721
- .p-a-25 {
722
- padding: 25px !important;
723
- }
724
- [p-a-40],
725
- .p-a-40 {
726
- padding: 40px !important;
727
- }
728
-
729
- /** Mobile responsive */
730
-
731
- .sm-m-b-16 {
732
- @media only screen and (max-width: vars.$mat-lt-md) {
733
- margin-bottom: 16px !important;
734
- }
735
- }
736
-
737
- .sm-m-b-24 {
738
- @media only screen and (max-width: vars.$mat-lt-md) {
739
- margin-bottom: 24px !important;
740
- }
741
- }
742
-
743
- .sm-m-v-24 {
744
- @media only screen and (max-width: vars.$mat-lt-md) {
745
- margin-top: 24px !important;
746
- margin-bottom: 24px !important;
747
- }
748
- }
749
-
750
- .sm-m-b-32 {
751
- @media only screen and (max-width: vars.$mat-lt-md) {
752
- margin-bottom: 32px !important;
753
- }
754
- }
755
-
756
- .sm-m-b-64 {
757
- @media only screen and (max-width: vars.$mat-lt-md) {
758
- margin-bottom: 64px !important;
759
- }
760
- }
761
-
762
- .sm-screen-m-a-0 {
763
- @media screen and (max-width: vars.$mat-lt-md) {
764
- margin: 0 !important;
765
- }
766
- }
767
-
768
- .sm-screen-m-l-0 {
769
- @media screen and (max-width: vars.$mat-lt-md) {
770
- margin-left: 0 !important;
4
+ /* This file includes classes/attributes to control the margin & padding of elements */
5
+
6
+ /* Helper to resolve spacing direction */
7
+ $spacing-directions: (
8
+ t: top,
9
+ b: bottom,
10
+ l: left,
11
+ r: right,
12
+ v: (top, bottom),
13
+ h: (left, right),
14
+ a: null,
15
+ );
16
+
17
+ /* Mixin to generate spacing utilities */
18
+ @mixin generate-spacing-utilities($max) {
19
+ @each $type in (m, p) {
20
+ @each $dir, $props in $spacing-directions {
21
+ @for $i from 0 through $max {
22
+ $selector: ".#{$type}-#{$dir}-#{$i}, [#{$type}-#{$dir}-#{$i}]";
23
+ #{$selector} {
24
+ @if $dir == a {
25
+ #{if($type == m, margin, padding)}: #{$i}px !important;
26
+ } @else {
27
+ $prop-list: if(meta.type-of($props) == 'list', $props, ($props));
28
+ @each $prop in $prop-list {
29
+ #{if($type == m, margin, padding)}-#{$prop}: #{$i}px !important;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ @if $type == m {
35
+ $selector: ".m-#{$dir}-auto, [m-#{$dir}-auto]";
36
+ #{$selector} {
37
+ @if $dir == a {
38
+ margin: auto !important;
39
+ } @else {
40
+ $prop-list: if(meta.type-of($props) == 'list', $props, ($props));
41
+ @each $prop in $prop-list {
42
+ margin-#{$prop}: auto !important;
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
771
48
  }
772
49
  }
773
50
 
774
- .sm-screen-m-h-0 {
775
- @media screen and (max-width: vars.$mat-lt-md) {
776
- margin-left: 0 !important;
777
- margin-right: 0 !important;
778
- }
779
- }
780
-
781
- .sm-screen-p-a-0 {
782
- @media screen and (max-width: vars.$mat-lt-md) {
783
- padding: 0 !important;
784
- }
785
- }
786
-
787
- .sm-screen-p-h-0 {
788
- @media screen and (max-width: vars.$mat-lt-md) {
789
- padding-left: 0 !important;
790
- padding-right: 0 !important;
791
- }
792
- }
793
-
794
- .md-screen-p-a-0 {
795
- @media screen and (max-width: vars.$mat-lt-lg) {
796
- padding: 0 !important;
797
- }
798
- }
799
-
800
- .md-m-v-24 {
801
- @media only screen and (max-width: vars.$mat-lt-lg) {
802
- margin-top: 24px !important;
803
- margin-bottom: 24px !important;
804
- }
805
- }
806
-
807
- .mobile-no-h-margin {
808
- @media only screen and (max-width: vars.$mat-lt-sm) {
809
- margin-left: 0 !important;
810
- margin-right: 0 !important;
811
- }
812
- }
813
-
814
- .mobile-no-h-padding {
815
- @media only screen and (max-width: vars.$mat-lt-sm) {
816
- padding-left: 0 !important;
817
- padding-right: 0 !important;
818
- }
819
- }
51
+ /* Include/generate the spacing classes/attributes */
52
+ @include generate-spacing-utilities(100);
820
53
 
821
- /** Generic utility classes */
54
+ /* Generic utility classes */
822
55
 
823
56
  body.inheritCursors * {
824
57
  cursor: inherit !important;