@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,145 +1,148 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
// Font family
|
|
2
5
|
|
|
3
6
|
.font-family-monospace {
|
|
4
|
-
font-family:
|
|
7
|
+
font-family: tokens.$monospace-font-stack !important;
|
|
5
8
|
-moz-osx-font-smoothing: auto;
|
|
6
9
|
-webkit-font-smoothing: auto;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
.font-family-quote {
|
|
10
|
-
font-family:
|
|
13
|
+
font-family: tokens.$quote-font-stack !important;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
// Heading sizes
|
|
14
17
|
|
|
15
18
|
.font-size-h0 {
|
|
16
|
-
font-size:
|
|
19
|
+
font-size: tokens.$font-size-0 !important;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
.font-size-h1 {
|
|
20
|
-
font-size:
|
|
23
|
+
font-size: tokens.$font-size-1 !important;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
.font-size-h2 {
|
|
24
|
-
font-size:
|
|
27
|
+
font-size: tokens.$font-size-2 !important;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
.font-size-h3 {
|
|
28
|
-
font-size:
|
|
31
|
+
font-size: tokens.$font-size-3 !important;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
.font-size-h4 {
|
|
32
|
-
font-size:
|
|
35
|
+
font-size: tokens.$font-size-4 !important;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
.font-size-h5 {
|
|
36
|
-
font-size:
|
|
39
|
+
font-size: tokens.$font-size-5 !important;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
.font-size-h6 {
|
|
40
|
-
font-size:
|
|
43
|
+
font-size: tokens.$font-size-6 !important;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
@include tablet {
|
|
46
|
+
@include mixins.tablet {
|
|
44
47
|
.font-size-h0-tablet {
|
|
45
|
-
font-size:
|
|
48
|
+
font-size: tokens.$font-size-0 !important;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.font-size-h1-tablet {
|
|
49
|
-
font-size:
|
|
52
|
+
font-size: tokens.$font-size-1 !important;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
.font-size-h2-tablet {
|
|
53
|
-
font-size:
|
|
56
|
+
font-size: tokens.$font-size-2 !important;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.font-size-h3-tablet {
|
|
57
|
-
font-size:
|
|
60
|
+
font-size: tokens.$font-size-3 !important;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.font-size-h4-tablet {
|
|
61
|
-
font-size:
|
|
64
|
+
font-size: tokens.$font-size-4 !important;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.font-size-h5-tablet {
|
|
65
|
-
font-size:
|
|
68
|
+
font-size: tokens.$font-size-5 !important;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.font-size-h6-tablet {
|
|
69
|
-
font-size:
|
|
72
|
+
font-size: tokens.$font-size-6 !important;
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
// Non-heading sizes
|
|
74
77
|
|
|
75
78
|
.font-size-xxl {
|
|
76
|
-
font-size:
|
|
79
|
+
font-size: tokens.$font-size-4 !important;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.font-size-xl {
|
|
80
|
-
font-size:
|
|
83
|
+
font-size: tokens.$font-size-5 !important;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.font-size-lg {
|
|
84
|
-
font-size:
|
|
87
|
+
font-size: tokens.$font-size-6 !important;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
.font-size-md {
|
|
88
|
-
font-size:
|
|
91
|
+
font-size: tokens.$font-size-7 !important;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.font-size-sm {
|
|
92
|
-
font-size:
|
|
95
|
+
font-size: tokens.$font-size-8 !important;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
.font-size-xs {
|
|
96
|
-
font-size:
|
|
99
|
+
font-size: tokens.$font-size-9 !important;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
// Non-heading sizes
|
|
100
103
|
|
|
101
|
-
@include tablet {
|
|
104
|
+
@include mixins.tablet {
|
|
102
105
|
.font-size-xl-tablet {
|
|
103
|
-
font-size:
|
|
106
|
+
font-size: tokens.$font-size-5 !important;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
.font-size-lg-tablet {
|
|
107
|
-
font-size:
|
|
110
|
+
font-size: tokens.$font-size-6 !important;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
.font-size-md-tablet {
|
|
111
|
-
font-size:
|
|
114
|
+
font-size: tokens.$font-size-7 !important;
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
.font-size-sm-tablet {
|
|
115
|
-
font-size:
|
|
118
|
+
font-size: tokens.$font-size-8 !important;
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
.font-size-xs-tablet {
|
|
119
|
-
font-size:
|
|
122
|
+
font-size: tokens.$font-size-9 !important;
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
|
|
123
126
|
// Weight
|
|
124
127
|
|
|
125
128
|
.font-weight-light {
|
|
126
|
-
font-weight:
|
|
129
|
+
font-weight: tokens.$weight-light !important;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
.font-weight-semilight {
|
|
130
|
-
font-weight:
|
|
133
|
+
font-weight: tokens.$weight-semilight !important;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
.font-weight-normal {
|
|
134
|
-
font-weight:
|
|
137
|
+
font-weight: tokens.$weight-normal !important;
|
|
135
138
|
}
|
|
136
139
|
|
|
137
140
|
.font-weight-semibold {
|
|
138
|
-
font-weight:
|
|
141
|
+
font-weight: tokens.$weight-semibold !important;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
.font-weight-bold {
|
|
142
|
-
font-weight:
|
|
145
|
+
font-weight: tokens.$weight-bold !important;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
// Case
|
|
@@ -159,7 +162,7 @@
|
|
|
159
162
|
// Letter Spacing
|
|
160
163
|
|
|
161
164
|
.letter-spacing-wide {
|
|
162
|
-
letter-spacing:
|
|
165
|
+
letter-spacing: tokens.$letter-spacing-wide !important;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
168
|
.text-transform-uppercase {
|
|
@@ -180,7 +183,7 @@
|
|
|
180
183
|
text-align: end !important;
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
@include tablet {
|
|
186
|
+
@include mixins.tablet {
|
|
184
187
|
.text-align-left-tablet {
|
|
185
188
|
text-align: start !important;
|
|
186
189
|
}
|
|
@@ -207,7 +210,7 @@
|
|
|
207
210
|
// Line height
|
|
208
211
|
|
|
209
212
|
.line-height-normal {
|
|
210
|
-
line-height:
|
|
213
|
+
line-height: tokens.$line-height-normal !important;
|
|
211
214
|
}
|
|
212
215
|
|
|
213
216
|
// White space
|
package/src/atomics/width.scss
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@use 'sass:list';
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
2
4
|
|
|
3
5
|
$universal-widths: auto, fit-content, 100, 150, 200, 250, 300, 350 !default;
|
|
4
6
|
$mobile-incompatible-widths: 400, 450, 500, unset !default;
|
|
@@ -17,7 +19,7 @@ $all-widths: list.join($universal-widths, $mobile-incompatible-widths);
|
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
@include tablet {
|
|
22
|
+
@include mixins.tablet {
|
|
21
23
|
.width-full-tablet {
|
|
22
24
|
width: 100% !important;
|
|
23
25
|
}
|
|
@@ -30,7 +32,7 @@ $all-widths: list.join($universal-widths, $mobile-incompatible-widths);
|
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
@include desktop {
|
|
35
|
+
@include mixins.desktop {
|
|
34
36
|
.width-full-desktop {
|
|
35
37
|
width: 100% !important;
|
|
36
38
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$accordion-font-size-
|
|
5
|
-
$accordion-font-size-
|
|
6
|
-
|
|
7
|
-
$accordion-
|
|
8
|
-
$accordion-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$accordion-font-size-sm: tokens.$font-size-9 !default;
|
|
5
|
+
$accordion-font-size-md: tokens.$font-size-8 !default;
|
|
6
|
+
$accordion-font-size-lg: tokens.$font-size-7 !default;
|
|
7
|
+
$accordion-font-size-xl: tokens.$font-size-6 !default;
|
|
8
|
+
$accordion-font-size-xxl: tokens.$font-size-5 !default;
|
|
9
|
+
|
|
10
|
+
$accordion-gap: tokens.$layout-2 !default;
|
|
11
|
+
$accordion-spacing: tokens.$spacer-4 !default;
|
|
9
12
|
$accordion-transition: transform 0.15s !default;
|
|
10
13
|
|
|
11
14
|
// Spacing and font-size
|
|
@@ -59,48 +62,49 @@ $accordion-transition: transform 0.15s !default;
|
|
|
59
62
|
|
|
60
63
|
&:not(.accordion-icon-end) {
|
|
61
64
|
summary::before {
|
|
62
|
-
@include chevron-right;
|
|
65
|
+
@include mixins.chevron-right;
|
|
63
66
|
|
|
64
67
|
transition: $accordion-transition;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
&:dir(rtl) summary::before {
|
|
68
|
-
@include chevron-right-rtl;
|
|
71
|
+
@include mixins.chevron-right-rtl;
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
&.accordion-icon-end {
|
|
73
76
|
summary::after {
|
|
74
|
-
@include chevron-down;
|
|
77
|
+
@include mixins.chevron-down;
|
|
75
78
|
|
|
76
79
|
transition: $accordion-transition;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
&:dir(rtl) summary::after {
|
|
80
|
-
@include chevron-down-rtl;
|
|
83
|
+
@include mixins.chevron-down-rtl;
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
&[open] {
|
|
85
88
|
&:not(.accordion-icon-end) {
|
|
86
89
|
summary::before {
|
|
87
|
-
transform:
|
|
90
|
+
transform: mixins.$chevron-down-rotate translate(calc(mixins.$chevron-arrow-size / 2), 0);
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
/* stylelint-disable-next-line selector-max-specificity, rule-empty-line-before */
|
|
91
94
|
&:dir(rtl) summary::before {
|
|
92
|
-
transform:
|
|
95
|
+
transform: mixins.$chevron-down-rotate-rtl
|
|
96
|
+
translate(calc(mixins.$chevron-arrow-size / 2 * -1), 0);
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
&.accordion-icon-end {
|
|
97
101
|
summary::after {
|
|
98
|
-
transform:
|
|
102
|
+
transform: mixins.$chevron-up-rotate-scale-xy;
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
/* stylelint-disable-next-line selector-max-specificity, rule-empty-line-before */
|
|
102
106
|
&:dir(rtl) summary::after {
|
|
103
|
-
transform:
|
|
107
|
+
transform: mixins.$chevron-up-rotate-scale-xy-rtl;
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
}
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
$badge-icon-padding-block: 0.5em !default;
|
|
2
5
|
$badge-padding-block: 0.25em !default;
|
|
3
6
|
$badge-padding-inline: 0.5em !default;
|
|
4
7
|
|
|
5
8
|
$badge-gap-size: 0.375em !default;
|
|
6
9
|
|
|
7
|
-
$badge-font-size:
|
|
8
|
-
$badge-font-size-sm:
|
|
9
|
-
$badge-font-size-lg:
|
|
10
|
-
$badge-font-size-xl:
|
|
11
|
-
$badge-font-weight:
|
|
10
|
+
$badge-font-size: tokens.$font-size-8 !default;
|
|
11
|
+
$badge-font-size-sm: tokens.$font-size-9 !default;
|
|
12
|
+
$badge-font-size-lg: tokens.$font-size-7 !default;
|
|
13
|
+
$badge-font-size-xl: tokens.$font-size-6 !default;
|
|
14
|
+
$badge-font-weight: tokens.$weight-semibold !default;
|
|
12
15
|
|
|
13
16
|
$badge-icon-size: 1.3em !default;
|
|
14
17
|
|
|
15
|
-
$badge-border-width:
|
|
16
|
-
$badge-border-radius:
|
|
18
|
+
$badge-border-width: tokens.$border-width !default;
|
|
19
|
+
$badge-border-radius: tokens.$border-radius-rounded !default;
|
|
17
20
|
|
|
18
21
|
.badge {
|
|
19
22
|
display: inline-flex;
|
|
20
23
|
align-items: center;
|
|
21
24
|
justify-content: center;
|
|
22
25
|
padding: $badge-padding-block $badge-padding-inline;
|
|
23
|
-
border: $badge-border-width solid
|
|
26
|
+
border: $badge-border-width solid tokens.$border-white-high-contrast;
|
|
24
27
|
border-radius: $badge-border-radius;
|
|
25
28
|
font-size: $badge-font-size;
|
|
26
29
|
font-weight: $badge-font-weight;
|
|
27
|
-
line-height:
|
|
30
|
+
line-height: tokens.$line-height-normal;
|
|
28
31
|
white-space: nowrap;
|
|
29
32
|
gap: $badge-gap-size;
|
|
30
33
|
|
|
31
|
-
@each $name, $color-set in
|
|
32
|
-
$base: nth($color-set,
|
|
33
|
-
$invert: nth($color-set,
|
|
34
|
-
$dark: nth($color-set,
|
|
35
|
-
$background: nth($color-set,
|
|
34
|
+
@each $name, $color-set in tokens.$colors {
|
|
35
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
36
|
+
$invert: nth($color-set, tokens.$color-index-invert);
|
|
37
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
38
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
36
39
|
|
|
37
40
|
@if $name == 'secondary' {
|
|
38
41
|
border-color: $dark;
|
|
@@ -53,11 +56,11 @@ $badge-border-radius: $border-radius-rounded !default;
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&.badge-filled {
|
|
56
|
-
@each $name, $color-set in
|
|
57
|
-
$base: nth($color-set,
|
|
58
|
-
$invert: nth($color-set,
|
|
59
|
-
$dark: nth($color-set,
|
|
60
|
-
$background: nth($color-set,
|
|
59
|
+
@each $name, $color-set in tokens.$colors {
|
|
60
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
61
|
+
$invert: nth($color-set, tokens.$color-index-invert);
|
|
62
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
63
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
61
64
|
|
|
62
65
|
@if $name == 'secondary' {
|
|
63
66
|
border-color: $base;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
|
-
$banner-
|
|
5
|
-
$banner-
|
|
4
|
+
$banner-background: tokens.$info-background !default;
|
|
5
|
+
$banner-padding: tokens.$spacer-5 !default;
|
|
6
6
|
|
|
7
|
-
$banner-
|
|
8
|
-
$banner-
|
|
7
|
+
$banner-font-size: tokens.$font-size-7 !default;
|
|
8
|
+
$banner-color: tokens.$info-dark !default;
|
|
9
9
|
|
|
10
|
-
$banner-
|
|
10
|
+
$banner-border-color: tokens.$border-white-high-contrast !default;
|
|
11
|
+
$banner-border-width: tokens.$border-width !default;
|
|
12
|
+
|
|
13
|
+
$banner-dismiss-margin: tokens.$spacer-2 !default;
|
|
11
14
|
|
|
12
15
|
.banner {
|
|
13
16
|
@extend %layout-gap;
|
|
@@ -16,11 +19,11 @@ $banner-dismiss-margin: $spacer-2 !default;
|
|
|
16
19
|
position: relative;
|
|
17
20
|
grid-template: auto / 1fr auto;
|
|
18
21
|
grid-template-areas: 'banner-content dismiss';
|
|
19
|
-
outline-color:
|
|
22
|
+
outline-color: tokens.$text;
|
|
20
23
|
background-color: $banner-background;
|
|
21
24
|
color: $banner-color;
|
|
22
25
|
font-size: $banner-font-size;
|
|
23
|
-
line-height:
|
|
26
|
+
line-height: tokens.$line-height-normal;
|
|
24
27
|
padding-block: $banner-padding;
|
|
25
28
|
word-wrap: break-word;
|
|
26
29
|
word-break: break-word;
|
|
@@ -34,15 +37,15 @@ $banner-dismiss-margin: $spacer-2 !default;
|
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
&::before {
|
|
37
|
-
@include loader;
|
|
40
|
+
@include mixins.loader;
|
|
38
41
|
|
|
39
42
|
position: absolute;
|
|
40
43
|
inset-block-start: $banner-padding;
|
|
41
|
-
inset-inline-start:
|
|
44
|
+
inset-inline-start: tokens.$layout-gap;
|
|
42
45
|
border-color: transparent transparent $banner-color $banner-color;
|
|
43
46
|
|
|
44
|
-
@include widescreen {
|
|
45
|
-
inset-inline-start:
|
|
47
|
+
@include mixins.widescreen {
|
|
48
|
+
inset-inline-start: tokens.$layout-widescreen-gap;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
}
|
|
@@ -52,11 +55,11 @@ $banner-dismiss-margin: $spacer-2 !default;
|
|
|
52
55
|
|
|
53
56
|
a:not(.button) {
|
|
54
57
|
color: currentColor;
|
|
55
|
-
font-weight:
|
|
58
|
+
font-weight: tokens.$weight-semibold;
|
|
56
59
|
text-decoration: underline;
|
|
57
60
|
|
|
58
61
|
.theme-high-contrast & {
|
|
59
|
-
color:
|
|
62
|
+
color: tokens.$hyperlink;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
&:hover {
|
|
@@ -66,7 +69,7 @@ $banner-dismiss-margin: $spacer-2 !default;
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.banner-dismiss {
|
|
69
|
-
@include dismiss-square;
|
|
72
|
+
@include mixins.dismiss-square;
|
|
70
73
|
|
|
71
74
|
grid-area: dismiss;
|
|
72
75
|
margin-inline-start: $banner-dismiss-margin;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$breadcrumb-font-size: tokens.$font-size-8 !default;
|
|
2
5
|
$breadcrumb-spacing-horizontal: 0.25em !default;
|
|
3
6
|
$breadcrumb-spacing-vertical: 0.375em !default;
|
|
4
7
|
$breadcrumb-separator: '\00200B/' !default;
|
|
5
8
|
|
|
6
9
|
%breadcrumbs-slash {
|
|
7
10
|
display: inline-block;
|
|
8
|
-
color:
|
|
11
|
+
color: tokens.$text-subtle;
|
|
9
12
|
content: $breadcrumb-separator;
|
|
10
13
|
}
|
|
11
14
|
|