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