@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,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-compound-selectors */
|
|
5
5
|
|
|
@@ -14,21 +14,21 @@ $list-top-spacing: 1rem !default;
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
.markdown {
|
|
17
|
-
@include code-block;
|
|
17
|
+
@include mixins.code-block;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.markdown {
|
|
22
|
-
// @include responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
22
|
+
// @include mixins.responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
23
23
|
font-size: $markdown-paragraph-size;
|
|
24
|
-
line-height: 1.
|
|
24
|
+
line-height: 1.6;
|
|
25
25
|
|
|
26
26
|
// Inline code
|
|
27
27
|
|
|
28
28
|
:not(a):not(pre) > code {
|
|
29
29
|
padding: 0.1em 0.2em;
|
|
30
30
|
border-radius: 3px;
|
|
31
|
-
background-color:
|
|
31
|
+
background-color: tokens.$inline-code;
|
|
32
32
|
word-wrap: break-word;
|
|
33
33
|
font-smooth: auto;
|
|
34
34
|
font-size: 0.85em;
|
|
@@ -91,7 +91,7 @@ $list-top-spacing: 1rem !default;
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
h1 {
|
|
94
|
-
@include responsive-font-size(
|
|
94
|
+
@include mixins.responsive-font-size(tokens.$font-size-1);
|
|
95
95
|
|
|
96
96
|
margin-block-start: none;
|
|
97
97
|
margin-block-end: 0.75rem;
|
|
@@ -105,27 +105,27 @@ $list-top-spacing: 1rem !default;
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
h2 {
|
|
108
|
-
@include responsive-font-size(
|
|
108
|
+
@include mixins.responsive-font-size(tokens.$font-size-2);
|
|
109
109
|
|
|
110
110
|
margin-block-start: 2rem;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
h3 {
|
|
114
|
-
@include responsive-font-size(
|
|
114
|
+
@include mixins.responsive-font-size(tokens.$font-size-3);
|
|
115
115
|
|
|
116
116
|
margin-block-start: 1.875rem;
|
|
117
117
|
margin-block-end: 1.125rem;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
h4 {
|
|
121
|
-
@include responsive-font-size(
|
|
121
|
+
@include mixins.responsive-font-size(tokens.$font-size-4);
|
|
122
122
|
|
|
123
123
|
margin-block-start: 2.25rem;
|
|
124
124
|
margin-block-end: 0.375rem;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
h5 {
|
|
128
|
-
@include responsive-font-size(
|
|
128
|
+
@include mixins.responsive-font-size(tokens.$font-size-5, false, 1.1rem);
|
|
129
129
|
|
|
130
130
|
margin-block-start: 2.25rem;
|
|
131
131
|
margin-block-end: 0.375rem;
|
|
@@ -133,7 +133,7 @@ $list-top-spacing: 1rem !default;
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
h6 {
|
|
136
|
-
@include responsive-font-size(
|
|
136
|
+
@include mixins.responsive-font-size(tokens.$font-size-6, false, 1.05rem);
|
|
137
137
|
|
|
138
138
|
margin-block-start: 2.25rem;
|
|
139
139
|
margin-block-end: 0.375rem;
|
|
@@ -151,11 +151,11 @@ $list-top-spacing: 1rem !default;
|
|
|
151
151
|
padding: 0 0.8em;
|
|
152
152
|
border-width: 0 0 0 3px;
|
|
153
153
|
border-style: solid;
|
|
154
|
-
border-color:
|
|
154
|
+
border-color: tokens.$border;
|
|
155
155
|
|
|
156
156
|
footer {
|
|
157
|
-
color:
|
|
158
|
-
font-size:
|
|
157
|
+
color: tokens.$text-subtle;
|
|
158
|
+
font-size: tokens.$font-size-8;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -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
|
.media {
|
|
5
5
|
display: flex;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
+ .media,
|
|
9
9
|
.media {
|
|
10
|
-
border-block-start: 1px solid
|
|
10
|
+
border-block-start: 1px solid tokens.$border;
|
|
11
11
|
margin-block-start: 1rem;
|
|
12
12
|
padding-block-start: 1rem;
|
|
13
13
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
$message-font-size-xs:
|
|
5
|
-
$message-font-size-sm:
|
|
6
|
-
$message-font-size-md:
|
|
4
|
+
$message-font-size-xs: tokens.$font-size-9 !default;
|
|
5
|
+
$message-font-size-sm: tokens.$font-size-8 !default;
|
|
6
|
+
$message-font-size-md: tokens.$font-size-7 !default;
|
|
7
7
|
|
|
8
|
-
$message-background-color:
|
|
9
|
-
$message-gap-size:
|
|
10
|
-
$message-spacer-md:
|
|
11
|
-
$message-spacer-lg:
|
|
8
|
+
$message-background-color: tokens.$body-background !default;
|
|
9
|
+
$message-gap-size: tokens.$spacer-4 !default;
|
|
10
|
+
$message-spacer-md: tokens.$spacer-3 !default;
|
|
11
|
+
$message-spacer-lg: tokens.$spacer-5 !default;
|
|
12
12
|
|
|
13
13
|
$message-sender-width: 85% !default;
|
|
14
|
-
$message-sender-background-color:
|
|
14
|
+
$message-sender-background-color: tokens.$primary-background !default;
|
|
15
15
|
|
|
16
|
-
$message-border-radius:
|
|
17
|
-
$message-border:
|
|
16
|
+
$message-border-radius: tokens.$border-radius-lg !default;
|
|
17
|
+
$message-border: tokens.$border-width solid tokens.$border !default;
|
|
18
18
|
|
|
19
|
-
$message-content-padding:
|
|
19
|
+
$message-content-padding: tokens.$spacer-5 !default;
|
|
20
20
|
$message-content-padding-inline-sm: 1rem !default;
|
|
21
21
|
$message-content-padding-block-sm: 0.75rem !default;
|
|
22
22
|
$message-content-padding-block-sm-sender: 0.5rem !default;
|
|
@@ -29,7 +29,7 @@ $message-content-padding-block-sm-sender: 0.5rem !default;
|
|
|
29
29
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
30
30
|
gap: $message-gap-size;
|
|
31
31
|
font-size: $message-font-size-md;
|
|
32
|
-
line-height:
|
|
32
|
+
line-height: tokens.$line-height-normal;
|
|
33
33
|
word-wrap: break-word;
|
|
34
34
|
|
|
35
35
|
.message-time {
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
$notification-background:
|
|
5
|
-
$notification-padding:
|
|
4
|
+
$notification-background: tokens.$secondary-background !default;
|
|
5
|
+
$notification-padding: tokens.$spacer-5 !default;
|
|
6
6
|
|
|
7
|
-
$notification-font-size:
|
|
8
|
-
$notification-color:
|
|
7
|
+
$notification-font-size: tokens.$font-size-7 !default;
|
|
8
|
+
$notification-color: tokens.$text !default;
|
|
9
9
|
|
|
10
|
-
$notification-border-color:
|
|
11
|
-
$notification-border-width:
|
|
12
|
-
$notification-border-radius:
|
|
10
|
+
$notification-border-color: tokens.$control-border !default;
|
|
11
|
+
$notification-border-width: tokens.$border-width !default;
|
|
12
|
+
$notification-border-radius: tokens.$border-radius !default;
|
|
13
13
|
|
|
14
14
|
$notification-icon-inline-spacing: 0.375em !default;
|
|
15
15
|
$notification-icon-block-spacing: 0.2em !default;
|
|
16
16
|
|
|
17
|
-
$notification-dismiss-margin:
|
|
17
|
+
$notification-dismiss-margin: tokens.$spacer-2 !default;
|
|
18
18
|
|
|
19
19
|
.notification {
|
|
20
20
|
display: grid;
|
|
@@ -24,18 +24,18 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
24
24
|
grid-template-areas: 'notification-content dismiss';
|
|
25
25
|
border: $notification-border-width solid $notification-border-color;
|
|
26
26
|
border-radius: $notification-border-radius;
|
|
27
|
-
outline-color:
|
|
27
|
+
outline-color: tokens.$text;
|
|
28
28
|
background-color: $notification-background;
|
|
29
29
|
color: $notification-color;
|
|
30
30
|
font-size: $notification-font-size;
|
|
31
|
-
line-height:
|
|
31
|
+
line-height: tokens.$line-height-normal;
|
|
32
32
|
word-wrap: break-word;
|
|
33
33
|
word-break: break-word;
|
|
34
34
|
|
|
35
|
-
@each $name, $color-set in
|
|
36
|
-
$base: nth($color-set,
|
|
37
|
-
$dark: nth($color-set,
|
|
38
|
-
$background: nth($color-set,
|
|
35
|
+
@each $name, $color-set in tokens.$colors {
|
|
36
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
37
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
38
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
39
39
|
|
|
40
40
|
&.notification-#{$name} {
|
|
41
41
|
border-color: $dark;
|
|
@@ -56,7 +56,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&::before {
|
|
59
|
-
@include loader;
|
|
59
|
+
@include mixins.loader;
|
|
60
60
|
|
|
61
61
|
position: absolute;
|
|
62
62
|
inset-block-start: $notification-padding;
|
|
@@ -71,14 +71,14 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
71
71
|
.notification-title,
|
|
72
72
|
a:not(.button) {
|
|
73
73
|
color: currentColor;
|
|
74
|
-
font-weight:
|
|
74
|
+
font-weight: tokens.$weight-semibold;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
a:not(.button) {
|
|
78
78
|
text-decoration: underline;
|
|
79
79
|
|
|
80
80
|
.theme-high-contrast & {
|
|
81
|
-
color:
|
|
81
|
+
color: tokens.$hyperlink;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&:hover {
|
|
@@ -90,7 +90,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
92
92
|
justify-content: flex-start;
|
|
93
|
-
margin-block-end:
|
|
93
|
+
margin-block-end: tokens.$layout-1;
|
|
94
94
|
|
|
95
95
|
.icon {
|
|
96
96
|
flex-shrink: 0;
|
|
@@ -102,7 +102,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.notification-dismiss {
|
|
105
|
-
@include dismiss-square;
|
|
105
|
+
@include mixins.dismiss-square;
|
|
106
106
|
|
|
107
107
|
grid-area: dismiss;
|
|
108
108
|
margin-inline-start: $notification-dismiss-margin;
|
|
@@ -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,27 @@
|
|
|
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
|
-
$persona-font-size-sm:
|
|
5
|
-
$persona-font-size-md:
|
|
6
|
-
$persona-font-size-lg:
|
|
4
|
+
$persona-font-size-sm: tokens.$font-size-9 !default;
|
|
5
|
+
$persona-font-size-md: tokens.$font-size-8 !default;
|
|
6
|
+
$persona-font-size-lg: tokens.$font-size-7 !default;
|
|
7
7
|
|
|
8
|
-
$persona-avatar-background-color:
|
|
9
|
-
$persona-avatar-font-color:
|
|
10
|
-
$persona-avatar-border-radius:
|
|
8
|
+
$persona-avatar-background-color: tokens.$alternate-background-medium !default;
|
|
9
|
+
$persona-avatar-font-color: tokens.$text-invert !default;
|
|
10
|
+
$persona-avatar-border-radius: tokens.$border-radius-rounded;
|
|
11
11
|
|
|
12
|
-
$persona-details-font-color:
|
|
13
|
-
$persona-name-font-size:
|
|
14
|
-
$persona-name-font-color:
|
|
15
|
-
$persona-name-font-weight:
|
|
12
|
+
$persona-details-font-color: tokens.$text-subtle !default;
|
|
13
|
+
$persona-name-font-size: tokens.$font-size-7 !default;
|
|
14
|
+
$persona-name-font-color: tokens.$text !default;
|
|
15
|
+
$persona-name-font-weight: tokens.$weight-semibold !default;
|
|
16
16
|
|
|
17
|
-
$persona-gap-size:
|
|
17
|
+
$persona-gap-size: tokens.$layout-1 !default;
|
|
18
18
|
|
|
19
19
|
.persona {
|
|
20
20
|
display: flex;
|
|
21
21
|
position: relative;
|
|
22
22
|
gap: $persona-gap-size;
|
|
23
23
|
font-size: $persona-font-size-md;
|
|
24
|
-
line-height:
|
|
24
|
+
line-height: tokens.$line-height-normal;
|
|
25
25
|
|
|
26
26
|
.persona-avatar {
|
|
27
27
|
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,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 {
|