@avenirs-esr/avenirs-dsav 0.1.125 → 0.1.126
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/package.json
CHANGED
|
@@ -40,14 +40,18 @@ $directions: (
|
|
|
40
40
|
@each $direction-key, $direction-value in $directions {
|
|
41
41
|
@each $size, $value in sp.$spacing {
|
|
42
42
|
@if meta.type-of($direction-value) == 'list' {
|
|
43
|
+
$props: ();
|
|
44
|
+
$negative-props: ();
|
|
43
45
|
@each $d in $direction-value {
|
|
44
|
-
|
|
46
|
+
$props: map-merge($props, (
|
|
45
47
|
#{$property-value}-#{$d}: var(--spacing-#{$size}) !important
|
|
46
48
|
));
|
|
47
|
-
|
|
49
|
+
$negative-props: map-merge($negative-props, (
|
|
48
50
|
#{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
|
|
49
51
|
));
|
|
50
52
|
}
|
|
53
|
+
@include utility-base("#{$type}#{$direction-key}-#{$size}", $props);
|
|
54
|
+
@include utility-base("-#{$type}#{$direction-key}-#{$size}", $negative-props);
|
|
51
55
|
} @else {
|
|
52
56
|
@include utility-base("#{$type}#{$direction-key}-#{$size}", (
|
|
53
57
|
#{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
|
|
@@ -81,14 +85,18 @@ $directions: (
|
|
|
81
85
|
@each $direction-key, $direction-value in $directions {
|
|
82
86
|
@each $size, $value in sp.$spacing {
|
|
83
87
|
@if meta.type-of($direction-value) == 'list' {
|
|
88
|
+
$props: ();
|
|
89
|
+
$negative-props: ();
|
|
84
90
|
@each $d in $direction-value {
|
|
85
|
-
|
|
91
|
+
$props: map-merge($props, (
|
|
86
92
|
#{$property-value}-#{$d}: var(--spacing-#{$size}) !important
|
|
87
93
|
));
|
|
88
|
-
|
|
94
|
+
$negative-props: map-merge($negative-props, (
|
|
89
95
|
#{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
|
|
90
96
|
));
|
|
91
97
|
}
|
|
98
|
+
@include utility-responsive("#{$type}#{$direction-key}-#{$size}", $props);
|
|
99
|
+
@include utility-responsive("-#{$type}#{$direction-key}-#{$size}", $negative-props);
|
|
92
100
|
} @else {
|
|
93
101
|
@include utility-responsive("#{$type}#{$direction-key}-#{$size}", (
|
|
94
102
|
#{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
|