@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,3 +1,6 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
/* stylelint-disable selector-max-compound-selectors */
|
|
2
5
|
|
|
3
6
|
$markdown-paragraph-size: 1rem !default;
|
|
@@ -11,21 +14,21 @@ $list-top-spacing: 1rem !default;
|
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
.markdown {
|
|
14
|
-
@include code-block;
|
|
17
|
+
@include mixins.code-block;
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
.markdown {
|
|
19
|
-
// @include responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
22
|
+
// @include mixins.responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
20
23
|
font-size: $markdown-paragraph-size;
|
|
21
|
-
line-height: 1.
|
|
24
|
+
line-height: 1.6;
|
|
22
25
|
|
|
23
26
|
// Inline code
|
|
24
27
|
|
|
25
28
|
:not(a):not(pre) > code {
|
|
26
29
|
padding: 0.1em 0.2em;
|
|
27
30
|
border-radius: 3px;
|
|
28
|
-
background-color:
|
|
31
|
+
background-color: tokens.$inline-code;
|
|
29
32
|
word-wrap: break-word;
|
|
30
33
|
font-smooth: auto;
|
|
31
34
|
font-size: 0.85em;
|
|
@@ -88,7 +91,7 @@ $list-top-spacing: 1rem !default;
|
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
h1 {
|
|
91
|
-
@include responsive-font-size(
|
|
94
|
+
@include mixins.responsive-font-size(tokens.$font-size-1);
|
|
92
95
|
|
|
93
96
|
margin-block-start: none;
|
|
94
97
|
margin-block-end: 0.75rem;
|
|
@@ -102,27 +105,27 @@ $list-top-spacing: 1rem !default;
|
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
h2 {
|
|
105
|
-
@include responsive-font-size(
|
|
108
|
+
@include mixins.responsive-font-size(tokens.$font-size-2);
|
|
106
109
|
|
|
107
110
|
margin-block-start: 2rem;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
h3 {
|
|
111
|
-
@include responsive-font-size(
|
|
114
|
+
@include mixins.responsive-font-size(tokens.$font-size-3);
|
|
112
115
|
|
|
113
116
|
margin-block-start: 1.875rem;
|
|
114
117
|
margin-block-end: 1.125rem;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
h4 {
|
|
118
|
-
@include responsive-font-size(
|
|
121
|
+
@include mixins.responsive-font-size(tokens.$font-size-4);
|
|
119
122
|
|
|
120
123
|
margin-block-start: 2.25rem;
|
|
121
124
|
margin-block-end: 0.375rem;
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
h5 {
|
|
125
|
-
@include responsive-font-size(
|
|
128
|
+
@include mixins.responsive-font-size(tokens.$font-size-5, false, 1.1rem);
|
|
126
129
|
|
|
127
130
|
margin-block-start: 2.25rem;
|
|
128
131
|
margin-block-end: 0.375rem;
|
|
@@ -130,7 +133,7 @@ $list-top-spacing: 1rem !default;
|
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
h6 {
|
|
133
|
-
@include responsive-font-size(
|
|
136
|
+
@include mixins.responsive-font-size(tokens.$font-size-6, false, 1.05rem);
|
|
134
137
|
|
|
135
138
|
margin-block-start: 2.25rem;
|
|
136
139
|
margin-block-end: 0.375rem;
|
|
@@ -148,11 +151,11 @@ $list-top-spacing: 1rem !default;
|
|
|
148
151
|
padding: 0 0.8em;
|
|
149
152
|
border-width: 0 0 0 3px;
|
|
150
153
|
border-style: solid;
|
|
151
|
-
border-color:
|
|
154
|
+
border-color: tokens.$border;
|
|
152
155
|
|
|
153
156
|
footer {
|
|
154
|
-
color:
|
|
155
|
-
font-size:
|
|
157
|
+
color: tokens.$text-subtle;
|
|
158
|
+
font-size: tokens.$font-size-8;
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
.media {
|
|
2
5
|
display: flex;
|
|
3
6
|
align-items: flex-start;
|
|
4
7
|
|
|
5
8
|
+ .media,
|
|
6
9
|
.media {
|
|
7
|
-
border-block-start: 1px solid
|
|
10
|
+
border-block-start: 1px solid tokens.$border;
|
|
8
11
|
margin-block-start: 1rem;
|
|
9
12
|
padding-block-start: 1rem;
|
|
10
13
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$message-font-size-md: $font-size-7 !default;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
3
|
|
|
5
|
-
$message-
|
|
6
|
-
$message-
|
|
7
|
-
$message-
|
|
8
|
-
|
|
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
|
+
|
|
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;
|
|
9
12
|
|
|
10
13
|
$message-sender-width: 85% !default;
|
|
11
|
-
$message-sender-background-color:
|
|
14
|
+
$message-sender-background-color: tokens.$primary-background !default;
|
|
12
15
|
|
|
13
|
-
$message-border-radius:
|
|
14
|
-
$message-border:
|
|
16
|
+
$message-border-radius: tokens.$border-radius-lg !default;
|
|
17
|
+
$message-border: tokens.$border-width solid tokens.$border !default;
|
|
15
18
|
|
|
16
|
-
$message-content-padding:
|
|
19
|
+
$message-content-padding: tokens.$spacer-5 !default;
|
|
17
20
|
$message-content-padding-inline-sm: 1rem !default;
|
|
18
21
|
$message-content-padding-block-sm: 0.75rem !default;
|
|
19
22
|
$message-content-padding-block-sm-sender: 0.5rem !default;
|
|
@@ -26,7 +29,7 @@ $message-content-padding-block-sm-sender: 0.5rem !default;
|
|
|
26
29
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
27
30
|
gap: $message-gap-size;
|
|
28
31
|
font-size: $message-font-size-md;
|
|
29
|
-
line-height:
|
|
32
|
+
line-height: tokens.$line-height-normal;
|
|
30
33
|
word-wrap: break-word;
|
|
31
34
|
|
|
32
35
|
.message-time {
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
|
-
$notification-
|
|
5
|
-
$notification-
|
|
4
|
+
$notification-background: tokens.$secondary-background !default;
|
|
5
|
+
$notification-padding: tokens.$spacer-5 !default;
|
|
6
6
|
|
|
7
|
-
$notification-
|
|
8
|
-
$notification-
|
|
9
|
-
|
|
7
|
+
$notification-font-size: tokens.$font-size-7 !default;
|
|
8
|
+
$notification-color: tokens.$text !default;
|
|
9
|
+
|
|
10
|
+
$notification-border-color: tokens.$control-border !default;
|
|
11
|
+
$notification-border-width: tokens.$border-width !default;
|
|
12
|
+
$notification-border-radius: tokens.$border-radius !default;
|
|
10
13
|
|
|
11
14
|
$notification-icon-inline-spacing: 0.375em !default;
|
|
12
15
|
$notification-icon-block-spacing: 0.2em !default;
|
|
13
16
|
|
|
14
|
-
$notification-dismiss-margin:
|
|
17
|
+
$notification-dismiss-margin: tokens.$spacer-2 !default;
|
|
15
18
|
|
|
16
19
|
.notification {
|
|
17
20
|
display: grid;
|
|
@@ -21,18 +24,18 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
21
24
|
grid-template-areas: 'notification-content dismiss';
|
|
22
25
|
border: $notification-border-width solid $notification-border-color;
|
|
23
26
|
border-radius: $notification-border-radius;
|
|
24
|
-
outline-color:
|
|
27
|
+
outline-color: tokens.$text;
|
|
25
28
|
background-color: $notification-background;
|
|
26
29
|
color: $notification-color;
|
|
27
30
|
font-size: $notification-font-size;
|
|
28
|
-
line-height:
|
|
31
|
+
line-height: tokens.$line-height-normal;
|
|
29
32
|
word-wrap: break-word;
|
|
30
33
|
word-break: break-word;
|
|
31
34
|
|
|
32
|
-
@each $name, $color-set in
|
|
33
|
-
$base: nth($color-set,
|
|
34
|
-
$dark: nth($color-set,
|
|
35
|
-
$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);
|
|
36
39
|
|
|
37
40
|
&.notification-#{$name} {
|
|
38
41
|
border-color: $dark;
|
|
@@ -53,7 +56,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&::before {
|
|
56
|
-
@include loader;
|
|
59
|
+
@include mixins.loader;
|
|
57
60
|
|
|
58
61
|
position: absolute;
|
|
59
62
|
inset-block-start: $notification-padding;
|
|
@@ -68,14 +71,14 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
68
71
|
.notification-title,
|
|
69
72
|
a:not(.button) {
|
|
70
73
|
color: currentColor;
|
|
71
|
-
font-weight:
|
|
74
|
+
font-weight: tokens.$weight-semibold;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
a:not(.button) {
|
|
75
78
|
text-decoration: underline;
|
|
76
79
|
|
|
77
80
|
.theme-high-contrast & {
|
|
78
|
-
color:
|
|
81
|
+
color: tokens.$hyperlink;
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
&:hover {
|
|
@@ -87,7 +90,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
87
90
|
display: flex;
|
|
88
91
|
align-items: center;
|
|
89
92
|
justify-content: flex-start;
|
|
90
|
-
margin-block-end:
|
|
93
|
+
margin-block-end: tokens.$layout-1;
|
|
91
94
|
|
|
92
95
|
.icon {
|
|
93
96
|
flex-shrink: 0;
|
|
@@ -99,7 +102,7 @@ $notification-dismiss-margin: $spacer-2 !default;
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
.notification-dismiss {
|
|
102
|
-
@include dismiss-square;
|
|
105
|
+
@include mixins.dismiss-square;
|
|
103
106
|
|
|
104
107
|
grid-area: dismiss;
|
|
105
108
|
margin-inline-start: $notification-dismiss-margin;
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
3
|
|
|
4
|
-
$
|
|
5
|
-
$
|
|
4
|
+
$font-size-lg: tokens.$font-size-6 !default;
|
|
5
|
+
$font-size-sm: tokens.$font-size-8 !default;
|
|
6
|
+
|
|
7
|
+
$pagination-color: tokens.$text !default;
|
|
8
|
+
$pagination-border-color: tokens.$border !default;
|
|
6
9
|
$pagination-margin: 0.25rem !default;
|
|
7
10
|
|
|
8
|
-
$pagination-hover-color:
|
|
9
|
-
$pagination-hover-border-color:
|
|
11
|
+
$pagination-hover-color: tokens.$primary-hover !default;
|
|
12
|
+
$pagination-hover-border-color: tokens.$primary-hover !default;
|
|
10
13
|
|
|
11
|
-
$pagination-focus-color:
|
|
12
|
-
$pagination-focus-border-color:
|
|
14
|
+
$pagination-focus-color: tokens.$primary-active !default;
|
|
15
|
+
$pagination-focus-border-color: tokens.$primary-active !default;
|
|
13
16
|
|
|
14
|
-
$pagination-active-color:
|
|
15
|
-
$pagination-active-border-color:
|
|
17
|
+
$pagination-active-color: tokens.$primary-active !default;
|
|
18
|
+
$pagination-active-border-color: tokens.$primary-active !default;
|
|
16
19
|
|
|
17
|
-
$pagination-disabled-color:
|
|
18
|
-
$pagination-disabled-background-color:
|
|
19
|
-
$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;
|
|
20
23
|
|
|
21
|
-
$pagination-current-color:
|
|
22
|
-
$pagination-current-background-color:
|
|
23
|
-
$pagination-current-background-color-hover:
|
|
24
|
-
$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;
|
|
25
28
|
|
|
26
|
-
$pagination-ellipsis-color:
|
|
29
|
+
$pagination-ellipsis-color: tokens.$secondary !default;
|
|
27
30
|
|
|
28
|
-
$pagination-shadow-inset: inset 0 1px 2px
|
|
31
|
+
$pagination-shadow-inset: inset 0 1px 2px tokens.$box-shadow-color-light;
|
|
29
32
|
|
|
30
33
|
.pagination {
|
|
31
34
|
flex-wrap: wrap;
|
|
@@ -62,14 +65,14 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
|
|
65
|
-
@include forced-colors {
|
|
68
|
+
@include mixins.forced-colors {
|
|
66
69
|
&::after {
|
|
67
70
|
display: block;
|
|
68
71
|
position: absolute;
|
|
69
72
|
width: 0.375em;
|
|
70
73
|
height: 0.375em;
|
|
71
74
|
border: 1px solid LinkText;
|
|
72
|
-
border-radius:
|
|
75
|
+
border-radius: tokens.$border-radius-rounded;
|
|
73
76
|
background-color: LinkText;
|
|
74
77
|
content: '';
|
|
75
78
|
inset-block-start: 0.25em;
|
|
@@ -95,9 +98,9 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
95
98
|
.pagination-next,
|
|
96
99
|
.pagination-link,
|
|
97
100
|
.pagination-ellipsis {
|
|
98
|
-
@include control;
|
|
99
|
-
@include unselectable;
|
|
100
|
-
@include transparent-effects;
|
|
101
|
+
@include mixins.control;
|
|
102
|
+
@include mixins.unselectable;
|
|
103
|
+
@include mixins.transparent-effects;
|
|
101
104
|
|
|
102
105
|
justify-content: center;
|
|
103
106
|
font-size: 1em;
|
|
@@ -129,7 +132,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
.pagination-center {
|
|
132
|
-
@include orientation-landscape {
|
|
135
|
+
@include mixins.orientation-landscape {
|
|
133
136
|
.pagination-previous {
|
|
134
137
|
order: 1;
|
|
135
138
|
}
|
|
@@ -145,7 +148,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
|
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
@include tablet {
|
|
151
|
+
@include mixins.tablet {
|
|
149
152
|
.pagination-list {
|
|
150
153
|
flex-grow: 0;
|
|
151
154
|
flex-shrink: 1;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$persona-font-size-lg: $font-size-7 !default;
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
3
|
|
|
5
|
-
$persona-
|
|
6
|
-
$persona-
|
|
7
|
-
$persona-
|
|
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;
|
|
8
7
|
|
|
9
|
-
$persona-
|
|
10
|
-
$persona-
|
|
11
|
-
$persona-
|
|
12
|
-
$persona-name-font-weight: $weight-semibold !default;
|
|
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;
|
|
13
11
|
|
|
14
|
-
$persona-
|
|
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
|
+
|
|
17
|
+
$persona-gap-size: tokens.$layout-1 !default;
|
|
15
18
|
|
|
16
19
|
.persona {
|
|
17
20
|
display: flex;
|
|
18
21
|
position: relative;
|
|
19
22
|
gap: $persona-gap-size;
|
|
20
23
|
font-size: $persona-font-size-md;
|
|
21
|
-
line-height:
|
|
24
|
+
line-height: tokens.$line-height-normal;
|
|
22
25
|
|
|
23
26
|
.persona-avatar {
|
|
24
27
|
flex-shrink: 0;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
/* stylelint-disable max-nesting-depth, selector-max-specificity */
|
|
2
5
|
|
|
3
|
-
$popover-background-color:
|
|
4
|
-
$popover-border:
|
|
5
|
-
$popover-border-radius:
|
|
6
|
-
$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;
|
|
7
10
|
$popover-width: 224px !default;
|
|
8
11
|
|
|
9
|
-
$popover-chevron-color:
|
|
12
|
+
$popover-chevron-color: tokens.$border !default;
|
|
10
13
|
|
|
11
14
|
.popover {
|
|
12
15
|
display: inline-block;
|
|
@@ -23,7 +26,7 @@ $popover-chevron-color: $border !default;
|
|
|
23
26
|
.popover-content {
|
|
24
27
|
position: absolute;
|
|
25
28
|
width: $popover-width;
|
|
26
|
-
padding:
|
|
29
|
+
padding: tokens.$spacer-5;
|
|
27
30
|
transform: none;
|
|
28
31
|
inset-inline-start: 0;
|
|
29
32
|
border: $popover-border;
|
|
@@ -33,13 +36,13 @@ $popover-chevron-color: $border !default;
|
|
|
33
36
|
|
|
34
37
|
// hide popover until after position is calculated, then show
|
|
35
38
|
visibility: hidden;
|
|
36
|
-
z-index:
|
|
39
|
+
z-index: tokens.$zindex-popover;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
&.popover-top {
|
|
40
43
|
.popover-content {
|
|
41
44
|
inset-block-end: 100%;
|
|
42
|
-
margin-block-end:
|
|
45
|
+
margin-block-end: tokens.$spacer-3;
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -49,12 +52,12 @@ $popover-chevron-color: $border !default;
|
|
|
49
52
|
overflow: visible;
|
|
50
53
|
|
|
51
54
|
&::before {
|
|
52
|
-
@include chevron-up;
|
|
55
|
+
@include mixins.chevron-up;
|
|
53
56
|
|
|
54
57
|
position: absolute;
|
|
55
58
|
inset-inline-start: var(--caret-left, 50%);
|
|
56
59
|
inset-inline-end: auto;
|
|
57
|
-
inset-block-start: calc(
|
|
60
|
+
inset-block-start: calc(mixins.$chevron-arrow-size / -1.75);
|
|
58
61
|
border-color: $popover-chevron-color;
|
|
59
62
|
background-color: $popover-background-color;
|
|
60
63
|
z-index: 2;
|
|
@@ -73,17 +76,17 @@ $popover-chevron-color: $border !default;
|
|
|
73
76
|
&.popover-caret.popover-caret-bottom {
|
|
74
77
|
.popover-content {
|
|
75
78
|
margin-block-start: 0;
|
|
76
|
-
margin-block-end:
|
|
79
|
+
margin-block-end: tokens.$spacer-3;
|
|
77
80
|
overflow: visible;
|
|
78
81
|
|
|
79
82
|
&::before {
|
|
80
|
-
@include chevron-down;
|
|
83
|
+
@include mixins.chevron-down;
|
|
81
84
|
|
|
82
85
|
position: absolute;
|
|
83
86
|
inset-inline-start: var(--caret-left, 50%);
|
|
84
87
|
inset-inline-end: auto;
|
|
85
88
|
inset-block-start: auto;
|
|
86
|
-
inset-block-end: calc(
|
|
89
|
+
inset-block-end: calc(mixins.$chevron-arrow-size / -1.75);
|
|
87
90
|
border-color: $popover-chevron-color;
|
|
88
91
|
background-color: $popover-background-color;
|
|
89
92
|
z-index: 2;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$progress-bar-
|
|
5
|
-
$progress-bar-value-background-color
|
|
6
|
-
$progress-bar-
|
|
7
|
-
$progress-bar-
|
|
8
|
-
$progress-bar-
|
|
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;
|
|
9
12
|
$progress-bar-indeterminate-animation-duration: 2s !default;
|
|
10
13
|
|
|
11
14
|
.progress-bar {
|
|
@@ -98,12 +101,12 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
98
101
|
background-color: transparent;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
@include prefers-reduced-motion {
|
|
104
|
+
@include mixins.prefers-reduced-motion {
|
|
102
105
|
animation-duration: 0s;
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
|
|
106
|
-
@include forced-colors {
|
|
109
|
+
@include mixins.forced-colors {
|
|
107
110
|
background-color: CanvasText !important;
|
|
108
111
|
|
|
109
112
|
&::-webkit-progress-bar {
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
$sc-padding-sm: 0.5em 1em !default;
|
|
2
5
|
$sc-padding: 0.75em 1.25em !default;
|
|
3
6
|
$sc-padding-lg: 1em 1.5em !default;
|
|
4
7
|
|
|
5
|
-
$sc-font-color:
|
|
6
|
-
$sc-border:
|
|
7
|
-
$sc-border-radius-rounded:
|
|
8
|
-
$sc-hover-background-color:
|
|
9
|
-
$sc-hover-border:
|
|
10
|
-
$sc-hover-border-color:
|
|
11
|
-
$sc-active-hover-background-color:
|
|
12
|
-
$sc-active-hover-border-color:
|
|
13
|
-
$sc-active-background-color:
|
|
14
|
-
$sc-active-border-color:
|
|
15
|
-
$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;
|
|
16
19
|
|
|
17
20
|
.segmented-controls {
|
|
18
21
|
display: grid;
|
|
19
22
|
justify-content: center;
|
|
20
23
|
width: 100%;
|
|
21
|
-
grid-gap:
|
|
24
|
+
grid-gap: tokens.$spacer-3;
|
|
22
25
|
grid-template-columns: max-content auto max-content;
|
|
23
|
-
font-size:
|
|
26
|
+
font-size: tokens.$font-size-7;
|
|
24
27
|
white-space: nowrap;
|
|
25
28
|
|
|
26
29
|
.segmented-control-previous,
|
|
@@ -32,13 +35,13 @@ $sc-active-color: $text-invert !default;
|
|
|
32
35
|
border-radius: $sc-border-radius-rounded;
|
|
33
36
|
background-color: $sc-active-background-color;
|
|
34
37
|
color: $sc-active-color;
|
|
35
|
-
font-weight:
|
|
38
|
+
font-weight: tokens.$weight-semibold;
|
|
36
39
|
cursor: pointer;
|
|
37
40
|
|
|
38
41
|
&:hover {
|
|
39
42
|
background-color: $sc-active-hover-background-color;
|
|
40
43
|
|
|
41
|
-
@include forced-colors {
|
|
44
|
+
@include mixins.forced-colors {
|
|
42
45
|
border-color: Highlight;
|
|
43
46
|
background-color: Highlight;
|
|
44
47
|
color: HighlightText;
|
|
@@ -46,9 +49,9 @@ $sc-active-color: $text-invert !default;
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
@include focus-visible() {
|
|
50
|
-
outline-color:
|
|
51
|
-
outline-offset:
|
|
52
|
+
@include mixins.focus-visible() {
|
|
53
|
+
outline-color: tokens.$text-invert;
|
|
54
|
+
outline-offset: -(tokens.$focus-outline-offset);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
|
|
@@ -72,21 +75,21 @@ $sc-active-color: $text-invert !default;
|
|
|
72
75
|
border-radius: $sc-border-radius-rounded;
|
|
73
76
|
background-color: transparent;
|
|
74
77
|
color: $sc-font-color;
|
|
75
|
-
font-weight:
|
|
78
|
+
font-weight: tokens.$weight-semibold;
|
|
76
79
|
cursor: pointer;
|
|
77
80
|
appearance: none;
|
|
78
81
|
vertical-align: top;
|
|
79
82
|
|
|
80
|
-
@include focus-visible() {
|
|
81
|
-
outline-color:
|
|
82
|
-
outline-offset:
|
|
83
|
+
@include mixins.focus-visible() {
|
|
84
|
+
outline-color: tokens.$text-invert;
|
|
85
|
+
outline-offset: -(tokens.$focus-outline-offset);
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
&:hover {
|
|
86
89
|
background-color: $sc-hover-background-color;
|
|
87
|
-
z-index:
|
|
90
|
+
z-index: tokens.$zindex-hover;
|
|
88
91
|
|
|
89
|
-
@include forced-colors {
|
|
92
|
+
@include mixins.forced-colors {
|
|
90
93
|
background-color: Highlight !important;
|
|
91
94
|
color: HighlightText !important;
|
|
92
95
|
forced-color-adjust: none;
|
|
@@ -96,14 +99,14 @@ $sc-active-color: $text-invert !default;
|
|
|
96
99
|
&[aria-selected='true'] {
|
|
97
100
|
background-color: $sc-active-background-color;
|
|
98
101
|
color: $sc-active-color;
|
|
99
|
-
z-index:
|
|
102
|
+
z-index: tokens.$zindex-active;
|
|
100
103
|
|
|
101
104
|
&:hover {
|
|
102
105
|
background-color: $sc-active-hover-background-color;
|
|
103
|
-
z-index:
|
|
106
|
+
z-index: tokens.$zindex-hover;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
|
-
@include forced-colors {
|
|
109
|
+
@include mixins.forced-colors {
|
|
107
110
|
background-color: SelectedItem;
|
|
108
111
|
color: SelectedItemText;
|
|
109
112
|
forced-color-adjust: none;
|
|
@@ -111,7 +114,7 @@ $sc-active-color: $text-invert !default;
|
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
|
|
114
|
-
@include tablet {
|
|
117
|
+
@include mixins.tablet {
|
|
115
118
|
.segmented-control,
|
|
116
119
|
.segmented-previous,
|
|
117
120
|
.segmented-next {
|
|
@@ -119,7 +122,7 @@ $sc-active-color: $text-invert !default;
|
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
|
|
122
|
-
@include desktop {
|
|
125
|
+
@include mixins.desktop {
|
|
123
126
|
.segmented-control,
|
|
124
127
|
.segmented-previous,
|
|
125
128
|
.segmented-next {
|