@microsoft/atlas-css 5.0.0-test.1 → 5.0.0-test.3
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/index.css.map +1 -1
- package/package.json +2 -2
- package/src/atomics/aspect-ratio.scss +0 -3
- package/src/atomics/background.scss +0 -3
- 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 +2 -3
- package/src/atomics/gap.scss +14 -14
- package/src/atomics/height.scss +0 -3
- package/src/atomics/image.scss +0 -3
- package/src/atomics/line-clamp.scss +5 -6
- package/src/atomics/list.scss +0 -3
- package/src/atomics/overflow.scss +2 -3
- package/src/atomics/position.scss +6 -6
- package/src/atomics/shadow.scss +5 -6
- package/src/atomics/spacing-auto.scss +4 -5
- package/src/atomics/spacing.scss +14 -14
- package/src/atomics/typography.scss +39 -39
- package/src/atomics/visually-hidden.scss +2 -3
- package/src/atomics/width.scss +3 -4
- package/src/components/accordion.scss +18 -17
- package/src/components/badge.scss +20 -21
- package/src/components/banner.scss +18 -18
- package/src/components/breadcrumbs.scss +3 -4
- package/src/components/button-reset.scss +2 -3
- package/src/components/button.scss +54 -55
- 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 +5 -6
- package/src/components/form/input.scss +26 -26
- package/src/components/form/label.scss +4 -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 +7 -7
- package/src/components/gradient.scss +10 -10
- package/src/components/hero.scss +31 -31
- package/src/components/icon.scss +0 -3
- package/src/components/image.scss +3 -4
- package/src/components/layout.scss +66 -72
- package/src/components/link-button.scss +8 -8
- package/src/components/markdown.scss +14 -14
- package/src/components/media.scss +2 -3
- package/src/components/message.scss +13 -14
- package/src/components/notification.scss +21 -21
- package/src/components/pagination.scss +28 -28
- package/src/components/persona.scss +13 -14
- package/src/components/popover.scss +15 -15
- package/src/components/progress-bar.scss +13 -13
- package/src/components/reading-width.scss +4 -4
- package/src/components/scroll.scss +0 -3
- package/src/components/segmented-control.scss +31 -31
- package/src/components/site-header.scss +36 -36
- package/src/components/steps.scss +5 -6
- package/src/components/stretched-link.scss +2 -3
- package/src/components/table.scss +18 -18
- package/src/components/tag.scss +36 -37
- package/src/components/timeline.scss +15 -16
- package/src/components/toggle.scss +17 -17
- package/src/core/animations.scss +3 -4
- package/src/core/bare-elements.scss +5 -6
- package/src/core/focus.scss +6 -6
- package/src/core/font-stack.scss +7 -8
- package/src/core/minireset.scss +0 -3
- package/src/core/normalize.scss +0 -3
- package/src/core/themes.scss +19 -20
- package/src/mixins/center.scss +0 -2
- package/src/mixins/chevron.scss +5 -5
- package/src/mixins/code-block.scss +9 -9
- package/src/mixins/colors.scss +0 -2
- 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 +0 -2
- package/src/mixins/gradient.scss +0 -2
- package/src/mixins/layout-gap.scss +5 -5
- package/src/mixins/line-clamp.scss +0 -2
- package/src/mixins/loader.scss +3 -3
- package/src/mixins/media-queries.scss +5 -5
- package/src/mixins/overlay.scss +0 -2
- package/src/mixins/transparency.scss +0 -2
- package/src/mixins/unselectable.scss +0 -2
- package/src/mixins/visually-hidden.scss +0 -2
- package/src/tokens/colors.scss +2 -2
- package/src/tokens/layout.scss +2 -2
- package/src/tokens/shadow.scss +9 -8
- package/src/tokens/themes.scss +473 -473
- package/tokens/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/atlas-css",
|
|
3
|
-
"version": "5.0.0-test.
|
|
3
|
+
"version": "5.0.0-test.3",
|
|
4
4
|
"description": "Styles backing the Atlas Design System used by Microsoft's Developer Relations.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"author": "Microsoft Corporation",
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@microsoft/stylelint-config-atlas": "
|
|
79
|
+
"@microsoft/stylelint-config-atlas": "5.0.0",
|
|
80
80
|
"@parcel/transformer-sass": "2.16.3",
|
|
81
81
|
"css-tree": "^2.3.1",
|
|
82
82
|
"eslint-plugin-security": "^1.7.1",
|
package/src/atomics/border.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
.border {
|
|
5
|
-
border:
|
|
5
|
+
border: tokens.$border-width solid tokens.$border !important;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.border-md {
|
|
9
|
-
border:
|
|
9
|
+
border: tokens.$border-width-md solid tokens.$border !important;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.border-lg {
|
|
13
|
-
border:
|
|
13
|
+
border: tokens.$border-width-lg solid tokens.$border !important;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.border-none {
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
|
|
20
20
|
// Rules for each side
|
|
21
21
|
|
|
22
|
-
@each $border-key, $direction in
|
|
22
|
+
@each $border-key, $direction in tokens.$logical-directions {
|
|
23
23
|
.border-#{$border-key} {
|
|
24
|
-
border-#{$direction}:
|
|
24
|
+
border-#{$direction}: tokens.$border-width solid tokens.$border !important;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.border-#{$border-key}-md {
|
|
28
|
-
border-#{$direction}:
|
|
28
|
+
border-#{$direction}: tokens.$border-width-md solid tokens.$border !important;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.border-#{$border-key}-lg {
|
|
32
|
-
border-#{$direction}:
|
|
32
|
+
border-#{$direction}: tokens.$border-width-lg solid tokens.$border !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.border-#{$border-key}-none {
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
@include tablet {
|
|
40
|
+
@include mixins.tablet {
|
|
41
41
|
.border-tablet {
|
|
42
|
-
border:
|
|
42
|
+
border: tokens.$border-width solid tokens.$border !important;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.border-md-tablet {
|
|
46
|
-
border:
|
|
46
|
+
border: tokens.$border-width-md solid tokens.$border !important;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.border-lg-tablet {
|
|
50
|
-
border:
|
|
50
|
+
border: tokens.$border-width-lg solid tokens.$border !important;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.border-none-tablet {
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
|
|
57
57
|
// Rules for each side
|
|
58
58
|
|
|
59
|
-
@each $border-key, $direction in
|
|
59
|
+
@each $border-key, $direction in tokens.$logical-directions {
|
|
60
60
|
.border-#{$border-key}-tablet {
|
|
61
|
-
border-#{$direction}:
|
|
61
|
+
border-#{$direction}: tokens.$border-width solid tokens.$border !important;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.border-#{$border-key}-md-tablet {
|
|
65
|
-
border-#{$direction}:
|
|
65
|
+
border-#{$direction}: tokens.$border-width-md solid tokens.$border !important;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.border-#{$border-key}-lg-tablet {
|
|
69
|
-
border-#{$direction}:
|
|
69
|
+
border-#{$direction}: tokens.$border-width-lg solid tokens.$border !important;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.border-#{$border-key}-none-tablet {
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
// Radius
|
|
79
79
|
|
|
80
80
|
.border-radius-sm {
|
|
81
|
-
border-radius:
|
|
81
|
+
border-radius: tokens.$border-radius-sm !important;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.border-radius {
|
|
85
|
-
border-radius:
|
|
85
|
+
border-radius: tokens.$border-radius !important;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.border-radius-lg {
|
|
89
|
-
border-radius:
|
|
89
|
+
border-radius: tokens.$border-radius-lg !important;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.border-radius-rounded {
|
|
93
|
-
border-radius:
|
|
93
|
+
border-radius: tokens.$border-radius-rounded !important;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.border-radius-none {
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
|
|
100
100
|
// Colors
|
|
101
101
|
|
|
102
|
-
@each $name, $color-set in
|
|
103
|
-
$base: nth($color-set,
|
|
102
|
+
@each $name, $color-set in tokens.$colors {
|
|
103
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
104
104
|
|
|
105
105
|
.border-color-#{$name} {
|
|
106
106
|
border-color: $base !important;
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.border-color-accent {
|
|
111
|
-
border-color:
|
|
111
|
+
border-color: tokens.$border-accent !important;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.border-high-contrast {
|
|
115
|
-
border:
|
|
115
|
+
border: tokens.$border-width solid tokens.$border-white-high-contrast !important;
|
|
116
116
|
|
|
117
117
|
&-hover:hover {
|
|
118
|
-
border:
|
|
118
|
+
border: tokens.$border-width solid tokens.$border-yellow-high-contrast !important;
|
|
119
119
|
}
|
|
120
120
|
}
|
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,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../
|
|
3
|
-
@use '../mixins/index.scss' as *;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
3
|
|
|
5
4
|
$flex-atomics: (
|
|
6
5
|
'justify-content': (
|
|
@@ -65,7 +64,7 @@ $flex-atomics: (
|
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
@include tablet {
|
|
67
|
+
@include mixins.tablet {
|
|
69
68
|
@each $key in map.keys($flex-atomics) {
|
|
70
69
|
@each $value in map.get($flex-atomics, $key) {
|
|
71
70
|
.#{$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,17 @@
|
|
|
1
|
-
@use '../
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
2
|
|
|
4
3
|
.line-clamp-1 {
|
|
5
|
-
@include line-clamp(1, true);
|
|
4
|
+
@include mixins.line-clamp(1, true);
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
.line-clamp-2 {
|
|
9
|
-
@include line-clamp(2, true);
|
|
8
|
+
@include mixins.line-clamp(2, true);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
.line-clamp-3 {
|
|
13
|
-
@include line-clamp(3, true);
|
|
12
|
+
@include mixins.line-clamp(3, true);
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
.line-clamp-4 {
|
|
17
|
-
@include line-clamp(4, true);
|
|
16
|
+
@include mixins.line-clamp(4, true);
|
|
18
17
|
}
|
package/src/atomics/list.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@use '../
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
2
|
|
|
4
3
|
.overflow-hidden {
|
|
5
4
|
overflow: hidden !important;
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
overflow-x: hidden !important;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
@include tablet {
|
|
11
|
+
@include mixins.tablet {
|
|
13
12
|
.overflow-hidden-tablet {
|
|
14
13
|
overflow: hidden !important;
|
|
15
14
|
}
|
|
@@ -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,21 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
2
|
|
|
4
3
|
.box-shadow-none {
|
|
5
4
|
box-shadow: none !important;
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
.box-shadow-light {
|
|
9
|
-
box-shadow:
|
|
8
|
+
box-shadow: tokens.$box-shadow-light !important;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
.box-shadow-medium {
|
|
13
|
-
box-shadow:
|
|
12
|
+
box-shadow: tokens.$box-shadow-medium !important;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
.box-shadow-heavy {
|
|
17
|
-
box-shadow:
|
|
16
|
+
box-shadow: tokens.$box-shadow-heavy !important;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
.box-shadow-extra-heavy {
|
|
21
|
-
box-shadow:
|
|
20
|
+
box-shadow: tokens.$box-shadow-extra-heavy !important;
|
|
22
21
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@use '../
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
2
|
|
|
4
3
|
$auto-spacing-properties: (
|
|
5
4
|
('margin-inline', 'margin-inline'),
|
|
@@ -25,7 +24,7 @@ $separator: '-';
|
|
|
25
24
|
$classicProp: nth($property, 1);
|
|
26
25
|
$logicalProp: nth($property, 2);
|
|
27
26
|
|
|
28
|
-
@include tablet {
|
|
27
|
+
@include mixins.tablet {
|
|
29
28
|
.#{$classicProp}#{$separator}auto#{$separator}tablet {
|
|
30
29
|
#{$logicalProp}: auto !important;
|
|
31
30
|
}
|
|
@@ -36,7 +35,7 @@ $separator: '-';
|
|
|
36
35
|
$classicProp: nth($property, 1);
|
|
37
36
|
$logicalProp: nth($property, 2);
|
|
38
37
|
|
|
39
|
-
@include desktop {
|
|
38
|
+
@include mixins.desktop {
|
|
40
39
|
.#{$classicProp}#{$separator}auto#{$separator}desktop {
|
|
41
40
|
#{$logicalProp}: auto !important;
|
|
42
41
|
}
|
|
@@ -47,7 +46,7 @@ $separator: '-';
|
|
|
47
46
|
$classicProp: nth($property, 1);
|
|
48
47
|
$logicalProp: nth($property, 2);
|
|
49
48
|
|
|
50
|
-
@include widescreen {
|
|
49
|
+
@include mixins.widescreen {
|
|
51
50
|
.#{$classicProp}#{$separator}auto#{$separator}widescreen {
|
|
52
51
|
#{$logicalProp}: auto !important;
|
|
53
52
|
}
|