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