@microsoft/atlas-css 5.0.0-test.1 → 5.0.0-test.2
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/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens.json +1 -1
- package/dist/tokens.ts +14 -24
- package/package.json +2 -2
- package/src/atomics/aspect-ratio.scss +2 -2
- package/src/atomics/background.scss +2 -2
- package/src/atomics/border.scss +26 -26
- package/src/atomics/colors.scss +53 -53
- package/src/atomics/display.scss +9 -9
- package/src/atomics/flex.scss +3 -3
- package/src/atomics/gap.scss +14 -14
- package/src/atomics/height.scss +2 -2
- package/src/atomics/image.scss +2 -2
- package/src/atomics/line-clamp.scss +6 -6
- package/src/atomics/list.scss +2 -2
- package/src/atomics/overflow.scss +3 -3
- package/src/atomics/position.scss +6 -6
- package/src/atomics/shadow.scss +6 -6
- package/src/atomics/spacing-auto.scss +5 -5
- package/src/atomics/spacing.scss +14 -14
- package/src/atomics/typography.scss +39 -39
- package/src/atomics/visually-hidden.scss +3 -3
- package/src/atomics/width.scss +4 -4
- package/src/components/accordion.scss +18 -17
- package/src/components/badge.scss +21 -21
- package/src/components/banner.scss +18 -18
- package/src/components/breadcrumbs.scss +4 -4
- package/src/components/button-reset.scss +3 -3
- package/src/components/button.scss +54 -54
- package/src/components/buttons.scss +9 -9
- package/src/components/card.scss +30 -30
- package/src/components/code-block.scss +18 -18
- package/src/components/form/checkbox.scss +18 -18
- package/src/components/form/form.scss +15 -15
- package/src/components/form/help.scss +6 -6
- package/src/components/form/input.scss +26 -26
- package/src/components/form/label.scss +5 -5
- package/src/components/form/radio.scss +18 -18
- package/src/components/form/select.scss +28 -26
- package/src/components/form/textarea.scss +27 -27
- package/src/components/gradient-card.scss +8 -7
- package/src/components/gradient.scss +10 -10
- package/src/components/hero.scss +31 -31
- package/src/components/icon.scss +2 -2
- package/src/components/image.scss +4 -4
- package/src/components/index.scss +0 -1
- package/src/components/layout.scss +206 -96
- package/src/components/link-button.scss +8 -8
- package/src/components/markdown.scss +15 -15
- package/src/components/media.scss +3 -3
- package/src/components/message.scss +14 -14
- package/src/components/notification.scss +21 -21
- package/src/components/pagination.scss +28 -28
- package/src/components/persona.scss +14 -14
- package/src/components/popover.scss +15 -15
- package/src/components/progress-bar.scss +13 -13
- package/src/components/scroll.scss +2 -2
- package/src/components/segmented-control.scss +31 -31
- package/src/components/site-header.scss +37 -37
- package/src/components/steps.scss +6 -6
- package/src/components/stretched-link.scss +3 -3
- package/src/components/table.scss +18 -18
- package/src/components/tag.scss +37 -37
- package/src/components/timeline.scss +16 -16
- package/src/components/toggle.scss +17 -17
- package/src/core/animations.scss +4 -4
- package/src/core/bare-elements.scss +6 -6
- package/src/core/focus.scss +6 -6
- package/src/core/font-stack.scss +8 -8
- package/src/core/minireset.scss +2 -2
- package/src/core/normalize.scss +2 -2
- package/src/core/themes.scss +20 -20
- package/src/mixins/center.scss +1 -1
- package/src/mixins/chevron.scss +5 -5
- package/src/mixins/code-block.scss +9 -9
- package/src/mixins/colors.scss +1 -1
- package/src/mixins/control.scss +5 -5
- package/src/mixins/dismiss.scss +4 -4
- package/src/mixins/focus.scss +5 -5
- package/src/mixins/font-size.scss +4 -4
- package/src/mixins/force-colors.scss +1 -1
- package/src/mixins/gradient.scss +1 -1
- package/src/mixins/layout-gap.scss +5 -5
- package/src/mixins/line-clamp.scss +1 -1
- package/src/mixins/loader.scss +3 -3
- package/src/mixins/media-queries.scss +5 -5
- package/src/mixins/overlay.scss +1 -1
- package/src/mixins/transparency.scss +1 -1
- package/src/mixins/unselectable.scss +1 -1
- package/src/mixins/visually-hidden.scss +1 -1
- package/src/tokens/breakpoints.scss +1 -1
- package/src/tokens/colors.scss +2 -2
- package/src/tokens/layout.scss +3 -5
- package/src/tokens/shadow.scss +9 -8
- package/src/tokens/themes.scss +473 -473
- package/src/tokens/typography.scss +1 -5
- package/tokens/index.js +4 -1
- package/src/components/reading-width.scss +0 -10
package/src/atomics/colors.scss
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
// Framework colors
|
|
5
5
|
|
|
6
|
-
@each $name, $color-set in
|
|
7
|
-
$base: nth($color-set,
|
|
8
|
-
$background: nth($color-set,
|
|
9
|
-
$dark: nth($color-set,
|
|
10
|
-
$hover: nth($color-set,
|
|
11
|
-
$active: nth($color-set,
|
|
12
|
-
$invert: nth($color-set,
|
|
6
|
+
@each $name, $color-set in tokens.$colors {
|
|
7
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
8
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
9
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
10
|
+
$hover: nth($color-set, tokens.$color-index-hover);
|
|
11
|
+
$active: nth($color-set, tokens.$color-index-active);
|
|
12
|
+
$invert: nth($color-set, tokens.$color-index-invert);
|
|
13
13
|
|
|
14
14
|
.color-#{$name} {
|
|
15
15
|
@if $name == 'warning' {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@include focus-visible {
|
|
31
|
+
@include mixins.focus-visible {
|
|
32
32
|
color: $hover !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@include tablet {
|
|
66
|
-
@each $name, $color-set in
|
|
67
|
-
$base: nth($color-set,
|
|
68
|
-
$invert: nth($color-set,
|
|
65
|
+
@include mixins.tablet {
|
|
66
|
+
@each $name, $color-set in tokens.$colors {
|
|
67
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
68
|
+
$invert: nth($color-set, tokens.$color-index-invert);
|
|
69
69
|
|
|
70
70
|
.background-color-#{$name}-tablet {
|
|
71
71
|
outline-color: $invert;
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
// Text color
|
|
78
78
|
|
|
79
79
|
.color-text {
|
|
80
|
-
color:
|
|
80
|
+
color: tokens.$text !important;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.color-text-invert {
|
|
84
|
-
color:
|
|
84
|
+
color: tokens.$text-invert !important;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.color-text-subtle {
|
|
88
|
-
color:
|
|
88
|
+
color: tokens.$text-subtle !important;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.color-text-overlay-invert {
|
|
92
|
-
color:
|
|
92
|
+
color: tokens.$overlay-invert;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.color-current-color {
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.color-hyperlink {
|
|
100
|
-
color:
|
|
100
|
+
color: tokens.$hyperlink !important;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.fill-current-color {
|
|
104
|
-
@include fill-current-color();
|
|
104
|
+
@include mixins.fill-current-color();
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.outline-color-text {
|
|
108
|
-
outline-color:
|
|
108
|
+
outline-color: tokens.$text !important;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.stroke-current-color {
|
|
@@ -115,70 +115,70 @@
|
|
|
115
115
|
// Background color
|
|
116
116
|
|
|
117
117
|
.background-color-body {
|
|
118
|
-
outline-color:
|
|
119
|
-
background-color:
|
|
118
|
+
outline-color: tokens.$text !important;
|
|
119
|
+
background-color: tokens.$body-background !important;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.background-color-body-medium {
|
|
123
|
-
outline-color:
|
|
124
|
-
background-color:
|
|
123
|
+
outline-color: tokens.$text !important;
|
|
124
|
+
background-color: tokens.$body-background-medium !important;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.background-color-alternate {
|
|
128
|
-
outline-color:
|
|
129
|
-
background-color:
|
|
128
|
+
outline-color: tokens.$text-invert !important;
|
|
129
|
+
background-color: tokens.$alternate-background !important;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.background-color-alternate-medium {
|
|
133
|
-
outline-color:
|
|
134
|
-
background-color:
|
|
133
|
+
outline-color: tokens.$text-invert !important;
|
|
134
|
+
background-color: tokens.$alternate-background-medium !important;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.background-color-overlay {
|
|
138
|
-
outline-color:
|
|
139
|
-
background-color:
|
|
138
|
+
outline-color: tokens.$overlay-invert;
|
|
139
|
+
background-color: tokens.$overlay !important;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.background-color-alternating-grey {
|
|
143
|
-
border-block-start: 1px solid
|
|
144
|
-
outline-color:
|
|
143
|
+
border-block-start: 1px solid tokens.$border-white-high-contrast;
|
|
144
|
+
outline-color: tokens.$text !important;
|
|
145
145
|
|
|
146
146
|
&:nth-of-type(even) {
|
|
147
|
-
outline-color:
|
|
148
|
-
background-color:
|
|
147
|
+
outline-color: tokens.$text;
|
|
148
|
+
background-color: tokens.$body-background;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
&:nth-of-type(odd) {
|
|
152
|
-
outline-color:
|
|
153
|
-
background-color:
|
|
152
|
+
outline-color: tokens.$text;
|
|
153
|
+
background-color: tokens.$body-background-medium;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.background-color-alternating-grey-reversed {
|
|
158
|
-
border-block-start: 1px solid
|
|
159
|
-
outline-color:
|
|
158
|
+
border-block-start: 1px solid tokens.$border-white-high-contrast;
|
|
159
|
+
outline-color: tokens.$text !important;
|
|
160
160
|
|
|
161
161
|
&:nth-of-type(even) {
|
|
162
|
-
outline-color:
|
|
163
|
-
background-color:
|
|
162
|
+
outline-color: tokens.$text;
|
|
163
|
+
background-color: tokens.$body-background-medium;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
&:nth-of-type(odd) {
|
|
167
|
-
outline-color:
|
|
168
|
-
background-color:
|
|
167
|
+
outline-color: tokens.$text;
|
|
168
|
+
background-color: tokens.$body-background;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.background-color-body-accent {
|
|
173
|
-
outline-color:
|
|
174
|
-
background-color:
|
|
173
|
+
outline-color: tokens.$text !important;
|
|
174
|
+
background-color: tokens.$body-background-accent !important;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.background-color-body-accent-onhover {
|
|
178
178
|
&:hover,
|
|
179
179
|
&:focus-within {
|
|
180
|
-
outline-color:
|
|
181
|
-
background-color:
|
|
180
|
+
outline-color: tokens.$text !important;
|
|
181
|
+
background-color: tokens.$body-background-accent !important;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
@@ -189,19 +189,19 @@
|
|
|
189
189
|
// Static colors - do not change with theme
|
|
190
190
|
|
|
191
191
|
.color-white-static {
|
|
192
|
-
color:
|
|
192
|
+
color: tokens.$white-static !important;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.color-black-static {
|
|
196
|
-
color:
|
|
196
|
+
color: tokens.$black-static !important;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.background-color-white-static {
|
|
200
|
-
outline-color:
|
|
201
|
-
background-color:
|
|
200
|
+
outline-color: tokens.$black-static !important;
|
|
201
|
+
background-color: tokens.$white-static !important;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.background-color-black-static {
|
|
205
|
-
outline-color:
|
|
206
|
-
background-color:
|
|
205
|
+
outline-color: tokens.$white-static !important;
|
|
206
|
+
background-color: tokens.$black-static !important;
|
|
207
207
|
}
|
package/src/atomics/display.scss
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
|
-
@each $item in
|
|
4
|
+
@each $item in tokens.$displays {
|
|
5
5
|
.display-#{$item} {
|
|
6
6
|
display: #{$item} !important;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@include tablet {
|
|
11
|
-
@each $item in
|
|
10
|
+
@include mixins.tablet {
|
|
11
|
+
@each $item in tokens.$displays {
|
|
12
12
|
.display-#{$item}-tablet {
|
|
13
13
|
display: #{$item} !important;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@include desktop {
|
|
19
|
-
@each $item in
|
|
18
|
+
@include mixins.desktop {
|
|
19
|
+
@each $item in tokens.$displays {
|
|
20
20
|
.display-#{$item}-desktop {
|
|
21
21
|
display: #{$item} !important;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@include widescreen {
|
|
27
|
-
@each $item in
|
|
26
|
+
@include mixins.widescreen {
|
|
27
|
+
@each $item in tokens.$displays {
|
|
28
28
|
.display-#{$item}-widescreen {
|
|
29
29
|
display: #{$item} !important;
|
|
30
30
|
}
|
package/src/atomics/flex.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../tokens/index.scss' as
|
|
3
|
-
@use '../mixins/index.scss' as
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
4
|
|
|
5
5
|
$flex-atomics: (
|
|
6
6
|
'justify-content': (
|
|
@@ -65,7 +65,7 @@ $flex-atomics: (
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
@include tablet {
|
|
68
|
+
@include mixins.tablet {
|
|
69
69
|
@each $key in map.keys($flex-atomics) {
|
|
70
70
|
@each $value in map.get($flex-atomics, $key) {
|
|
71
71
|
.#{$key}-#{$value}-tablet {
|
package/src/atomics/gap.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
$separator: '-' !default;
|
|
5
5
|
|
|
6
6
|
$gap-sizes: (
|
|
7
|
-
('xxs',
|
|
8
|
-
('xs',
|
|
9
|
-
('sm',
|
|
10
|
-
('md',
|
|
11
|
-
('lg',
|
|
12
|
-
// ('xl',
|
|
13
|
-
// ('xxl',
|
|
14
|
-
// ('xxxl',
|
|
15
|
-
('none',
|
|
7
|
+
('xxs', tokens.$layout-1),
|
|
8
|
+
('xs', tokens.$layout-2),
|
|
9
|
+
('sm', tokens.$layout-3),
|
|
10
|
+
('md', tokens.$layout-4),
|
|
11
|
+
('lg', tokens.$layout-5),
|
|
12
|
+
// ('xl', tokens.$layout-6),
|
|
13
|
+
// ('xxl', tokens.$layout-7),
|
|
14
|
+
// ('xxxl', tokens.$layout-8),
|
|
15
|
+
('none', tokens.$layout-0)
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
@function sizeValue($key, $value) {
|
|
@@ -29,7 +29,7 @@ $gap-sizes: (
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
@include tablet {
|
|
32
|
+
@include mixins.tablet {
|
|
33
33
|
@each $size in $gap-sizes {
|
|
34
34
|
$sizeKey: nth($size, 1);
|
|
35
35
|
$sizeValue: nth($size, 2);
|
|
@@ -40,7 +40,7 @@ $gap-sizes: (
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@include desktop {
|
|
43
|
+
@include mixins.desktop {
|
|
44
44
|
@each $size in $gap-sizes {
|
|
45
45
|
$sizeKey: nth($size, 1);
|
|
46
46
|
$sizeValue: nth($size, 2);
|
|
@@ -51,7 +51,7 @@ $gap-sizes: (
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
@include widescreen {
|
|
54
|
+
@include mixins.widescreen {
|
|
55
55
|
@each $size in $gap-sizes {
|
|
56
56
|
$sizeKey: nth($size, 1);
|
|
57
57
|
$sizeValue: nth($size, 2);
|
package/src/atomics/height.scss
CHANGED
package/src/atomics/image.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
.line-clamp-1 {
|
|
5
|
-
@include line-clamp(1, true);
|
|
5
|
+
@include mixins.line-clamp(1, true);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.line-clamp-2 {
|
|
9
|
-
@include line-clamp(2, true);
|
|
9
|
+
@include mixins.line-clamp(2, true);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.line-clamp-3 {
|
|
13
|
-
@include line-clamp(3, true);
|
|
13
|
+
@include mixins.line-clamp(3, true);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.line-clamp-4 {
|
|
17
|
-
@include line-clamp(4, true);
|
|
17
|
+
@include mixins.line-clamp(4, true);
|
|
18
18
|
}
|
package/src/atomics/list.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
.overflow-hidden {
|
|
5
5
|
overflow: hidden !important;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
overflow-x: hidden !important;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@include tablet {
|
|
12
|
+
@include mixins.tablet {
|
|
13
13
|
.overflow-hidden-tablet {
|
|
14
14
|
overflow: hidden !important;
|
|
15
15
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
|
-
@each $item in
|
|
4
|
+
@each $item in tokens.$positions {
|
|
5
5
|
.position-#{$item} {
|
|
6
6
|
position: #{$item} !important;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@include tablet {
|
|
11
|
-
@each $item in
|
|
10
|
+
@include mixins.tablet {
|
|
11
|
+
@each $item in tokens.$positions {
|
|
12
12
|
.position-#{$item}-tablet {
|
|
13
13
|
position: #{$item} !important;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@each $side, $direction in
|
|
18
|
+
@each $side, $direction in tokens.$logical-directions {
|
|
19
19
|
.#{$side}-0 {
|
|
20
20
|
inset-#{$direction}: 0 !important;
|
|
21
21
|
}
|
package/src/atomics/shadow.scss
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
.box-shadow-none {
|
|
5
5
|
box-shadow: none !important;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.box-shadow-light {
|
|
9
|
-
box-shadow:
|
|
9
|
+
box-shadow: tokens.$box-shadow-light !important;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.box-shadow-medium {
|
|
13
|
-
box-shadow:
|
|
13
|
+
box-shadow: tokens.$box-shadow-medium !important;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.box-shadow-heavy {
|
|
17
|
-
box-shadow:
|
|
17
|
+
box-shadow: tokens.$box-shadow-heavy !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.box-shadow-extra-heavy {
|
|
21
|
-
box-shadow:
|
|
21
|
+
box-shadow: tokens.$box-shadow-extra-heavy !important;
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
$auto-spacing-properties: (
|
|
5
5
|
('margin-inline', 'margin-inline'),
|
|
@@ -25,7 +25,7 @@ $separator: '-';
|
|
|
25
25
|
$classicProp: nth($property, 1);
|
|
26
26
|
$logicalProp: nth($property, 2);
|
|
27
27
|
|
|
28
|
-
@include tablet {
|
|
28
|
+
@include mixins.tablet {
|
|
29
29
|
.#{$classicProp}#{$separator}auto#{$separator}tablet {
|
|
30
30
|
#{$logicalProp}: auto !important;
|
|
31
31
|
}
|
|
@@ -36,7 +36,7 @@ $separator: '-';
|
|
|
36
36
|
$classicProp: nth($property, 1);
|
|
37
37
|
$logicalProp: nth($property, 2);
|
|
38
38
|
|
|
39
|
-
@include desktop {
|
|
39
|
+
@include mixins.desktop {
|
|
40
40
|
.#{$classicProp}#{$separator}auto#{$separator}desktop {
|
|
41
41
|
#{$logicalProp}: auto !important;
|
|
42
42
|
}
|
|
@@ -47,7 +47,7 @@ $separator: '-';
|
|
|
47
47
|
$classicProp: nth($property, 1);
|
|
48
48
|
$logicalProp: nth($property, 2);
|
|
49
49
|
|
|
50
|
-
@include widescreen {
|
|
50
|
+
@include mixins.widescreen {
|
|
51
51
|
.#{$classicProp}#{$separator}auto#{$separator}widescreen {
|
|
52
52
|
#{$logicalProp}: auto !important;
|
|
53
53
|
}
|
package/src/atomics/spacing.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
4
|
$separator: '-' !default;
|
|
5
5
|
$logical-spacing-properties: (
|
|
@@ -20,15 +20,15 @@ $logical-spacing-properties: (
|
|
|
20
20
|
) !default;
|
|
21
21
|
|
|
22
22
|
$layout-sizes: (
|
|
23
|
-
('xxs',
|
|
24
|
-
('xs',
|
|
25
|
-
('sm',
|
|
26
|
-
('md',
|
|
27
|
-
('lg',
|
|
28
|
-
('xl',
|
|
29
|
-
('xxl',
|
|
30
|
-
('xxxl',
|
|
31
|
-
('none',
|
|
23
|
+
('xxs', tokens.$layout-1),
|
|
24
|
+
('xs', tokens.$layout-2),
|
|
25
|
+
('sm', tokens.$layout-3),
|
|
26
|
+
('md', tokens.$layout-4),
|
|
27
|
+
('lg', tokens.$layout-5),
|
|
28
|
+
('xl', tokens.$layout-6),
|
|
29
|
+
('xxl', tokens.$layout-7),
|
|
30
|
+
('xxxl', tokens.$layout-8),
|
|
31
|
+
('none', tokens.$layout-0)
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
@function sizeValue($key, $value) {
|
|
@@ -52,7 +52,7 @@ $layout-sizes: (
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
@include tablet {
|
|
55
|
+
@include mixins.tablet {
|
|
56
56
|
@each $property in $logical-spacing-properties {
|
|
57
57
|
$classicProp: nth($property, 1);
|
|
58
58
|
$logicalProp: nth($property, 2);
|
|
@@ -68,7 +68,7 @@ $layout-sizes: (
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@include desktop {
|
|
71
|
+
@include mixins.desktop {
|
|
72
72
|
@each $property in $logical-spacing-properties {
|
|
73
73
|
$classicProp: nth($property, 1);
|
|
74
74
|
$logicalProp: nth($property, 2);
|
|
@@ -84,7 +84,7 @@ $layout-sizes: (
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
@include widescreen {
|
|
87
|
+
@include mixins.widescreen {
|
|
88
88
|
@each $property in $logical-spacing-properties {
|
|
89
89
|
$classicProp: nth($property, 1);
|
|
90
90
|
$logicalProp: nth($property, 2);
|