@appartmint/mint 0.12.0 → 0.12.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.
- package/dist/css/mint.css +541 -65
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/global/_global.scss +3 -1
- package/src/scss/imports/global/_structure.scss +11 -108
- package/src/scss/imports/util/_util.scss +120 -0
|
@@ -3,117 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
/// Structure styles
|
|
5
5
|
#{class(pad)} {
|
|
6
|
-
@include
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#{class(margin)} {
|
|
10
|
-
@include break-util(margin, 1rem, 0);
|
|
11
|
-
|
|
12
|
-
&-auto {
|
|
13
|
-
margin-left: auto;
|
|
14
|
-
margin-right: auto;
|
|
15
|
-
|
|
16
|
-
&-v {
|
|
17
|
-
margin: 1rem auto;
|
|
18
|
-
|
|
19
|
-
@for $i from 0 through 6 {
|
|
20
|
-
&#{$i} {
|
|
21
|
-
margin: 1rem * $i auto;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-t {
|
|
27
|
-
margin-top: 1rem;
|
|
28
|
-
margin-left: auto;
|
|
29
|
-
margin-right: auto;
|
|
30
|
-
|
|
31
|
-
@for $i from 0 through 6 {
|
|
32
|
-
&#{$i} {
|
|
33
|
-
margin-top: 1rem * $i;
|
|
34
|
-
margin-left: auto;
|
|
35
|
-
margin-right: auto;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-b {
|
|
41
|
-
margin-bottom: 1rem;
|
|
42
|
-
margin-left: auto;
|
|
43
|
-
margin-right: auto;
|
|
44
|
-
|
|
45
|
-
@for $i from 0 through 6 {
|
|
46
|
-
&#{$i} {
|
|
47
|
-
margin-bottom: 1rem * $i;
|
|
48
|
-
margin-left: auto;
|
|
49
|
-
margin-right: auto;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-v {
|
|
56
|
-
margin-top: 1rem;
|
|
57
|
-
margin-bottom: 1rem;
|
|
58
|
-
|
|
59
|
-
@for $i from 0 through 6 {
|
|
60
|
-
&#{$i} {
|
|
61
|
-
margin-top: 1rem * $i;
|
|
62
|
-
margin-bottom: 1rem * $i;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
6
|
+
@include box-util(padding, 1rem);
|
|
7
|
+
@include break-util(padding, 0.5rem, 0);
|
|
66
8
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
@for $i from 0 through 6 {
|
|
71
|
-
&#{$i} {
|
|
72
|
-
margin-top: 1rem * $i;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&-b {
|
|
78
|
-
margin-bottom: 1rem;
|
|
79
|
-
|
|
80
|
-
@for $i from 0 through 6 {
|
|
81
|
-
&#{$i} {
|
|
82
|
-
margin-bottom: 1rem * $i;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&-h {
|
|
88
|
-
margin-left: 1rem;
|
|
89
|
-
margin-right: 1rem;
|
|
90
|
-
|
|
91
|
-
@for $i from 0 through 6 {
|
|
92
|
-
&#{$i} {
|
|
93
|
-
margin-left: 1rem * $i;
|
|
94
|
-
margin-right: 1rem * $i;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&-l {
|
|
100
|
-
margin-left: 1rem;
|
|
101
|
-
|
|
102
|
-
@for $i from 0 through 6 {
|
|
103
|
-
&#{$i} {
|
|
104
|
-
margin-left: 1rem * $i;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
9
|
+
@include break(xs) {
|
|
10
|
+
@include break-util(padding, 1rem, 0);
|
|
107
11
|
}
|
|
12
|
+
}
|
|
108
13
|
|
|
109
|
-
|
|
110
|
-
|
|
14
|
+
#{class(margin)} {
|
|
15
|
+
@include box-util(margin, 1rem);
|
|
16
|
+
@include break-util(margin, 0.5rem, 0);
|
|
111
17
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
margin-right: 1rem * $i;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
18
|
+
@include break(xs) {
|
|
19
|
+
@include break-util(margin, 1rem, 0);
|
|
117
20
|
}
|
|
118
21
|
}
|
|
119
22
|
|
|
@@ -225,4 +128,4 @@ section {
|
|
|
225
128
|
|
|
226
129
|
#{class(right)} {
|
|
227
130
|
float: right;
|
|
228
|
-
}
|
|
131
|
+
}
|
|
@@ -566,6 +566,126 @@ $bootstrap5: false !default;
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
+
/// Creates utility selectors for a box model property
|
|
570
|
+
/// @group Mixins
|
|
571
|
+
///
|
|
572
|
+
/// @example scss - box-util mixin
|
|
573
|
+
/// @include box-util(margin, 1rem, 0); // -> & {
|
|
574
|
+
///
|
|
575
|
+
@mixin box-util ($prop, $val) {
|
|
576
|
+
@if (type-of($prop) != 'string') {
|
|
577
|
+
@error 'The box-util mixin requires a string for the $prop argument.';
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
&-auto {
|
|
581
|
+
#{$prop}-left: auto;
|
|
582
|
+
#{$prop}-right: auto;
|
|
583
|
+
|
|
584
|
+
&-v {
|
|
585
|
+
#{$prop}: $val auto;
|
|
586
|
+
|
|
587
|
+
@for $i from 0 through 6 {
|
|
588
|
+
&#{$i} {
|
|
589
|
+
#{$prop}: $val * $i auto;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
&-t {
|
|
595
|
+
#{$prop}-top: $val;
|
|
596
|
+
#{$prop}-left: auto;
|
|
597
|
+
#{$prop}-right: auto;
|
|
598
|
+
|
|
599
|
+
@for $i from 0 through 6 {
|
|
600
|
+
&#{$i} {
|
|
601
|
+
#{$prop}-top: $val * $i;
|
|
602
|
+
#{$prop}-left: auto;
|
|
603
|
+
#{$prop}-right: auto;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
&-b {
|
|
609
|
+
#{$prop}-bottom: $val;
|
|
610
|
+
#{$prop}-left: auto;
|
|
611
|
+
#{$prop}-right: auto;
|
|
612
|
+
|
|
613
|
+
@for $i from 0 through 6 {
|
|
614
|
+
&#{$i} {
|
|
615
|
+
#{$prop}-bottom: $val * $i;
|
|
616
|
+
#{$prop}-left: auto;
|
|
617
|
+
#{$prop}-right: auto;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
&-v {
|
|
624
|
+
#{$prop}-top: $val;
|
|
625
|
+
#{$prop}-bottom: $val;
|
|
626
|
+
|
|
627
|
+
@for $i from 0 through 6 {
|
|
628
|
+
&#{$i} {
|
|
629
|
+
#{$prop}-top: $val * $i;
|
|
630
|
+
#{$prop}-bottom: $val * $i;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
&-t {
|
|
636
|
+
#{$prop}-top: $val;
|
|
637
|
+
|
|
638
|
+
@for $i from 0 through 6 {
|
|
639
|
+
&#{$i} {
|
|
640
|
+
#{$prop}-top: $val * $i;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
&-b {
|
|
646
|
+
#{$prop}-bottom: $val;
|
|
647
|
+
|
|
648
|
+
@for $i from 0 through 6 {
|
|
649
|
+
&#{$i} {
|
|
650
|
+
#{$prop}-bottom: $val * $i;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
&-h {
|
|
656
|
+
#{$prop}-left: $val;
|
|
657
|
+
#{$prop}-right: $val;
|
|
658
|
+
|
|
659
|
+
@for $i from 0 through 6 {
|
|
660
|
+
&#{$i} {
|
|
661
|
+
#{$prop}-left: $val * $i;
|
|
662
|
+
#{$prop}-right: $val * $i;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
&-l {
|
|
668
|
+
#{$prop}-left: $val;
|
|
669
|
+
|
|
670
|
+
@for $i from 0 through 6 {
|
|
671
|
+
&#{$i} {
|
|
672
|
+
#{$prop}-left: $val * $i;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
&-r {
|
|
678
|
+
#{$prop}-right: $val;
|
|
679
|
+
|
|
680
|
+
@for $i from 0 through 6 {
|
|
681
|
+
&#{$i} {
|
|
682
|
+
#{$prop}-right: $val * $i;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
569
689
|
/// Generates a property with a fluid value between specified screen sizes
|
|
570
690
|
/// @group Mixins
|
|
571
691
|
///
|