@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,38 +1,40 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
2
4
|
|
|
3
|
-
$button-color:
|
|
4
|
-
$button-background-color:
|
|
5
|
+
$button-color: tokens.$text !default;
|
|
6
|
+
$button-background-color: tokens.$body-background !default;
|
|
5
7
|
|
|
6
|
-
$button-lg-font-size:
|
|
7
|
-
$button-sm-font-size:
|
|
8
|
+
$button-lg-font-size: tokens.$font-size-6 !default;
|
|
9
|
+
$button-sm-font-size: tokens.$font-size-8 !default;
|
|
8
10
|
|
|
9
11
|
$button-icon-font-size: 0.875em !default;
|
|
10
12
|
|
|
11
|
-
$button-border-color:
|
|
12
|
-
$button-border-width:
|
|
13
|
-
$button-border-radius:
|
|
13
|
+
$button-border-color: tokens.$control-border !default;
|
|
14
|
+
$button-border-width: mixins.$control-border-width !default;
|
|
15
|
+
$button-border-radius: mixins.$control-radius !default;
|
|
14
16
|
|
|
15
17
|
$button-padding-vertical: calc(0.375em - #{$button-border-width}) !default;
|
|
16
18
|
$button-padding-horizontal: 0.75em !default;
|
|
17
19
|
|
|
18
|
-
$button-hover-color:
|
|
19
|
-
$button-hover-border-color:
|
|
20
|
-
$button-hover-background-color:
|
|
20
|
+
$button-hover-color: tokens.$text !default;
|
|
21
|
+
$button-hover-border-color: tokens.$default-hover !default;
|
|
22
|
+
$button-hover-background-color: tokens.$default-hover-invert !default;
|
|
21
23
|
|
|
22
|
-
$button-disabled-background-color:
|
|
24
|
+
$button-disabled-background-color: tokens.$body-background-medium !default;
|
|
23
25
|
$button-disabled-shadow: none !default;
|
|
24
26
|
$button-disabled-opacity: 0.5 !default;
|
|
25
27
|
|
|
26
|
-
$button-selected-background-color:
|
|
27
|
-
$button-selected-border-color:
|
|
28
|
-
$button-selected-color:
|
|
28
|
+
$button-selected-background-color: tokens.$selected-background !default;
|
|
29
|
+
$button-selected-border-color: tokens.$selected-stroke !default;
|
|
30
|
+
$button-selected-color: tokens.$selected-foreground !default;
|
|
29
31
|
|
|
30
32
|
$button-icon-spacing: 0.375em !default;
|
|
31
|
-
$button-font-weight:
|
|
33
|
+
$button-font-weight: tokens.$weight-semibold !default;
|
|
32
34
|
|
|
33
35
|
.button {
|
|
34
|
-
@include control;
|
|
35
|
-
@include unselectable;
|
|
36
|
+
@include mixins.control;
|
|
37
|
+
@include mixins.unselectable;
|
|
36
38
|
|
|
37
39
|
justify-content: center;
|
|
38
40
|
padding-block: $button-padding-vertical;
|
|
@@ -114,23 +116,23 @@ $button-font-weight: $weight-semibold !default;
|
|
|
114
116
|
pointer-events: none;
|
|
115
117
|
|
|
116
118
|
&::after {
|
|
117
|
-
@include loader;
|
|
118
|
-
@include center(1em);
|
|
119
|
+
@include mixins.loader;
|
|
120
|
+
@include mixins.center(1em);
|
|
119
121
|
|
|
120
122
|
position: absolute !important;
|
|
121
|
-
border-block-end-color:
|
|
122
|
-
border-inline-start-color:
|
|
123
|
+
border-block-end-color: tokens.$text;
|
|
124
|
+
border-inline-start-color: tokens.$text;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
|
|
126
|
-
@each $name, $color-set in
|
|
127
|
-
$base: nth($color-set,
|
|
128
|
-
$dark: nth($color-set,
|
|
129
|
-
$background: nth($color-set,
|
|
130
|
-
$background-selected: nth($color-set,
|
|
131
|
-
$selected: nth($color-set,
|
|
132
|
-
$foreground-selected: nth($color-set,
|
|
133
|
-
$border-selected: nth($color-set,
|
|
128
|
+
@each $name, $color-set in tokens.$colors {
|
|
129
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
130
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
131
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
132
|
+
$background-selected: nth($color-set, tokens.$color-index-background-selected);
|
|
133
|
+
$selected: nth($color-set, tokens.$color-index-selected);
|
|
134
|
+
$foreground-selected: nth($color-set, tokens.$color-index-foreground-selected);
|
|
135
|
+
$border-selected: nth($color-set, tokens.$color-index-stroke-selected);
|
|
134
136
|
|
|
135
137
|
&.button-#{$name} {
|
|
136
138
|
@if $name == 'warning' {
|
|
@@ -165,7 +167,7 @@ $button-font-weight: $weight-semibold !default;
|
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
$button-clear-hover-background-color: transparentize(#8e8e8e, 0.95) !default;
|
|
168
|
-
$button-clear-selected-background-color:
|
|
170
|
+
$button-clear-selected-background-color: tokens.$selected-background-subtle !default;
|
|
169
171
|
|
|
170
172
|
.button.button-clear {
|
|
171
173
|
border-color: transparent;
|
|
@@ -194,13 +196,13 @@ $button-clear-selected-background-color: $selected-background-subtle !default;
|
|
|
194
196
|
color: $button-selected-color;
|
|
195
197
|
}
|
|
196
198
|
|
|
197
|
-
@each $name, $color-set in
|
|
198
|
-
$base: nth($color-set,
|
|
199
|
-
$dark: nth($color-set,
|
|
200
|
-
$background: nth($color-set,
|
|
201
|
-
$background-selected: nth($color-set,
|
|
202
|
-
$selected: nth($color-set,
|
|
203
|
-
$foreground-selected: nth($color-set,
|
|
199
|
+
@each $name, $color-set in tokens.$colors {
|
|
200
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
201
|
+
$dark: nth($color-set, tokens.$color-index-dark);
|
|
202
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
203
|
+
$background-selected: nth($color-set, tokens.$color-index-background-selected);
|
|
204
|
+
$selected: nth($color-set, tokens.$color-index-selected);
|
|
205
|
+
$foreground-selected: nth($color-set, tokens.$color-index-foreground-selected);
|
|
204
206
|
|
|
205
207
|
&.button-#{$name} {
|
|
206
208
|
color: $base;
|
|
@@ -230,10 +232,10 @@ $button-clear-selected-background-color: $selected-background-subtle !default;
|
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
|
|
233
|
-
$button-filled-background-color:
|
|
234
|
-
$button-filled-background-color-hover:
|
|
235
|
-
$button-filled-text-color:
|
|
236
|
-
$button-filled-background-color-selected:
|
|
235
|
+
$button-filled-background-color: tokens.$alternate-background-medium !default;
|
|
236
|
+
$button-filled-background-color-hover: tokens.$alternate-background !default;
|
|
237
|
+
$button-filled-text-color: tokens.$text-invert !default;
|
|
238
|
+
$button-filled-background-color-selected: tokens.$secondary-selected !default;
|
|
237
239
|
|
|
238
240
|
.button.button-filled {
|
|
239
241
|
border-color: $button-filled-background-color;
|
|
@@ -252,19 +254,19 @@ $button-filled-background-color-selected: $secondary-selected !default;
|
|
|
252
254
|
}
|
|
253
255
|
|
|
254
256
|
&.is-loading::after {
|
|
255
|
-
@include loader;
|
|
257
|
+
@include mixins.loader;
|
|
256
258
|
|
|
257
259
|
border-color: transparent transparent $button-filled-text-color $button-filled-text-color !important;
|
|
258
260
|
}
|
|
259
261
|
|
|
260
|
-
@each $name, $color-set in
|
|
261
|
-
$base: nth($color-set,
|
|
262
|
-
$hover: nth($color-set,
|
|
263
|
-
$active: nth($color-set,
|
|
264
|
-
$invert: nth($color-set,
|
|
265
|
-
$background: nth($color-set,
|
|
266
|
-
$selected: nth($color-set,
|
|
267
|
-
$selected-invert: nth($color-set,
|
|
262
|
+
@each $name, $color-set in tokens.$colors {
|
|
263
|
+
$base: nth($color-set, tokens.$color-index-base);
|
|
264
|
+
$hover: nth($color-set, tokens.$color-index-hover);
|
|
265
|
+
$active: nth($color-set, tokens.$color-index-active);
|
|
266
|
+
$invert: nth($color-set, tokens.$color-index-invert);
|
|
267
|
+
$background: nth($color-set, tokens.$color-index-background);
|
|
268
|
+
$selected: nth($color-set, tokens.$color-index-selected);
|
|
269
|
+
$selected-invert: nth($color-set, tokens.$color-index-foreground-selected-invert);
|
|
268
270
|
|
|
269
271
|
&.button-#{$name} {
|
|
270
272
|
border-color: $base;
|
|
@@ -285,13 +287,13 @@ $button-filled-background-color-selected: $secondary-selected !default;
|
|
|
285
287
|
}
|
|
286
288
|
|
|
287
289
|
&.is-selected.is-loading::after {
|
|
288
|
-
@include loader;
|
|
290
|
+
@include mixins.loader;
|
|
289
291
|
|
|
290
292
|
border-color: transparent transparent $selected-invert $selected-invert !important;
|
|
291
293
|
}
|
|
292
294
|
|
|
293
295
|
&.is-loading::after {
|
|
294
|
-
@include loader;
|
|
296
|
+
@include mixins.loader;
|
|
295
297
|
|
|
296
298
|
border-color: transparent transparent $invert $invert !important;
|
|
297
299
|
}
|
|
@@ -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-specificity, max-nesting-depth */
|
|
2
5
|
|
|
3
6
|
.buttons {
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
&.is-fullwidth-mobile {
|
|
29
32
|
margin-inline-end: 0;
|
|
30
33
|
|
|
31
|
-
@include tablet {
|
|
34
|
+
@include mixins.tablet {
|
|
32
35
|
margin-inline-end: 0.5rem;
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -45,13 +48,13 @@
|
|
|
45
48
|
&.buttons-addons {
|
|
46
49
|
.button {
|
|
47
50
|
&:not(:first-child) {
|
|
48
|
-
border-
|
|
49
|
-
border-
|
|
51
|
+
border-end-start-radius: 0;
|
|
52
|
+
border-start-start-radius: 0;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
&:not(:last-child) {
|
|
53
|
-
border-
|
|
54
|
-
border-
|
|
56
|
+
border-end-end-radius: 0;
|
|
57
|
+
border-start-end-radius: 0;
|
|
55
58
|
margin-inline-end: -1px;
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -61,25 +64,25 @@
|
|
|
61
64
|
|
|
62
65
|
&:hover,
|
|
63
66
|
&.is-hovered {
|
|
64
|
-
z-index:
|
|
67
|
+
z-index: tokens.$zindex-hover;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
&.is-focused,
|
|
68
71
|
&:active,
|
|
69
72
|
&.is-active,
|
|
70
73
|
&.is-selected {
|
|
71
|
-
z-index:
|
|
74
|
+
z-index: tokens.$zindex-focus;
|
|
72
75
|
|
|
73
76
|
&:hover {
|
|
74
|
-
z-index:
|
|
77
|
+
z-index: tokens.$zindex-multi;
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
@include focus-visible {
|
|
79
|
-
z-index:
|
|
81
|
+
@include mixins.focus-visible {
|
|
82
|
+
z-index: tokens.$zindex-focus;
|
|
80
83
|
|
|
81
84
|
&:hover {
|
|
82
|
-
z-index:
|
|
85
|
+
z-index: tokens.$zindex-multi;
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
|
package/src/components/card.scss
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$card-
|
|
5
|
-
$card-
|
|
6
|
-
$card-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$card-color: tokens.$text !default;
|
|
5
|
+
$card-shadow: tokens.$box-shadow-light;
|
|
6
|
+
$card-padding: tokens.$spacer-5;
|
|
7
|
+
$card-border-radius: tokens.$border-radius-sm;
|
|
8
|
+
$card-row-gap: tokens.$spacer-3 !default;
|
|
9
|
+
$card-column-gap: tokens.$spacer-5 !default;
|
|
7
10
|
|
|
8
11
|
.card {
|
|
9
12
|
display: flex;
|
|
@@ -12,10 +15,10 @@ $card-column-gap: $spacer-5 !default;
|
|
|
12
15
|
justify-content: flex-start;
|
|
13
16
|
max-width: 100%;
|
|
14
17
|
padding: $card-padding 0 0;
|
|
15
|
-
border: 1px solid
|
|
18
|
+
border: 1px solid tokens.$border-white-high-contrast;
|
|
16
19
|
border-radius: $card-border-radius;
|
|
17
|
-
outline-color:
|
|
18
|
-
background-color:
|
|
20
|
+
outline-color: tokens.$text;
|
|
21
|
+
background-color: tokens.$card-background;
|
|
19
22
|
color: $card-color;
|
|
20
23
|
box-shadow: $card-shadow;
|
|
21
24
|
|
|
@@ -33,7 +36,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
33
36
|
display: grid;
|
|
34
37
|
flex-grow: 1;
|
|
35
38
|
padding: $card-padding;
|
|
36
|
-
grid-template: auto / 1fr
|
|
39
|
+
grid-template: auto / 1fr tokens.$spacer-10;
|
|
37
40
|
gap: $card-row-gap $card-column-gap;
|
|
38
41
|
grid-template-areas:
|
|
39
42
|
'supertitle supertitle'
|
|
@@ -43,15 +46,15 @@ $card-column-gap: $spacer-5 !default;
|
|
|
43
46
|
/* stylelint-disable no-descending-specificity */
|
|
44
47
|
|
|
45
48
|
.card-title {
|
|
46
|
-
margin-block-end:
|
|
49
|
+
margin-block-end: tokens.$spacer-5;
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
.card-template-icon {
|
|
51
54
|
margin-block-start: auto;
|
|
52
55
|
grid-area: icon;
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
56
|
+
width: tokens.$spacer-10;
|
|
57
|
+
height: tokens.$spacer-10;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.card-template-detail {
|
|
@@ -59,7 +62,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
59
62
|
flex-direction: column;
|
|
60
63
|
align-self: stretch;
|
|
61
64
|
justify-content: flex-end;
|
|
62
|
-
font-size:
|
|
65
|
+
font-size: tokens.$font-size-9;
|
|
63
66
|
line-height: 1.25;
|
|
64
67
|
grid-area: detail;
|
|
65
68
|
}
|
|
@@ -75,7 +78,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
75
78
|
|
|
76
79
|
img,
|
|
77
80
|
svg {
|
|
78
|
-
@include overlay;
|
|
81
|
+
@include mixins.overlay;
|
|
79
82
|
|
|
80
83
|
display: block;
|
|
81
84
|
width: 100%;
|
|
@@ -98,10 +101,10 @@ $card-column-gap: $spacer-5 !default;
|
|
|
98
101
|
// optional prescriptive inner elements
|
|
99
102
|
|
|
100
103
|
.card-supertitle {
|
|
101
|
-
@include line-clamp(1);
|
|
104
|
+
@include mixins.line-clamp(1);
|
|
102
105
|
|
|
103
|
-
font-size:
|
|
104
|
-
letter-spacing:
|
|
106
|
+
font-size: tokens.$font-size-9;
|
|
107
|
+
letter-spacing: tokens.$letter-spacing-wide;
|
|
105
108
|
line-height: 1;
|
|
106
109
|
text-transform: uppercase;
|
|
107
110
|
grid-area: supertitle;
|
|
@@ -110,15 +113,15 @@ $card-column-gap: $spacer-5 !default;
|
|
|
110
113
|
// includes some resets for <a> and <button>
|
|
111
114
|
|
|
112
115
|
.card-title {
|
|
113
|
-
@include line-clamp(3);
|
|
116
|
+
@include mixins.line-clamp(3);
|
|
114
117
|
|
|
115
118
|
flex-grow: 1;
|
|
116
119
|
margin: 0;
|
|
117
120
|
padding: 0;
|
|
118
121
|
border: none;
|
|
119
|
-
color:
|
|
120
|
-
font-size:
|
|
121
|
-
font-weight:
|
|
122
|
+
color: tokens.$primary;
|
|
123
|
+
font-size: tokens.$font-size-7;
|
|
124
|
+
font-weight: tokens.$weight-semibold;
|
|
122
125
|
line-height: 1.25;
|
|
123
126
|
text-align: start;
|
|
124
127
|
text-decoration: none;
|
|
@@ -134,7 +137,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
&:visited {
|
|
137
|
-
color:
|
|
140
|
+
color: tokens.$visited;
|
|
138
141
|
}
|
|
139
142
|
}
|
|
140
143
|
|
|
@@ -156,11 +159,11 @@ $card-column-gap: $spacer-5 !default;
|
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
.card-content-description {
|
|
159
|
-
@include line-clamp(4);
|
|
162
|
+
@include mixins.line-clamp(4);
|
|
160
163
|
|
|
161
164
|
max-height: inherit;
|
|
162
165
|
padding-block-end: 0;
|
|
163
|
-
font-size:
|
|
166
|
+
font-size: tokens.$font-size-8;
|
|
164
167
|
line-height: 1.25;
|
|
165
168
|
}
|
|
166
169
|
|
|
@@ -168,7 +171,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
168
171
|
display: flex;
|
|
169
172
|
flex-wrap: nowrap;
|
|
170
173
|
justify-content: space-between;
|
|
171
|
-
border-block-start: 1px solid
|
|
174
|
+
border-block-start: 1px solid tokens.$border;
|
|
172
175
|
margin-inline: $card-padding;
|
|
173
176
|
|
|
174
177
|
// Artificial alignment of card item, intended for use on when there's only a single .card-footer-items
|
|
@@ -232,14 +235,14 @@ $card-column-gap: $spacer-5 !default;
|
|
|
232
235
|
}
|
|
233
236
|
}
|
|
234
237
|
|
|
235
|
-
@include tablet {
|
|
238
|
+
@include mixins.tablet {
|
|
236
239
|
&.card-horizontal {
|
|
237
240
|
flex-flow: row wrap;
|
|
238
241
|
|
|
239
242
|
.card-content {
|
|
240
243
|
padding-inline-start: 0;
|
|
241
244
|
max-width: calc(100% - 7rem);
|
|
242
|
-
padding-inline-end:
|
|
245
|
+
padding-inline-end: tokens.$spacer-10 + tokens.$spacer-5;
|
|
243
246
|
}
|
|
244
247
|
|
|
245
248
|
.card-footer {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
@use './button.scss' as button;
|
|
4
|
+
|
|
5
|
+
$code-block-font-size: tokens.$font-size-8 !default;
|
|
6
|
+
$code-block-border-color: tokens.$code-block-border !default;
|
|
7
|
+
$code-block-border-width: tokens.$border-width !default;
|
|
8
|
+
$code-block-border-radius: tokens.$border-radius !default;
|
|
5
9
|
|
|
6
10
|
$code-block-header-min-height: 2rem !default;
|
|
7
|
-
$code-block-header-color:
|
|
8
|
-
$code-block-header-background-color:
|
|
9
|
-
$code-block-header-font-weight:
|
|
10
|
-
$code-block-header-gap:
|
|
11
|
-
$code-block-header-padding-vertical:
|
|
12
|
-
$code-block-header-padding-horizontal:
|
|
11
|
+
$code-block-header-color: tokens.$text !default;
|
|
12
|
+
$code-block-header-background-color: tokens.$code-header !default;
|
|
13
|
+
$code-block-header-font-weight: tokens.$weight-semibold !default;
|
|
14
|
+
$code-block-header-gap: tokens.$spacer-2 !default;
|
|
15
|
+
$code-block-header-padding-vertical: tokens.$spacer-1 !default;
|
|
16
|
+
$code-block-header-padding-horizontal: tokens.$spacer-4 tokens.$spacer-3 !default;
|
|
13
17
|
|
|
14
|
-
$code-block-control-padding: calc(0.125em - #{
|
|
18
|
+
$code-block-control-padding: calc(0.125em - #{button.$button-border-width}) !default;
|
|
15
19
|
|
|
16
20
|
.code-block {
|
|
17
21
|
position: relative;
|
|
@@ -33,7 +37,7 @@ $code-block-control-padding: calc(0.125em - #{$button-border-width}) !default;
|
|
|
33
37
|
padding-block: $code-block-header-padding-vertical;
|
|
34
38
|
padding-inline: $code-block-header-padding-horizontal;
|
|
35
39
|
|
|
36
|
-
@include tablet {
|
|
40
|
+
@include mixins.tablet {
|
|
37
41
|
flex-wrap: nowrap;
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -49,14 +53,14 @@ $code-block-control-padding: calc(0.125em - #{$button-border-width}) !default;
|
|
|
49
53
|
.button {
|
|
50
54
|
min-height: auto;
|
|
51
55
|
outline-color: currentColor;
|
|
52
|
-
outline-offset:
|
|
53
|
-
font-size:
|
|
56
|
+
outline-offset: -(tokens.$focus-width);
|
|
57
|
+
font-size: button.$button-sm-font-size;
|
|
54
58
|
padding-block: $code-block-control-padding;
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
.code-block-body {
|
|
60
|
-
@include code-block(true);
|
|
64
|
+
@include mixins.code-block(true);
|
|
61
65
|
}
|
|
62
66
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
@use '../../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
/* stylelint-disable selector-max-specificity, max-nesting-depth, selector-no-qualifying-type */
|
|
2
5
|
|
|
3
|
-
$checkbox-border-radius:
|
|
6
|
+
$checkbox-border-radius: tokens.$border-radius !default;
|
|
4
7
|
$checkbox-border-width: 0.0625em !default;
|
|
5
|
-
$checkbox-unchecked-border-color:
|
|
6
|
-
$checkbox-invalid-border-color:
|
|
7
|
-
$checkbox-color:
|
|
8
|
-
$checkbox-check-color:
|
|
9
|
-
$checkbox-check-hover-color:
|
|
8
|
+
$checkbox-unchecked-border-color: tokens.$control-border !default;
|
|
9
|
+
$checkbox-invalid-border-color: tokens.$danger !default;
|
|
10
|
+
$checkbox-color: tokens.$primary !default;
|
|
11
|
+
$checkbox-check-color: tokens.$primary-invert !default;
|
|
12
|
+
$checkbox-check-hover-color: tokens.$text-subtle !default;
|
|
10
13
|
$checkbox-size: 1.25em !default;
|
|
11
14
|
$checkbox-check-height: 0.75em !default;
|
|
12
15
|
$checkbox-check-top: 0.125em !default;
|
|
13
16
|
$checkbox-check-width: 0.3125em !default;
|
|
14
17
|
$checkbox-check-thickness: 0.125em !default;
|
|
15
|
-
$checkbox-timing-function:
|
|
16
|
-
$checkbox-duration:
|
|
17
|
-
$checkbox-spacing:
|
|
18
|
+
$checkbox-timing-function: tokens.$input-timing-function !default;
|
|
19
|
+
$checkbox-duration: tokens.$input-transition-duration !default;
|
|
20
|
+
$checkbox-spacing: tokens.$spacer-3 !default;
|
|
18
21
|
|
|
19
22
|
@mixin checkmark {
|
|
20
23
|
display: block;
|
|
@@ -63,15 +66,15 @@ $checkbox-spacing: $spacer-3 !default;
|
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
&.checkbox-sm {
|
|
66
|
-
@include control-sm;
|
|
69
|
+
@include mixins.control-sm;
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
&.checkbox-lg {
|
|
70
|
-
@include control-lg;
|
|
73
|
+
@include mixins.control-lg;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
input[type='checkbox'] {
|
|
74
|
-
@include visually-hidden();
|
|
77
|
+
@include mixins.visually-hidden();
|
|
75
78
|
|
|
76
79
|
&:checked + .checkbox-check {
|
|
77
80
|
border-color: $checkbox-color;
|
|
@@ -96,7 +99,7 @@ $checkbox-spacing: $spacer-3 !default;
|
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
@include focus-visible {
|
|
102
|
+
@include mixins.focus-visible {
|
|
100
103
|
+ .checkbox-check {
|
|
101
104
|
@extend %focus;
|
|
102
105
|
}
|
|
@@ -106,11 +109,11 @@ $checkbox-spacing: $spacer-3 !default;
|
|
|
106
109
|
&.checkbox-muted {
|
|
107
110
|
input[type='checkbox'] {
|
|
108
111
|
&:checked + .checkbox-check {
|
|
109
|
-
border-color:
|
|
110
|
-
background-color:
|
|
112
|
+
border-color: tokens.$text-subtle;
|
|
113
|
+
background-color: tokens.$text-subtle;
|
|
111
114
|
|
|
112
115
|
&::before {
|
|
113
|
-
border-color:
|
|
116
|
+
border-color: tokens.$text-invert;
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
+
@use '../../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../../mixins/index.scss' as mixins;
|
|
3
|
+
@use './label.scss' as label;
|
|
4
|
+
|
|
1
5
|
/* stylelint-disable max-nesting-depth, selector-max-specificity */
|
|
2
6
|
|
|
3
7
|
$field-line-height: 1.5 !default;
|
|
4
|
-
$field-error-color:
|
|
8
|
+
$field-error-color: tokens.$danger !default;
|
|
5
9
|
|
|
6
10
|
.field {
|
|
7
11
|
&:not(:last-child) {
|
|
8
|
-
margin-block-end:
|
|
12
|
+
margin-block-end: tokens.$spacer-4;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
.field-description {
|
|
12
|
-
margin-block-end:
|
|
13
|
-
font-size:
|
|
16
|
+
margin-block-end: tokens.$spacer-3;
|
|
17
|
+
font-size: tokens.$font-size-8;
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
.field-label {
|
|
17
|
-
@include label;
|
|
21
|
+
@include label.label;
|
|
18
22
|
|
|
19
|
-
margin-block-end:
|
|
23
|
+
margin-block-end: tokens.$spacer-3;
|
|
20
24
|
|
|
21
25
|
&.field-label-inline {
|
|
22
26
|
display: inline-flex;
|
|
@@ -24,16 +28,16 @@ $field-error-color: $danger !default;
|
|
|
24
28
|
align-self: flex-end;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
@include tablet {
|
|
31
|
+
@include mixins.tablet {
|
|
28
32
|
flex: 1 0 0;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
&.field-label-sm {
|
|
32
|
-
font-size:
|
|
36
|
+
font-size: tokens.$font-size-8;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
&.field-label-lg {
|
|
36
|
-
font-size:
|
|
40
|
+
font-size: tokens.$font-size-6;
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -43,7 +47,7 @@ $field-error-color: $danger !default;
|
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
&:not(:first-child) {
|
|
46
|
-
margin-block-start:
|
|
50
|
+
margin-block-start: tokens.$spacer-3;
|
|
47
51
|
|
|
48
52
|
&.field-body-inline {
|
|
49
53
|
display: inline-flex;
|
|
@@ -54,14 +58,14 @@ $field-error-color: $danger !default;
|
|
|
54
58
|
|
|
55
59
|
.field-error {
|
|
56
60
|
color: $field-error-color;
|
|
57
|
-
font-size:
|
|
61
|
+
font-size: tokens.$font-size-8;
|
|
58
62
|
line-height: $field-line-height;
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
.required-indicator::after,
|
|
63
67
|
::part(required-indicator)::after {
|
|
64
|
-
color:
|
|
68
|
+
color: tokens.$danger;
|
|
65
69
|
content: '*';
|
|
66
70
|
vertical-align: top;
|
|
67
71
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$help-
|
|
1
|
+
@use '../../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
4
|
+
$help-color: tokens.$text !default;
|
|
5
|
+
$help-danger-color: tokens.$danger !default;
|
|
6
|
+
$help-success-color: tokens.$success !default;
|
|
7
|
+
$help-font-size: tokens.$font-size-8 !default;
|
|
5
8
|
|
|
6
9
|
.help {
|
|
7
10
|
display: block;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
1
|
+
@forward './label.scss';
|
|
2
|
+
@forward './help.scss';
|
|
3
|
+
@forward './checkbox.scss';
|
|
4
|
+
@forward './input.scss';
|
|
5
|
+
@forward './textarea.scss';
|
|
6
|
+
@forward './select.scss';
|
|
7
|
+
@forward './radio.scss';
|
|
8
|
+
@forward './form.scss';
|