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