@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
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
@use './button.scss' as button;
|
|
4
|
+
|
|
1
5
|
$site-header-height: 3.375em !default;
|
|
2
|
-
$site-header-inline-gap:
|
|
3
|
-
$site-header-border: 1px solid
|
|
6
|
+
$site-header-inline-gap: tokens.$spacer-3 !default;
|
|
7
|
+
$site-header-border: 1px solid tokens.$border !default;
|
|
4
8
|
|
|
5
|
-
$site-header-font-size:
|
|
9
|
+
$site-header-font-size: tokens.$font-size-7 !default;
|
|
6
10
|
$site-header-brand-font-size: 1.25em !default;
|
|
7
11
|
$site-header-brand-font-size-sm: 1.15em !default;
|
|
8
12
|
|
|
9
|
-
$site-header-control-color:
|
|
13
|
+
$site-header-control-color: tokens.$text !default;
|
|
10
14
|
|
|
11
15
|
$site-header-button-font-size: 0.875em !default;
|
|
12
16
|
$site-header-button-icon-font-size: 0.875em !default;
|
|
@@ -19,14 +23,14 @@ $site-header-hover-underline-border: $site-header-hover-underline-border-width s
|
|
|
19
23
|
$site-header-logo-width: 1.625em !default;
|
|
20
24
|
$site-header-divider-height: 1.5em !default;
|
|
21
25
|
|
|
22
|
-
$site-header-panel-background-color:
|
|
26
|
+
$site-header-panel-background-color: tokens.$body-background-medium !default;
|
|
23
27
|
$site-header-panel-min-height: 350px !default;
|
|
24
|
-
$site-header-panel-block-padding:
|
|
25
|
-
$site-header-panel-gap:
|
|
26
|
-
$site-header-panel-content-gap:
|
|
27
|
-
$site-header-panel-shadow:
|
|
28
|
-
$site-header-panel-border: 1px solid
|
|
29
|
-
$site-header-panel-featured-section-border: 1px solid
|
|
28
|
+
$site-header-panel-block-padding: tokens.$layout-4 !default;
|
|
29
|
+
$site-header-panel-gap: tokens.$layout-2 !default;
|
|
30
|
+
$site-header-panel-content-gap: tokens.$spacer-3 !default;
|
|
31
|
+
$site-header-panel-shadow: tokens.$box-shadow-medium !default;
|
|
32
|
+
$site-header-panel-border: 1px solid tokens.$border-white-high-contrast !default;
|
|
33
|
+
$site-header-panel-featured-section-border: 1px solid tokens.$table-border-dark !default;
|
|
30
34
|
|
|
31
35
|
%site-header-hover-underline {
|
|
32
36
|
> :not(.icon):not(.image) {
|
|
@@ -44,12 +48,12 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
%site-header-control {
|
|
47
|
-
outline-offset:
|
|
51
|
+
outline-offset: -(tokens.$focus-width);
|
|
48
52
|
color: $site-header-control-color;
|
|
49
53
|
text-decoration: none;
|
|
50
54
|
white-space: nowrap;
|
|
51
55
|
cursor: pointer;
|
|
52
|
-
padding-block:
|
|
56
|
+
padding-block: button.$button-padding-vertical;
|
|
53
57
|
padding-inline: $site-header-inline-gap;
|
|
54
58
|
|
|
55
59
|
&:hover,
|
|
@@ -66,15 +70,15 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
66
70
|
font-size: $site-header-font-size;
|
|
67
71
|
border-block-end: $site-header-border;
|
|
68
72
|
gap: $site-header-inline-gap;
|
|
69
|
-
padding-inline:
|
|
73
|
+
padding-inline: tokens.$layout-gap;
|
|
70
74
|
|
|
71
|
-
@include widescreen {
|
|
72
|
-
padding-inline:
|
|
75
|
+
@include mixins.widescreen {
|
|
76
|
+
padding-inline: tokens.$layout-widescreen-gap;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
.site-header-button {
|
|
76
|
-
@include control;
|
|
77
|
-
@include unselectable;
|
|
80
|
+
@include mixins.control;
|
|
81
|
+
@include mixins.unselectable;
|
|
78
82
|
|
|
79
83
|
@extend %site-header-control;
|
|
80
84
|
|
|
@@ -84,7 +88,7 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
84
88
|
border-radius: 0;
|
|
85
89
|
background-color: transparent;
|
|
86
90
|
font-size: $site-header-button-font-size;
|
|
87
|
-
font-weight:
|
|
91
|
+
font-weight: tokens.$weight-normal;
|
|
88
92
|
text-align: center;
|
|
89
93
|
|
|
90
94
|
&[aria-expanded='true'] {
|
|
@@ -139,7 +143,7 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
139
143
|
.site-header-divider {
|
|
140
144
|
display: inline-block;
|
|
141
145
|
height: $site-header-divider-height;
|
|
142
|
-
border-inline-start: 2px solid
|
|
146
|
+
border-inline-start: 2px solid tokens.$text-subtle;
|
|
143
147
|
margin-inline-start: $site-header-inline-gap;
|
|
144
148
|
}
|
|
145
149
|
|
|
@@ -148,7 +152,7 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
148
152
|
|
|
149
153
|
display: inline-block;
|
|
150
154
|
font-size: $site-header-brand-font-size-sm;
|
|
151
|
-
font-weight:
|
|
155
|
+
font-weight: tokens.$weight-semibold;
|
|
152
156
|
|
|
153
157
|
&:active,
|
|
154
158
|
&.is-active,
|
|
@@ -160,7 +164,7 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
160
164
|
text-decoration: none;
|
|
161
165
|
}
|
|
162
166
|
|
|
163
|
-
@include tablet {
|
|
167
|
+
@include mixins.tablet {
|
|
164
168
|
font-size: $site-header-brand-font-size;
|
|
165
169
|
}
|
|
166
170
|
}
|
|
@@ -182,25 +186,25 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
182
186
|
background-color: $site-header-panel-background-color;
|
|
183
187
|
text-wrap: wrap;
|
|
184
188
|
box-shadow: $site-header-panel-shadow;
|
|
185
|
-
z-index:
|
|
189
|
+
z-index: tokens.$zindex-popover;
|
|
186
190
|
inset-inline-start: 0;
|
|
187
191
|
inset-block-start: calc($site-header-height - 1px);
|
|
188
192
|
border-block-start: $site-header-panel-border;
|
|
189
193
|
border-block-end: $site-header-panel-border;
|
|
190
194
|
padding-block: $site-header-panel-block-padding;
|
|
191
|
-
padding-inline:
|
|
195
|
+
padding-inline: tokens.$layout-gap;
|
|
192
196
|
|
|
193
|
-
@include tablet {
|
|
197
|
+
@include mixins.tablet {
|
|
194
198
|
grid-template-columns: auto 33.333%;
|
|
195
199
|
grid-template-areas: 'panel-content panel-featured-section';
|
|
196
200
|
}
|
|
197
201
|
|
|
198
|
-
@include desktop {
|
|
202
|
+
@include mixins.desktop {
|
|
199
203
|
grid-template-columns: auto 25%;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
|
-
@include widescreen {
|
|
203
|
-
padding-inline:
|
|
206
|
+
@include mixins.widescreen {
|
|
207
|
+
padding-inline: tokens.$layout-widescreen-gap;
|
|
204
208
|
}
|
|
205
209
|
|
|
206
210
|
.site-header-panel-featured-content {
|
|
@@ -211,7 +215,7 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
211
215
|
gap: $site-header-panel-gap;
|
|
212
216
|
flex-direction: column;
|
|
213
217
|
|
|
214
|
-
@include tablet {
|
|
218
|
+
@include mixins.tablet {
|
|
215
219
|
border-inline-start: $site-header-panel-featured-section-border;
|
|
216
220
|
border-block-start: 0;
|
|
217
221
|
padding-block-start: 0;
|
|
@@ -229,13 +233,13 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
229
233
|
display: grid;
|
|
230
234
|
grid-gap: $site-header-panel-content-gap;
|
|
231
235
|
|
|
232
|
-
@include tablet {
|
|
236
|
+
@include mixins.tablet {
|
|
233
237
|
grid-auto-flow: column;
|
|
234
238
|
grid-template-columns: repeat(2, 1fr);
|
|
235
239
|
grid-template-rows: repeat(11, auto);
|
|
236
240
|
}
|
|
237
241
|
|
|
238
|
-
@include desktop {
|
|
242
|
+
@include mixins.desktop {
|
|
239
243
|
grid-template-columns: repeat(3, 1fr);
|
|
240
244
|
grid-template-rows: repeat(7, auto);
|
|
241
245
|
}
|
|
@@ -245,13 +249,13 @@ $site-header-panel-featured-section-border: 1px solid $table-border-dark !defaul
|
|
|
245
249
|
display: grid;
|
|
246
250
|
grid-gap: $site-header-panel-content-gap;
|
|
247
251
|
|
|
248
|
-
@include tablet {
|
|
252
|
+
@include mixins.tablet {
|
|
249
253
|
grid-auto-flow: column;
|
|
250
254
|
grid-template-columns: repeat(2, 1fr);
|
|
251
255
|
grid-template-rows: repeat(5, auto);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
|
-
@include desktop {
|
|
258
|
+
@include mixins.desktop {
|
|
255
259
|
grid-template-columns: repeat(3, 1fr);
|
|
256
260
|
grid-template-rows: repeat(3, auto);
|
|
257
261
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$step-font-size: tokens.$font-size-7 !default;
|
|
2
5
|
$steps-gap: 0.4375em !default;
|
|
3
6
|
$steps-size: 0.5em !default;
|
|
4
7
|
|
|
@@ -11,12 +14,12 @@ $steps-size: 0.5em !default;
|
|
|
11
14
|
.step {
|
|
12
15
|
height: $steps-size;
|
|
13
16
|
aspect-ratio: 1 / 1;
|
|
14
|
-
border-radius:
|
|
15
|
-
background-color:
|
|
17
|
+
border-radius: tokens.$border-radius-rounded;
|
|
18
|
+
background-color: tokens.$secondary;
|
|
16
19
|
|
|
17
20
|
&.step-selected {
|
|
18
21
|
aspect-ratio: 2 / 1;
|
|
19
|
-
background-color:
|
|
22
|
+
background-color: tokens.$primary;
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$table-cell-padding-compact: $spacer-3 !default;
|
|
4
|
-
$table-cell-padding-loose: $spacer-8 !default;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
5
3
|
|
|
6
|
-
$table-
|
|
7
|
-
$table-
|
|
8
|
-
$table-
|
|
4
|
+
$table-cell-vertical-padding: tokens.$spacer-5 !default;
|
|
5
|
+
$table-cell-horizontal-padding: tokens.$spacer-6 !default;
|
|
6
|
+
$table-cell-padding-compact: tokens.$spacer-3 !default;
|
|
7
|
+
$table-cell-padding-loose: tokens.$spacer-8 !default;
|
|
8
|
+
|
|
9
|
+
$table-caption-padding: tokens.$spacer-6 !default;
|
|
10
|
+
$table-caption-size: tokens.$font-size-9 !default;
|
|
11
|
+
$table-caption-spacing: tokens.$letter-spacing-medium !default;
|
|
9
12
|
|
|
10
13
|
.table-wrapper {
|
|
11
14
|
overflow-x: auto;
|
|
@@ -15,20 +18,20 @@ $table-caption-spacing: $letter-spacing-medium !default;
|
|
|
15
18
|
|
|
16
19
|
.table {
|
|
17
20
|
width: 100%;
|
|
18
|
-
font-size:
|
|
21
|
+
font-size: tokens.$font-size-8;
|
|
19
22
|
border-collapse: collapse;
|
|
20
23
|
table-layout: auto;
|
|
21
24
|
|
|
22
25
|
&:not(.table-simple) {
|
|
23
|
-
border: 1px solid
|
|
26
|
+
border: 1px solid tokens.$table-border-dark;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
caption {
|
|
27
30
|
padding: $table-caption-padding;
|
|
28
31
|
font-size: $table-caption-size;
|
|
29
|
-
font-weight:
|
|
32
|
+
font-weight: tokens.$weight-semibold;
|
|
30
33
|
letter-spacing: $table-caption-spacing;
|
|
31
|
-
text-align:
|
|
34
|
+
text-align: end;
|
|
32
35
|
text-transform: uppercase;
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -37,17 +40,17 @@ $table-caption-spacing: $letter-spacing-medium !default;
|
|
|
37
40
|
display: table-cell;
|
|
38
41
|
word-wrap: break-word;
|
|
39
42
|
padding: $table-cell-vertical-padding $table-cell-horizontal-padding;
|
|
40
|
-
border-block-start: 1px solid
|
|
43
|
+
border-block-start: 1px solid tokens.$table-border-dark;
|
|
41
44
|
line-height: 1.5;
|
|
42
45
|
vertical-align: top;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
th:not([align]) {
|
|
46
|
-
text-align:
|
|
49
|
+
text-align: start;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
&.table-stacked-mobile {
|
|
50
|
-
@include discouraged-mobile {
|
|
53
|
+
@include mixins.discouraged-mobile {
|
|
51
54
|
th,
|
|
52
55
|
td {
|
|
53
56
|
display: block;
|
|
@@ -66,7 +69,7 @@ $table-caption-spacing: $letter-spacing-medium !default;
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
thead tr > th:last-child {
|
|
69
|
-
border-block-end: 1px solid
|
|
72
|
+
border-block-end: 1px solid tokens.$table-border-dark;
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
}
|
|
@@ -83,18 +86,18 @@ $table-caption-spacing: $letter-spacing-medium !default;
|
|
|
83
86
|
&.table-complex {
|
|
84
87
|
thead tr,
|
|
85
88
|
tfoot tr {
|
|
86
|
-
background-color:
|
|
89
|
+
background-color: tokens.$table-header;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
th,
|
|
90
93
|
td {
|
|
91
|
-
border: 1px solid
|
|
94
|
+
border: 1px solid tokens.$table-border-dark;
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
&.table-striped {
|
|
96
99
|
tbody tr:nth-of-type(even) {
|
|
97
|
-
background-color:
|
|
100
|
+
background-color: tokens.$table-row;
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
|
package/src/components/tag.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
/* stylelint-disable selector-max-specificity, no-descending-specificity */
|
|
2
5
|
|
|
3
6
|
$tag-padding-block: 0.375em !default;
|
|
@@ -5,38 +8,38 @@ $tag-padding-inline: 0.675em !default;
|
|
|
5
8
|
|
|
6
9
|
$tag-gap-size: 0.375em !default;
|
|
7
10
|
|
|
8
|
-
$tag-font-size:
|
|
9
|
-
$tag-font-size-sm:
|
|
10
|
-
$tag-font-size-lg:
|
|
11
|
-
$tag-font-weight:
|
|
11
|
+
$tag-font-size: tokens.$font-size-8 !default;
|
|
12
|
+
$tag-font-size-sm: tokens.$font-size-9 !default;
|
|
13
|
+
$tag-font-size-lg: tokens.$font-size-7 !default;
|
|
14
|
+
$tag-font-weight: tokens.$weight-normal !default;
|
|
12
15
|
|
|
13
16
|
$tag-icon-font-size: 0.875em !default;
|
|
14
17
|
|
|
15
|
-
$tag-border-width:
|
|
16
|
-
$tag-border-radius:
|
|
17
|
-
$tag-border-radius-rounded:
|
|
18
|
-
$tag-border-color:
|
|
19
|
-
|
|
20
|
-
$tag-color:
|
|
21
|
-
$tag-color-hover:
|
|
22
|
-
$tag-background-color:
|
|
23
|
-
$tag-background-hover:
|
|
24
|
-
|
|
25
|
-
$tag-color-filled:
|
|
26
|
-
$tag-background-filled:
|
|
27
|
-
$tag-color-filled-hover:
|
|
28
|
-
$tag-background-filled-hover:
|
|
29
|
-
$tag-interactive-divider-color-filled:
|
|
30
|
-
$tag-interactive-color-filled-hover:
|
|
31
|
-
$tag-interactive-color-filled-close-hover:
|
|
32
|
-
|
|
33
|
-
$tag-color-primary:
|
|
34
|
-
$tag-color-primary-hover:
|
|
35
|
-
$tag-background-primary:
|
|
36
|
-
$tag-background-primary-hover:
|
|
37
|
-
$tag-border-color-primary:
|
|
38
|
-
$tag-interactive-divider-color-primary:
|
|
39
|
-
$tag-interactive-color-primary-hover:
|
|
18
|
+
$tag-border-width: tokens.$border-width !default;
|
|
19
|
+
$tag-border-radius: tokens.$border-radius !default;
|
|
20
|
+
$tag-border-radius-rounded: tokens.$border-radius-rounded !default;
|
|
21
|
+
$tag-border-color: tokens.$control-border !default;
|
|
22
|
+
|
|
23
|
+
$tag-color: tokens.$secondary-dark !default;
|
|
24
|
+
$tag-color-hover: tokens.$primary-dark !default;
|
|
25
|
+
$tag-background-color: tokens.$body-background !default;
|
|
26
|
+
$tag-background-hover: tokens.$secondary-background-glow-high-contrast !default;
|
|
27
|
+
|
|
28
|
+
$tag-color-filled: tokens.$text !default;
|
|
29
|
+
$tag-background-filled: tokens.$secondary-background-glow-high-contrast !default;
|
|
30
|
+
$tag-color-filled-hover: tokens.$primary-hover !default;
|
|
31
|
+
$tag-background-filled-hover: tokens.$secondary-background-hover !default;
|
|
32
|
+
$tag-interactive-divider-color-filled: tokens.$control-border !default;
|
|
33
|
+
$tag-interactive-color-filled-hover: tokens.$secondary-invert !default;
|
|
34
|
+
$tag-interactive-color-filled-close-hover: tokens.$primary-dark-hover !default;
|
|
35
|
+
|
|
36
|
+
$tag-color-primary: tokens.$primary-dark !default;
|
|
37
|
+
$tag-color-primary-hover: tokens.$primary-hover !default;
|
|
38
|
+
$tag-background-primary: tokens.$primary-background !default;
|
|
39
|
+
$tag-background-primary-hover: tokens.$primary-background-hover !default;
|
|
40
|
+
$tag-border-color-primary: tokens.$primary-background-glow-high-contrast !default;
|
|
41
|
+
$tag-interactive-divider-color-primary: tokens.$primary-box-shadow !default;
|
|
42
|
+
$tag-interactive-color-primary-hover: tokens.$primary-dark-hover !default;
|
|
40
43
|
|
|
41
44
|
$tag-suggestion-radius: 8px !default;
|
|
42
45
|
|
|
@@ -51,7 +54,7 @@ $tag-suggestion-radius: 8px !default;
|
|
|
51
54
|
color: $tag-color;
|
|
52
55
|
font-size: $tag-font-size;
|
|
53
56
|
font-weight: $tag-font-weight;
|
|
54
|
-
line-height:
|
|
57
|
+
line-height: tokens.$line-height-normal;
|
|
55
58
|
white-space: nowrap;
|
|
56
59
|
gap: $tag-gap-size;
|
|
57
60
|
|
|
@@ -92,7 +95,7 @@ $tag-suggestion-radius: 8px !default;
|
|
|
92
95
|
align-items: stretch;
|
|
93
96
|
padding: 0;
|
|
94
97
|
border: none;
|
|
95
|
-
color:
|
|
98
|
+
color: tokens.$text;
|
|
96
99
|
gap: 0;
|
|
97
100
|
|
|
98
101
|
.tag-popover {
|
|
@@ -101,7 +104,7 @@ $tag-suggestion-radius: 8px !default;
|
|
|
101
104
|
border: $tag-border-width solid $tag-border-color;
|
|
102
105
|
border-radius: $tag-border-radius;
|
|
103
106
|
outline-color: currentColor;
|
|
104
|
-
outline-offset:
|
|
107
|
+
outline-offset: -(tokens.$focus-width);
|
|
105
108
|
cursor: pointer;
|
|
106
109
|
overflow: hidden;
|
|
107
110
|
|
|
@@ -125,7 +128,7 @@ $tag-suggestion-radius: 8px !default;
|
|
|
125
128
|
border: $tag-border-width solid $tag-border-color;
|
|
126
129
|
border-radius: 0 $tag-border-radius $tag-border-radius 0;
|
|
127
130
|
outline-color: currentColor;
|
|
128
|
-
outline-offset:
|
|
131
|
+
outline-offset: -(tokens.$focus-width);
|
|
129
132
|
background-color: inherit;
|
|
130
133
|
color: inherit;
|
|
131
134
|
cursor: pointer;
|
|
@@ -218,7 +221,7 @@ $tag-suggestion-radius: 8px !default;
|
|
|
218
221
|
|
|
219
222
|
&:hover,
|
|
220
223
|
&.is-hovered {
|
|
221
|
-
background-color:
|
|
222
|
-
color:
|
|
224
|
+
background-color: tokens.$primary-background;
|
|
225
|
+
color: tokens.$primary-dark;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$timeline-
|
|
5
|
-
$timeline-
|
|
6
|
-
$timeline-
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
|
+
$timeline-content-font-size: tokens.$font-size-8 !default;
|
|
5
|
+
$timeline-timestamp-font-size: tokens.$font-size-9 !default;
|
|
6
|
+
$timeline-timestamp-font-weight: tokens.$weight-semilight !default;
|
|
7
|
+
$timeline-description-padding-top: tokens.$spacer-4 !default;
|
|
8
|
+
$timeline-description-line-height: tokens.$line-height-normal;
|
|
7
9
|
|
|
8
|
-
$timeline-item-border-left:
|
|
9
|
-
$timeline-item-min-height:
|
|
10
|
-
$timeline-item-padding-bottom:
|
|
11
|
-
$timeline-item-padding-left:
|
|
10
|
+
$timeline-item-border-left: tokens.$border-width solid tokens.$border !default;
|
|
11
|
+
$timeline-item-min-height: tokens.$layout-6 !default;
|
|
12
|
+
$timeline-item-padding-bottom: tokens.$spacer-7 !default;
|
|
13
|
+
$timeline-item-padding-left: tokens.$spacer-8 !default;
|
|
12
14
|
|
|
13
15
|
$timeline-item-template-gap: 8px !default;
|
|
14
16
|
$timeline-item-template-width: 100% !default;
|
|
@@ -23,7 +25,7 @@ $timeline-item-badge-transform-rtl: translate(
|
|
|
23
25
|
);
|
|
24
26
|
|
|
25
27
|
.timeline {
|
|
26
|
-
font-size:
|
|
28
|
+
font-size: tokens.$document-font-size;
|
|
27
29
|
container-type: inline-size;
|
|
28
30
|
|
|
29
31
|
.timeline-item {
|
|
@@ -46,7 +48,7 @@ $timeline-item-badge-transform-rtl: translate(
|
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
@container (min-width: #{
|
|
51
|
+
@container (min-width: #{tokens.$container-query-md}) {
|
|
50
52
|
.timeline-item-template {
|
|
51
53
|
display: grid;
|
|
52
54
|
width: $timeline-item-template-width;
|
|
@@ -60,8 +62,8 @@ $timeline-item-badge-transform-rtl: translate(
|
|
|
60
62
|
|
|
61
63
|
.timeline-item-template-title {
|
|
62
64
|
grid-area: title;
|
|
63
|
-
font-weight:
|
|
64
|
-
line-height:
|
|
65
|
+
font-weight: tokens.$weight-semibold;
|
|
66
|
+
line-height: tokens.$line-height-normal;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.timeline-item-template-time {
|
|
@@ -69,7 +71,7 @@ $timeline-item-badge-transform-rtl: translate(
|
|
|
69
71
|
align-content: baseline;
|
|
70
72
|
font-size: $timeline-timestamp-font-size;
|
|
71
73
|
font-weight: $timeline-timestamp-font-weight;
|
|
72
|
-
line-height:
|
|
74
|
+
line-height: tokens.$line-height-normal;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
.timeline-item-template-description {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$toggle-transition: tokens.$input-transition-duration cubic-bezier(0.01, 1.23, 0.58, 0.96) !default;
|
|
2
5
|
$toggle-circle-size: 0.85em !default;
|
|
3
6
|
$toggle-circle-top: 0.15em !default;
|
|
4
7
|
$toggle-circle-distance-from-border: 1em - $toggle-circle-size;
|
|
5
8
|
|
|
6
|
-
$toggle-unselected-circle-color:
|
|
7
|
-
$toggle-unselected-border-color:
|
|
8
|
-
$toggle-unselected-background-color:
|
|
9
|
-
$toggle-selected-background-color:
|
|
10
|
-
$toggle-circle-selected-background-color:
|
|
9
|
+
$toggle-unselected-circle-color: tokens.$text-subtle !default;
|
|
10
|
+
$toggle-unselected-border-color: tokens.$text-subtle !default;
|
|
11
|
+
$toggle-unselected-background-color: tokens.$body-background !default;
|
|
12
|
+
$toggle-selected-background-color: tokens.$primary !default;
|
|
13
|
+
$toggle-circle-selected-background-color: tokens.$body-background !default;
|
|
11
14
|
|
|
12
15
|
.toggle {
|
|
13
16
|
label {
|
|
@@ -15,14 +18,14 @@ $toggle-circle-selected-background-color: $body-background !default;
|
|
|
15
18
|
position: relative;
|
|
16
19
|
width: 2.5em;
|
|
17
20
|
height: 1.25em;
|
|
18
|
-
transition:
|
|
21
|
+
transition: tokens.$input-transition-duration linear;
|
|
19
22
|
transition-property: background-color, border-color;
|
|
20
23
|
border: 0.065em solid $toggle-unselected-border-color;
|
|
21
|
-
border-radius:
|
|
24
|
+
border-radius: tokens.$border-radius-rounded;
|
|
22
25
|
background-color: $toggle-unselected-background-color;
|
|
23
26
|
cursor: pointer;
|
|
24
27
|
|
|
25
|
-
@include forced-colors {
|
|
28
|
+
@include mixins.forced-colors {
|
|
26
29
|
border-color: CanvasText !important;
|
|
27
30
|
background-color: Canvas !important;
|
|
28
31
|
}
|
|
@@ -34,13 +37,13 @@ $toggle-circle-selected-background-color: $body-background !default;
|
|
|
34
37
|
height: $toggle-circle-size;
|
|
35
38
|
transition: $toggle-transition;
|
|
36
39
|
transition-property: inset-inline-start, border-color, background-color;
|
|
37
|
-
border-radius:
|
|
40
|
+
border-radius: tokens.$border-radius-rounded;
|
|
38
41
|
inset-block-start: $toggle-circle-top;
|
|
39
42
|
inset-inline-start: $toggle-circle-distance-from-border;
|
|
40
43
|
background-color: $toggle-unselected-circle-color;
|
|
41
44
|
content: '';
|
|
42
45
|
|
|
43
|
-
@include forced-colors {
|
|
46
|
+
@include mixins.forced-colors {
|
|
44
47
|
background-color: CanvasText !important;
|
|
45
48
|
}
|
|
46
49
|
}
|
|
@@ -53,7 +56,7 @@ $toggle-circle-selected-background-color: $body-background !default;
|
|
|
53
56
|
border-color: $toggle-selected-background-color;
|
|
54
57
|
background-color: $toggle-selected-background-color;
|
|
55
58
|
|
|
56
|
-
@include forced-colors {
|
|
59
|
+
@include mixins.forced-colors {
|
|
57
60
|
border-color: LinkText !important;
|
|
58
61
|
background-color: LinkText !important;
|
|
59
62
|
}
|
|
@@ -62,7 +65,7 @@ $toggle-circle-selected-background-color: $body-background !default;
|
|
|
62
65
|
background-color: $toggle-circle-selected-background-color;
|
|
63
66
|
inset-inline-start: calc(100% - ($toggle-circle-distance-from-border + $toggle-circle-size));
|
|
64
67
|
|
|
65
|
-
@include forced-colors {
|
|
68
|
+
@include mixins.forced-colors {
|
|
66
69
|
background-color: Canvas !important;
|
|
67
70
|
}
|
|
68
71
|
}
|
|
@@ -70,9 +73,9 @@ $toggle-circle-selected-background-color: $body-background !default;
|
|
|
70
73
|
|
|
71
74
|
/* stylelint-disable-next-line -- want to keep [type="checkbox"] as a requirement here */
|
|
72
75
|
input[type='checkbox'] {
|
|
73
|
-
@include visually-hidden();
|
|
76
|
+
@include mixins.visually-hidden();
|
|
74
77
|
|
|
75
|
-
@include focus-visible() {
|
|
78
|
+
@include mixins.focus-visible() {
|
|
76
79
|
+ label {
|
|
77
80
|
@extend %focus;
|
|
78
81
|
}
|
package/src/core/animations.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
// stylelint-disable-next-line keyframes-name-pattern
|
|
2
5
|
@keyframes spinAround {
|
|
3
6
|
// make it stop
|
|
@@ -51,7 +54,7 @@
|
|
|
51
54
|
.animation-fade {
|
|
52
55
|
animation: fade-out 0.4s ease-in forwards;
|
|
53
56
|
|
|
54
|
-
@include prefers-reduced-motion {
|
|
57
|
+
@include mixins.prefers-reduced-motion {
|
|
55
58
|
animation-duration: 0s;
|
|
56
59
|
}
|
|
57
60
|
}
|
|
@@ -59,7 +62,7 @@
|
|
|
59
62
|
.animation-slide-up {
|
|
60
63
|
animation: slide-up-fade-out 0.4s ease-in forwards;
|
|
61
64
|
|
|
62
|
-
@include prefers-reduced-motion {
|
|
65
|
+
@include mixins.prefers-reduced-motion {
|
|
63
66
|
animation-duration: 0s;
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=589475&q=details%20box-sizing&can=2
|
|
2
5
|
|
|
3
6
|
details,
|
|
@@ -13,19 +16,19 @@ details > * {
|
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
:where(a) {
|
|
16
|
-
color:
|
|
19
|
+
color: tokens.$hyperlink;
|
|
17
20
|
text-decoration: none;
|
|
18
21
|
cursor: pointer;
|
|
19
22
|
word-wrap: break-word;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
:where(a:hover) {
|
|
23
|
-
color:
|
|
26
|
+
color: tokens.$primary-hover;
|
|
24
27
|
text-decoration: underline;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
:where(a:visited) {
|
|
28
|
-
color:
|
|
31
|
+
color: tokens.$visited;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
fieldset {
|
|
@@ -34,5 +37,5 @@ fieldset {
|
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
::target-text {
|
|
37
|
-
background-color:
|
|
40
|
+
background-color: tokens.$code-highlight-background;
|
|
38
41
|
}
|