@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
|
@@ -1,34 +1,34 @@
|
|
|
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
|
-
$font-size-lg:
|
|
5
|
-
$font-size-sm:
|
|
4
|
+
$font-size-lg: tokens.$font-size-6 !default;
|
|
5
|
+
$font-size-sm: tokens.$font-size-8 !default;
|
|
6
6
|
|
|
7
|
-
$pagination-color:
|
|
8
|
-
$pagination-border-color:
|
|
7
|
+
$pagination-color: tokens.$text !default;
|
|
8
|
+
$pagination-border-color: tokens.$border !default;
|
|
9
9
|
$pagination-margin: 0.25rem !default;
|
|
10
10
|
|
|
11
|
-
$pagination-hover-color:
|
|
12
|
-
$pagination-hover-border-color:
|
|
11
|
+
$pagination-hover-color: tokens.$primary-hover !default;
|
|
12
|
+
$pagination-hover-border-color: tokens.$primary-hover !default;
|
|
13
13
|
|
|
14
|
-
$pagination-focus-color:
|
|
15
|
-
$pagination-focus-border-color:
|
|
14
|
+
$pagination-focus-color: tokens.$primary-active !default;
|
|
15
|
+
$pagination-focus-border-color: tokens.$primary-active !default;
|
|
16
16
|
|
|
17
|
-
$pagination-active-color:
|
|
18
|
-
$pagination-active-border-color:
|
|
17
|
+
$pagination-active-color: tokens.$primary-active !default;
|
|
18
|
+
$pagination-active-border-color: tokens.$primary-active !default;
|
|
19
19
|
|
|
20
|
-
$pagination-disabled-color:
|
|
21
|
-
$pagination-disabled-background-color:
|
|
22
|
-
$pagination-disabled-border-color:
|
|
20
|
+
$pagination-disabled-color: tokens.$secondary-dark !default;
|
|
21
|
+
$pagination-disabled-background-color: tokens.$secondary !default;
|
|
22
|
+
$pagination-disabled-border-color: tokens.$secondary !default;
|
|
23
23
|
|
|
24
|
-
$pagination-current-color:
|
|
25
|
-
$pagination-current-background-color:
|
|
26
|
-
$pagination-current-background-color-hover:
|
|
27
|
-
$pagination-current-border-color:
|
|
24
|
+
$pagination-current-color: tokens.$text-invert !default;
|
|
25
|
+
$pagination-current-background-color: tokens.$primary !default;
|
|
26
|
+
$pagination-current-background-color-hover: tokens.$primary-hover !default;
|
|
27
|
+
$pagination-current-border-color: tokens.$text-invert !default;
|
|
28
28
|
|
|
29
|
-
$pagination-ellipsis-color:
|
|
29
|
+
$pagination-ellipsis-color: tokens.$secondary !default;
|
|
30
30
|
|
|
31
|
-
$pagination-shadow-inset: inset 0 1px 2px
|
|
31
|
+
$pagination-shadow-inset: inset 0 1px 2px tokens.$box-shadow-color-light;
|
|
32
32
|
|
|
33
33
|
.pagination {
|
|
34
34
|
flex-wrap: wrap;
|
|
@@ -65,14 +65,14 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
@include forced-colors {
|
|
68
|
+
@include mixins.forced-colors {
|
|
69
69
|
&::after {
|
|
70
70
|
display: block;
|
|
71
71
|
position: absolute;
|
|
72
72
|
width: 0.375em;
|
|
73
73
|
height: 0.375em;
|
|
74
74
|
border: 1px solid LinkText;
|
|
75
|
-
border-radius:
|
|
75
|
+
border-radius: tokens.$border-radius-rounded;
|
|
76
76
|
background-color: LinkText;
|
|
77
77
|
content: '';
|
|
78
78
|
inset-block-start: 0.25em;
|
|
@@ -98,9 +98,9 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
98
98
|
.pagination-next,
|
|
99
99
|
.pagination-link,
|
|
100
100
|
.pagination-ellipsis {
|
|
101
|
-
@include control;
|
|
102
|
-
@include unselectable;
|
|
103
|
-
@include transparent-effects;
|
|
101
|
+
@include mixins.control;
|
|
102
|
+
@include mixins.unselectable;
|
|
103
|
+
@include mixins.transparent-effects;
|
|
104
104
|
|
|
105
105
|
justify-content: center;
|
|
106
106
|
font-size: 1em;
|
|
@@ -132,7 +132,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.pagination-center {
|
|
135
|
-
@include orientation-landscape {
|
|
135
|
+
@include mixins.orientation-landscape {
|
|
136
136
|
.pagination-previous {
|
|
137
137
|
order: 1;
|
|
138
138
|
}
|
|
@@ -148,7 +148,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
@include tablet {
|
|
151
|
+
@include mixins.tablet {
|
|
152
152
|
.pagination-list {
|
|
153
153
|
flex-grow: 0;
|
|
154
154
|
flex-shrink: 1;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
2
|
|
|
4
|
-
$persona-font-size-sm:
|
|
5
|
-
$persona-font-size-md:
|
|
6
|
-
$persona-font-size-lg:
|
|
3
|
+
$persona-font-size-sm: tokens.$font-size-9 !default;
|
|
4
|
+
$persona-font-size-md: tokens.$font-size-8 !default;
|
|
5
|
+
$persona-font-size-lg: tokens.$font-size-7 !default;
|
|
7
6
|
|
|
8
|
-
$persona-avatar-background-color:
|
|
9
|
-
$persona-avatar-font-color:
|
|
10
|
-
$persona-avatar-border-radius:
|
|
7
|
+
$persona-avatar-background-color: tokens.$alternate-background-medium !default;
|
|
8
|
+
$persona-avatar-font-color: tokens.$text-invert !default;
|
|
9
|
+
$persona-avatar-border-radius: tokens.$border-radius-rounded;
|
|
11
10
|
|
|
12
|
-
$persona-details-font-color:
|
|
13
|
-
$persona-name-font-size:
|
|
14
|
-
$persona-name-font-color:
|
|
15
|
-
$persona-name-font-weight:
|
|
11
|
+
$persona-details-font-color: tokens.$text-subtle !default;
|
|
12
|
+
$persona-name-font-size: tokens.$font-size-7 !default;
|
|
13
|
+
$persona-name-font-color: tokens.$text !default;
|
|
14
|
+
$persona-name-font-weight: tokens.$weight-semibold !default;
|
|
16
15
|
|
|
17
|
-
$persona-gap-size:
|
|
16
|
+
$persona-gap-size: tokens.$layout-1 !default;
|
|
18
17
|
|
|
19
18
|
.persona {
|
|
20
19
|
display: flex;
|
|
21
20
|
position: relative;
|
|
22
21
|
gap: $persona-gap-size;
|
|
23
22
|
font-size: $persona-font-size-md;
|
|
24
|
-
line-height:
|
|
23
|
+
line-height: tokens.$line-height-normal;
|
|
25
24
|
|
|
26
25
|
.persona-avatar {
|
|
27
26
|
flex-shrink: 0;
|
|
@@ -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
|
/* stylelint-disable max-nesting-depth, selector-max-specificity */
|
|
5
5
|
|
|
6
|
-
$popover-background-color:
|
|
7
|
-
$popover-border:
|
|
8
|
-
$popover-border-radius:
|
|
9
|
-
$popover-shadow:
|
|
6
|
+
$popover-background-color: tokens.$body-background !default;
|
|
7
|
+
$popover-border: tokens.$border-width solid tokens.$border !default;
|
|
8
|
+
$popover-border-radius: tokens.$border-radius !default;
|
|
9
|
+
$popover-shadow: tokens.$box-shadow-heavy !default;
|
|
10
10
|
$popover-width: 224px !default;
|
|
11
11
|
|
|
12
|
-
$popover-chevron-color:
|
|
12
|
+
$popover-chevron-color: tokens.$border !default;
|
|
13
13
|
|
|
14
14
|
.popover {
|
|
15
15
|
display: inline-block;
|
|
@@ -26,7 +26,7 @@ $popover-chevron-color: $border !default;
|
|
|
26
26
|
.popover-content {
|
|
27
27
|
position: absolute;
|
|
28
28
|
width: $popover-width;
|
|
29
|
-
padding:
|
|
29
|
+
padding: tokens.$spacer-5;
|
|
30
30
|
transform: none;
|
|
31
31
|
inset-inline-start: 0;
|
|
32
32
|
border: $popover-border;
|
|
@@ -36,13 +36,13 @@ $popover-chevron-color: $border !default;
|
|
|
36
36
|
|
|
37
37
|
// hide popover until after position is calculated, then show
|
|
38
38
|
visibility: hidden;
|
|
39
|
-
z-index:
|
|
39
|
+
z-index: tokens.$zindex-popover;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&.popover-top {
|
|
43
43
|
.popover-content {
|
|
44
44
|
inset-block-end: 100%;
|
|
45
|
-
margin-block-end:
|
|
45
|
+
margin-block-end: tokens.$spacer-3;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -52,12 +52,12 @@ $popover-chevron-color: $border !default;
|
|
|
52
52
|
overflow: visible;
|
|
53
53
|
|
|
54
54
|
&::before {
|
|
55
|
-
@include chevron-up;
|
|
55
|
+
@include mixins.chevron-up;
|
|
56
56
|
|
|
57
57
|
position: absolute;
|
|
58
58
|
inset-inline-start: var(--caret-left, 50%);
|
|
59
59
|
inset-inline-end: auto;
|
|
60
|
-
inset-block-start: calc(
|
|
60
|
+
inset-block-start: calc(mixins.$chevron-arrow-size / -1.75);
|
|
61
61
|
border-color: $popover-chevron-color;
|
|
62
62
|
background-color: $popover-background-color;
|
|
63
63
|
z-index: 2;
|
|
@@ -76,17 +76,17 @@ $popover-chevron-color: $border !default;
|
|
|
76
76
|
&.popover-caret.popover-caret-bottom {
|
|
77
77
|
.popover-content {
|
|
78
78
|
margin-block-start: 0;
|
|
79
|
-
margin-block-end:
|
|
79
|
+
margin-block-end: tokens.$spacer-3;
|
|
80
80
|
overflow: visible;
|
|
81
81
|
|
|
82
82
|
&::before {
|
|
83
|
-
@include chevron-down;
|
|
83
|
+
@include mixins.chevron-down;
|
|
84
84
|
|
|
85
85
|
position: absolute;
|
|
86
86
|
inset-inline-start: var(--caret-left, 50%);
|
|
87
87
|
inset-inline-end: auto;
|
|
88
88
|
inset-block-start: auto;
|
|
89
|
-
inset-block-end: calc(
|
|
89
|
+
inset-block-end: calc(mixins.$chevron-arrow-size / -1.75);
|
|
90
90
|
border-color: $popover-chevron-color;
|
|
91
91
|
background-color: $popover-background-color;
|
|
92
92
|
z-index: 2;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as
|
|
3
|
-
|
|
4
|
-
$progress-bar-background-color:
|
|
5
|
-
$progress-bar-value-background-color:
|
|
6
|
-
$progress-bar-value-background-color-warning:
|
|
7
|
-
$progress-bar-value-background-color-danger:
|
|
8
|
-
$progress-bar-value-background-color-success:
|
|
9
|
-
$progress-bar-height:
|
|
10
|
-
$progress-bar-height-sm:
|
|
11
|
-
$progress-bar-border-radius:
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$progress-bar-background-color: tokens.$secondary-background-glow-high-contrast !default;
|
|
5
|
+
$progress-bar-value-background-color: tokens.$primary !default;
|
|
6
|
+
$progress-bar-value-background-color-warning: tokens.$warning !default;
|
|
7
|
+
$progress-bar-value-background-color-danger: tokens.$danger !default;
|
|
8
|
+
$progress-bar-value-background-color-success: tokens.$success !default;
|
|
9
|
+
$progress-bar-height: tokens.$spacer-2 !default;
|
|
10
|
+
$progress-bar-height-sm: tokens.$spacer-1 !default;
|
|
11
|
+
$progress-bar-border-radius: tokens.$border-radius-rounded !default;
|
|
12
12
|
$progress-bar-indeterminate-animation-duration: 2s !default;
|
|
13
13
|
|
|
14
14
|
.progress-bar {
|
|
@@ -101,12 +101,12 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
101
101
|
background-color: transparent;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
@include prefers-reduced-motion {
|
|
104
|
+
@include mixins.prefers-reduced-motion {
|
|
105
105
|
animation-duration: 0s;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
@include forced-colors {
|
|
109
|
+
@include mixins.forced-colors {
|
|
110
110
|
background-color: CanvasText !important;
|
|
111
111
|
|
|
112
112
|
&::-webkit-progress-bar {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use '../tokens/
|
|
1
|
+
@use '../tokens/typography.scss' as typography;
|
|
2
2
|
|
|
3
3
|
.reading-width {
|
|
4
|
-
max-width:
|
|
4
|
+
max-width: typography.$optimal-reading-width;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.reading-width-padded {
|
|
8
|
-
width:
|
|
9
|
-
padding:
|
|
8
|
+
width: typography.$reading-width-padded;
|
|
9
|
+
padding: typography.$reading-width-padding;
|
|
10
10
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
$sc-padding-sm: 0.5em 1em !default;
|
|
5
5
|
$sc-padding: 0.75em 1.25em !default;
|
|
6
6
|
$sc-padding-lg: 1em 1.5em !default;
|
|
7
7
|
|
|
8
|
-
$sc-font-color:
|
|
9
|
-
$sc-border:
|
|
10
|
-
$sc-border-radius-rounded:
|
|
11
|
-
$sc-hover-background-color:
|
|
12
|
-
$sc-hover-border:
|
|
13
|
-
$sc-hover-border-color:
|
|
14
|
-
$sc-active-hover-background-color:
|
|
15
|
-
$sc-active-hover-border-color:
|
|
16
|
-
$sc-active-background-color:
|
|
17
|
-
$sc-active-border-color:
|
|
18
|
-
$sc-active-color:
|
|
8
|
+
$sc-font-color: tokens.$primary !default;
|
|
9
|
+
$sc-border: tokens.$border-width solid tokens.$border !default;
|
|
10
|
+
$sc-border-radius-rounded: tokens.$border-radius-rounded;
|
|
11
|
+
$sc-hover-background-color: tokens.$primary-background !default;
|
|
12
|
+
$sc-hover-border: tokens.$border-width solid tokens.$border !default;
|
|
13
|
+
$sc-hover-border-color: tokens.$primary-hover !default;
|
|
14
|
+
$sc-active-hover-background-color: tokens.$primary-hover !default;
|
|
15
|
+
$sc-active-hover-border-color: tokens.$primary-hover !default;
|
|
16
|
+
$sc-active-background-color: tokens.$primary !default;
|
|
17
|
+
$sc-active-border-color: tokens.$primary !default;
|
|
18
|
+
$sc-active-color: tokens.$text-invert !default;
|
|
19
19
|
|
|
20
20
|
.segmented-controls {
|
|
21
21
|
display: grid;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
width: 100%;
|
|
24
|
-
grid-gap:
|
|
24
|
+
grid-gap: tokens.$spacer-3;
|
|
25
25
|
grid-template-columns: max-content auto max-content;
|
|
26
|
-
font-size:
|
|
26
|
+
font-size: tokens.$font-size-7;
|
|
27
27
|
white-space: nowrap;
|
|
28
28
|
|
|
29
29
|
.segmented-control-previous,
|
|
@@ -35,13 +35,13 @@ $sc-active-color: $text-invert !default;
|
|
|
35
35
|
border-radius: $sc-border-radius-rounded;
|
|
36
36
|
background-color: $sc-active-background-color;
|
|
37
37
|
color: $sc-active-color;
|
|
38
|
-
font-weight:
|
|
38
|
+
font-weight: tokens.$weight-semibold;
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
|
|
41
41
|
&:hover {
|
|
42
42
|
background-color: $sc-active-hover-background-color;
|
|
43
43
|
|
|
44
|
-
@include forced-colors {
|
|
44
|
+
@include mixins.forced-colors {
|
|
45
45
|
border-color: Highlight;
|
|
46
46
|
background-color: Highlight;
|
|
47
47
|
color: HighlightText;
|
|
@@ -49,9 +49,9 @@ $sc-active-color: $text-invert !default;
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@include focus-visible() {
|
|
53
|
-
outline-color:
|
|
54
|
-
outline-offset:
|
|
52
|
+
@include mixins.focus-visible() {
|
|
53
|
+
outline-color: tokens.$text-invert;
|
|
54
|
+
outline-offset: -(tokens.$focus-outline-offset);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -75,21 +75,21 @@ $sc-active-color: $text-invert !default;
|
|
|
75
75
|
border-radius: $sc-border-radius-rounded;
|
|
76
76
|
background-color: transparent;
|
|
77
77
|
color: $sc-font-color;
|
|
78
|
-
font-weight:
|
|
78
|
+
font-weight: tokens.$weight-semibold;
|
|
79
79
|
cursor: pointer;
|
|
80
80
|
appearance: none;
|
|
81
81
|
vertical-align: top;
|
|
82
82
|
|
|
83
|
-
@include focus-visible() {
|
|
84
|
-
outline-color:
|
|
85
|
-
outline-offset:
|
|
83
|
+
@include mixins.focus-visible() {
|
|
84
|
+
outline-color: tokens.$text-invert;
|
|
85
|
+
outline-offset: -(tokens.$focus-outline-offset);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&:hover {
|
|
89
89
|
background-color: $sc-hover-background-color;
|
|
90
|
-
z-index:
|
|
90
|
+
z-index: tokens.$zindex-hover;
|
|
91
91
|
|
|
92
|
-
@include forced-colors {
|
|
92
|
+
@include mixins.forced-colors {
|
|
93
93
|
background-color: Highlight !important;
|
|
94
94
|
color: HighlightText !important;
|
|
95
95
|
forced-color-adjust: none;
|
|
@@ -99,14 +99,14 @@ $sc-active-color: $text-invert !default;
|
|
|
99
99
|
&[aria-selected='true'] {
|
|
100
100
|
background-color: $sc-active-background-color;
|
|
101
101
|
color: $sc-active-color;
|
|
102
|
-
z-index:
|
|
102
|
+
z-index: tokens.$zindex-active;
|
|
103
103
|
|
|
104
104
|
&:hover {
|
|
105
105
|
background-color: $sc-active-hover-background-color;
|
|
106
|
-
z-index:
|
|
106
|
+
z-index: tokens.$zindex-hover;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
@include forced-colors {
|
|
109
|
+
@include mixins.forced-colors {
|
|
110
110
|
background-color: SelectedItem;
|
|
111
111
|
color: SelectedItemText;
|
|
112
112
|
forced-color-adjust: none;
|
|
@@ -114,7 +114,7 @@ $sc-active-color: $text-invert !default;
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
@include tablet {
|
|
117
|
+
@include mixins.tablet {
|
|
118
118
|
.segmented-control,
|
|
119
119
|
.segmented-previous,
|
|
120
120
|
.segmented-next {
|
|
@@ -122,7 +122,7 @@ $sc-active-color: $text-invert !default;
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
@include desktop {
|
|
125
|
+
@include mixins.desktop {
|
|
126
126
|
.segmented-control,
|
|
127
127
|
.segmented-previous,
|
|
128
128
|
.segmented-next {
|
|
@@ -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
|
-
// @include widescreen {
|
|
76
|
-
// padding-inline:
|
|
75
|
+
// @include mixins.widescreen {
|
|
76
|
+
// padding-inline: tokens.$layout-widescreen-gap;
|
|
77
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,6 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
2
|
|
|
4
|
-
$step-font-size:
|
|
3
|
+
$step-font-size: tokens.$font-size-7 !default;
|
|
5
4
|
$steps-gap: 0.4375em !default;
|
|
6
5
|
$steps-size: 0.5em !default;
|
|
7
6
|
|
|
@@ -14,12 +13,12 @@ $steps-size: 0.5em !default;
|
|
|
14
13
|
.step {
|
|
15
14
|
height: $steps-size;
|
|
16
15
|
aspect-ratio: 1 / 1;
|
|
17
|
-
border-radius:
|
|
18
|
-
background-color:
|
|
16
|
+
border-radius: tokens.$border-radius-rounded;
|
|
17
|
+
background-color: tokens.$secondary;
|
|
19
18
|
|
|
20
19
|
&.step-selected {
|
|
21
20
|
aspect-ratio: 2 / 1;
|
|
22
|
-
background-color:
|
|
21
|
+
background-color: tokens.$primary;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use '../mixins/index.scss' as *;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
2
|
|
|
4
3
|
.stretched-link {
|
|
5
4
|
&::before {
|
|
6
5
|
position: absolute;
|
|
7
6
|
content: '';
|
|
8
|
-
z-index:
|
|
7
|
+
z-index: tokens.$zindex-stretched-link;
|
|
9
8
|
inset: 0;
|
|
10
9
|
}
|
|
11
10
|
}
|