@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
package/src/core/focus.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
@if (
|
|
4
|
+
@if (tokens.$focus-visible-use-polyfill) {
|
|
5
5
|
.js-focus-visible .has-default-focus *:focus:not(.focus-visible),
|
|
6
6
|
.js-focus-visible .default-focus *:focus:not(.focus-visible) {
|
|
7
7
|
outline: none;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
.focus-visible.has-inner-focus,
|
|
11
11
|
.focus-visible.inner-focus {
|
|
12
|
-
outline-offset:
|
|
12
|
+
outline-offset: -(tokens.$focus-width);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.has-default-focus,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
&.has-inner-focus,
|
|
33
33
|
&.inner-focus {
|
|
34
34
|
outline-color: currentColor;
|
|
35
|
-
outline-offset:
|
|
35
|
+
outline-offset: -(tokens.$focus-width);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
&.has-inner-focus,
|
|
44
44
|
&.inner-focus {
|
|
45
45
|
outline-color: currentColor;
|
|
46
|
-
outline-offset:
|
|
46
|
+
outline-offset: -(tokens.$focus-width);
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/core/font-stack.scss
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
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
|
html {
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: tokens.$document-font-size;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
html,
|
|
9
9
|
body {
|
|
10
|
-
font-family:
|
|
10
|
+
font-family: tokens.$normal-font-stack;
|
|
11
11
|
-webkit-font-smoothing: antialiased;
|
|
12
|
-
font-weight:
|
|
12
|
+
font-weight: tokens.$weight-normal;
|
|
13
13
|
text-rendering: optimizeLegibility;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
kbd,
|
|
17
17
|
pre,
|
|
18
18
|
samp {
|
|
19
|
-
font-family:
|
|
19
|
+
font-family: tokens.$monospace-font-stack !important;
|
|
20
20
|
-moz-osx-font-smoothing: auto;
|
|
21
21
|
-webkit-font-smoothing: auto;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
code {
|
|
25
25
|
direction: ltr;
|
|
26
|
-
font-family:
|
|
26
|
+
font-family: tokens.$monospace-font-stack;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
a > code {
|
|
30
|
-
font-family:
|
|
30
|
+
font-family: tokens.$normal-font-stack;
|
|
31
31
|
}
|
package/src/core/minireset.scss
CHANGED
package/src/core/normalize.scss
CHANGED
package/src/core/themes.scss
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../tokens/index.scss' as
|
|
3
|
-
@use '../mixins/index.scss' as
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
4
4
|
|
|
5
5
|
$root-theme: 'light' !default;
|
|
6
6
|
$print-theme: 'light' !default;
|
|
7
7
|
|
|
8
8
|
// Ensure that the root theme exists
|
|
9
|
-
@if map.has-key(
|
|
10
|
-
@error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in
|
|
9
|
+
@if map.has-key(tokens.$themes, $root-theme) != true {
|
|
10
|
+
@error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in tokens.$themes map.";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// Ensure that the print theme exists
|
|
14
|
-
@if map.has-key(
|
|
15
|
-
@error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in
|
|
14
|
+
@if map.has-key(tokens.$themes, $print-theme) != true {
|
|
15
|
+
@error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in tokens.$themes map.";
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
$theme-names: map.keys(
|
|
18
|
+
$theme-names: map.keys(tokens.$themes);
|
|
19
19
|
|
|
20
20
|
// Validation: ensure that all values in the root theme are in the other themes too
|
|
21
|
-
@each $root-color-name, $val in map.get(
|
|
21
|
+
@each $root-color-name, $val in map.get(tokens.$themes, $root-theme) {
|
|
22
22
|
@each $theme-name in $theme-names {
|
|
23
23
|
@if $theme-name != $root-theme {
|
|
24
|
-
@if map.has-key(map.get(
|
|
24
|
+
@if map.has-key(map.get(tokens.$themes, $theme-name), $root-color-name) != true {
|
|
25
25
|
@error '#{$root-color-name} from #{$root-theme} does not exist in theme: #{$theme-name}.';
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -30,10 +30,10 @@ $theme-names: map.keys($themes);
|
|
|
30
30
|
|
|
31
31
|
// Validation: ensure all properties in non-root themes exist in root
|
|
32
32
|
@each $theme-name in $theme-names {
|
|
33
|
-
$theme: map.get(
|
|
33
|
+
$theme: map.get(tokens.$themes, $theme-name);
|
|
34
34
|
|
|
35
35
|
@if $theme-name != $root-theme {
|
|
36
|
-
$root: map.get(
|
|
36
|
+
$root: map.get(tokens.$themes, $root-theme);
|
|
37
37
|
|
|
38
38
|
@each $color-name, $val in $theme {
|
|
39
39
|
@if map.has-key($root, $color-name) != true {
|
|
@@ -43,11 +43,11 @@ $theme-names: map.keys($themes);
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
@each $key, $value in
|
|
46
|
+
@each $key, $value in tokens.$themes {
|
|
47
47
|
// Set the default theme
|
|
48
48
|
@if $key == $root-theme {
|
|
49
49
|
:root {
|
|
50
|
-
@each $colorName, $colorVal in map.get(
|
|
50
|
+
@each $colorName, $colorVal in map.get(tokens.$themes, $key) {
|
|
51
51
|
// stylelint-disable-next-line custom-property-pattern
|
|
52
52
|
--theme-#{$colorName}: #{$colorVal};
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ $theme-names: map.keys($themes);
|
|
|
56
56
|
|
|
57
57
|
@if $key == $print-theme {
|
|
58
58
|
.theme-#{$key} {
|
|
59
|
-
@each $colorName, $colorVal in map.get(
|
|
59
|
+
@each $colorName, $colorVal in map.get(tokens.$themes, $key) {
|
|
60
60
|
// stylelint-disable-next-line custom-property-pattern
|
|
61
61
|
--theme-#{$colorName}: #{$colorVal};
|
|
62
62
|
}
|
|
@@ -65,7 +65,7 @@ $theme-names: map.keys($themes);
|
|
|
65
65
|
// Set the rest of the themes, exclude them from print styling.
|
|
66
66
|
@media not print {
|
|
67
67
|
.theme-#{$key} {
|
|
68
|
-
@each $colorName, $colorVal in map-get(
|
|
68
|
+
@each $colorName, $colorVal in map-get(tokens.$themes, $key) {
|
|
69
69
|
// stylelint-disable-next-line custom-property-pattern
|
|
70
70
|
--theme-#{$colorName}: #{$colorVal};
|
|
71
71
|
}
|
|
@@ -77,18 +77,18 @@ $theme-names: map.keys($themes);
|
|
|
77
77
|
// End validation
|
|
78
78
|
|
|
79
79
|
%theme-base-styles {
|
|
80
|
-
outline-color:
|
|
81
|
-
background-color:
|
|
82
|
-
color:
|
|
80
|
+
outline-color: tokens.$text;
|
|
81
|
+
background-color: tokens.$body-background;
|
|
82
|
+
color: tokens.$text;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
@each $key, $value in
|
|
85
|
+
@each $key, $value in tokens.$themes {
|
|
86
86
|
.theme-#{$key} {
|
|
87
87
|
@extend %theme-base-styles;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
@each $key, $value in
|
|
91
|
+
@each $key, $value in tokens.$color-schemes {
|
|
92
92
|
.theme-#{$key} {
|
|
93
93
|
color-scheme: #{$value};
|
|
94
94
|
}
|
package/src/mixins/center.scss
CHANGED
package/src/mixins/chevron.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use './control.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use './control.scss' as control;
|
|
3
3
|
|
|
4
|
-
$chevron-color:
|
|
4
|
+
$chevron-color: tokens.$text !default;
|
|
5
5
|
$chevron-arrow-size: 0.525em !default;
|
|
6
6
|
$chevron-arrow-border-width: 1px !default;
|
|
7
7
|
$chevron-arrow-actual-width: 0.75em !default;
|
|
@@ -22,8 +22,8 @@ $chevron-up-rotate-scale-xy-rtl: $chevron-down-rotate-rtl scaleY(-1) scaleX(-1);
|
|
|
22
22
|
border-inline-end: 0;
|
|
23
23
|
pointer-events: none;
|
|
24
24
|
content: ' ';
|
|
25
|
-
z-index:
|
|
26
|
-
inset-inline-end:
|
|
25
|
+
z-index: tokens.$zindex-active;
|
|
26
|
+
inset-inline-end: control.$control-padding-horizontal;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@mixin chevron-right {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
2
|
|
|
3
|
-
$code-block-pre-font-size:
|
|
3
|
+
$code-block-pre-font-size: tokens.$font-size-8 !default;
|
|
4
4
|
$code-block-pre-spacing: 1em !default;
|
|
5
5
|
$code-block-pre-line-height: 1.3571 !default;
|
|
6
|
-
$code-block-pre-border-color:
|
|
7
|
-
$code-block-pre-border-width:
|
|
8
|
-
$code-block-pre-border-radius:
|
|
9
|
-
$code-block-pre-background-color:
|
|
6
|
+
$code-block-pre-border-color: tokens.$code-block-border !default;
|
|
7
|
+
$code-block-pre-border-width: tokens.$border-width !default;
|
|
8
|
+
$code-block-pre-border-radius: tokens.$border-radius !default;
|
|
9
|
+
$code-block-pre-background-color: tokens.$code-block !default;
|
|
10
10
|
|
|
11
|
-
$code-block-pre-padding:
|
|
11
|
+
$code-block-pre-padding: tokens.$spacer-4 !default;
|
|
12
12
|
|
|
13
13
|
@mixin code-block($code-block-component: false) {
|
|
14
14
|
@if $code-block-component == true {
|
|
@@ -22,7 +22,7 @@ $code-block-pre-padding: $spacer-4 !default;
|
|
|
22
22
|
margin: 0;
|
|
23
23
|
padding: $code-block-pre-padding;
|
|
24
24
|
outline-color: currentColor;
|
|
25
|
-
outline-offset:
|
|
25
|
+
outline-offset: -(tokens.$focus-width);
|
|
26
26
|
font-size: $code-block-pre-font-size;
|
|
27
27
|
-moz-osx-font-smoothing: auto;
|
|
28
28
|
-webkit-font-smoothing: auto;
|
|
@@ -55,7 +55,7 @@ $code-block-pre-padding: $spacer-4 !default;
|
|
|
55
55
|
min-height: 18.9px; // Allow for highlighting of blank lines.
|
|
56
56
|
margin: 0 $code-block-pre-spacing * -1;
|
|
57
57
|
padding: 0 $code-block-pre-spacing;
|
|
58
|
-
color:
|
|
58
|
+
color: tokens.$text;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
package/src/mixins/colors.scss
CHANGED
package/src/mixins/control.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
2
|
|
|
3
|
-
$control-radius:
|
|
3
|
+
$control-radius: tokens.$border-radius !default;
|
|
4
4
|
|
|
5
|
-
$control-font-size:
|
|
6
|
-
$control-sm-font-size:
|
|
7
|
-
$control-lg-font-size:
|
|
5
|
+
$control-font-size: tokens.$font-size-7 !default;
|
|
6
|
+
$control-sm-font-size: tokens.$font-size-8 !default;
|
|
7
|
+
$control-lg-font-size: tokens.$font-size-6 !default;
|
|
8
8
|
|
|
9
9
|
$control-border-width: 1px !default;
|
|
10
10
|
|
package/src/mixins/dismiss.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use './transparency.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use './transparency.scss' as transparency;
|
|
3
3
|
|
|
4
4
|
%dismiss {
|
|
5
|
-
@include transparent-effects;
|
|
5
|
+
@include transparency.transparent-effects;
|
|
6
6
|
|
|
7
7
|
display: inline-block;
|
|
8
8
|
color: currentColor;
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
height: 1em;
|
|
22
22
|
padding: 0;
|
|
23
23
|
border: 0;
|
|
24
|
-
border-radius:
|
|
24
|
+
border-radius: tokens.$border-radius-rounded;
|
|
25
25
|
}
|
package/src/mixins/focus.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
2
|
|
|
3
3
|
// stylelint-disable declaration-block-no-redundant-longhand-properties
|
|
4
4
|
@mixin focus() {
|
|
5
5
|
outline-color: inherit;
|
|
6
|
-
outline-offset:
|
|
7
|
-
outline-style:
|
|
8
|
-
outline-width:
|
|
6
|
+
outline-offset: tokens.$focus-outline-offset;
|
|
7
|
+
outline-style: tokens.$focus-style;
|
|
8
|
+
outline-width: tokens.$focus-width;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
%focus {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@mixin focus-visible {
|
|
16
|
-
@if (
|
|
16
|
+
@if (tokens.$focus-visible-use-polyfill) {
|
|
17
17
|
&.focus-visible {
|
|
18
18
|
@content;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
@use '../tokens/index.scss' as
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
3
|
|
|
4
4
|
/* stylelint-disable */
|
|
5
5
|
|
|
@@ -17,16 +17,16 @@ $font-size-scaling-factor: 0.75 !default;
|
|
|
17
17
|
// font-size to start scaling from
|
|
18
18
|
$start-rem: max($end-rem * $font-size-scaling-factor, 1rem),
|
|
19
19
|
// viewport width to stop scaling at
|
|
20
|
-
$end-width:
|
|
20
|
+
$end-width: tokens.$breakpoint-desktop,
|
|
21
21
|
// viewport width to start scaling from
|
|
22
22
|
$start-width: 480px
|
|
23
23
|
) {
|
|
24
24
|
$m: math.div(
|
|
25
25
|
strip-units($end-rem) - strip-units($start-rem),
|
|
26
26
|
strip-units($end-width) - strip-units($start-width)
|
|
27
|
-
) * strip-units(
|
|
27
|
+
) * strip-units(tokens.$document-font-size);
|
|
28
28
|
|
|
29
|
-
$y: strip-units($start-rem) * strip-units(
|
|
29
|
+
$y: strip-units($start-rem) * strip-units(tokens.$document-font-size);
|
|
30
30
|
$x: strip-units($start-width);
|
|
31
31
|
$b: $y - $m * $x;
|
|
32
32
|
$importantValue: if($important, !important, '');
|
package/src/mixins/gradient.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
2
|
-
@use './media-queries.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use './media-queries.scss' as media-queries;
|
|
3
3
|
|
|
4
4
|
%layout-gap {
|
|
5
|
-
padding-inline:
|
|
5
|
+
padding-inline: tokens.$layout-gap;
|
|
6
6
|
|
|
7
|
-
@include widescreen {
|
|
8
|
-
padding-inline:
|
|
7
|
+
@include media-queries.widescreen {
|
|
8
|
+
padding-inline: tokens.$layout-widescreen-gap;
|
|
9
9
|
}
|
|
10
10
|
}
|
package/src/mixins/loader.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
2
|
|
|
3
3
|
%loader {
|
|
4
4
|
display: block;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
width: 1em;
|
|
7
7
|
height: 1em;
|
|
8
8
|
animation: spinAround 500ms infinite linear;
|
|
9
|
-
border: 2px solid
|
|
10
|
-
border-radius:
|
|
9
|
+
border: 2px solid tokens.$border;
|
|
10
|
+
border-radius: tokens.$border-radius-rounded;
|
|
11
11
|
border-block-start-color: transparent;
|
|
12
12
|
border-inline-end-color: transparent;
|
|
13
13
|
content: '';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../tokens/index.scss' as
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
2
|
|
|
3
3
|
// Orientation
|
|
4
4
|
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
// Mobile-first screen size media queries
|
|
27
27
|
|
|
28
28
|
@mixin tablet {
|
|
29
|
-
@media screen and (min-width:
|
|
29
|
+
@media screen and (min-width: tokens.$breakpoint-tablet), print {
|
|
30
30
|
@content;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@mixin desktop {
|
|
35
|
-
@media screen and (min-width:
|
|
35
|
+
@media screen and (min-width: tokens.$breakpoint-desktop) {
|
|
36
36
|
@content;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@mixin widescreen {
|
|
41
|
-
@media screen and (min-width:
|
|
41
|
+
@media screen and (min-width: tokens.$breakpoint-widescreen) {
|
|
42
42
|
@content;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// Please avoid using this mixin if possible. It doesn't follow the mobile-first approach to writing CSS.
|
|
47
47
|
@mixin discouraged-mobile {
|
|
48
|
-
@media screen and (max-width: (
|
|
48
|
+
@media screen and (max-width: (tokens.$breakpoint-tablet - 1px)) {
|
|
49
49
|
@content;
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/mixins/overlay.scss
CHANGED
package/src/tokens/colors.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use './palette.scss' as
|
|
1
|
+
@use './palette.scss' as palette;
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @sass-export-section="colors"
|
|
@@ -26,7 +26,7 @@ $alternate-background-medium: var(--theme-alternate-background-medium);
|
|
|
26
26
|
|
|
27
27
|
$overlay: var(--theme-overlay);
|
|
28
28
|
$overlay-invert: var(--theme-overlay-invert);
|
|
29
|
-
$overlay-static:
|
|
29
|
+
$overlay-static: palette.$palette-black-opacity-50;
|
|
30
30
|
$border: var(--theme-border);
|
|
31
31
|
$border-accent: var(--theme-border-accent);
|
|
32
32
|
|
package/src/tokens/layout.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use './breakpoints.scss' as
|
|
1
|
+
@use './breakpoints.scss' as breakpoints;
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @sass-export-section="layout"
|
|
@@ -9,7 +9,7 @@ $large-column-gap: 1.5rem !default;
|
|
|
9
9
|
$reading-max-width: 50rem !default;
|
|
10
10
|
|
|
11
11
|
$layout-gap: 24px !default;
|
|
12
|
-
$layout-widescreen-width:
|
|
12
|
+
$layout-widescreen-width: breakpoints.$breakpoint-widescreen - $layout-gap * 2 !default;
|
|
13
13
|
$layout-widescreen-gap: max(
|
|
14
14
|
$layout-gap,
|
|
15
15
|
calc(50% - #{$layout-widescreen-width} / 2)
|
|
@@ -22,7 +22,5 @@ $layout-flyout-width-name: '--layout-flyout-width' !default;
|
|
|
22
22
|
$layout-flyout-width-desktop-custom-property-name: '--layout-flyout-width-desktop' !default;
|
|
23
23
|
$layout-flyout-width-widescreen-custom-property-name: '--layout-flyout-width-widescreen' !default;
|
|
24
24
|
$layout-menu-collapsed-width-name: '--layout-menu-collapsed-width' !default;
|
|
25
|
-
$layout-menu-collapsed-spacer-
|
|
26
|
-
$layout-menu-max-width-name: '--layout-menu-max-width' !default;
|
|
27
|
-
$layout-aside-max-width-name: '--layout-aside-max-width' !default;
|
|
25
|
+
$layout-menu-collapsed-width-widescreen-spacer-width-name: '--layout-menu-collapsed-width-widescreen' !default;
|
|
28
26
|
//@end-sass-export-section
|
package/src/tokens/shadow.scss
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@use './colors.scss' as
|
|
1
|
+
@use './colors.scss' as colors;
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @sass-export-section="shadow"
|
|
5
5
|
*/
|
|
6
|
-
$box-shadow-light: 0 1.6px 3.6px 0
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
$box-shadow-light: 0 1.6px 3.6px 0 colors.$box-shadow-color-medium,
|
|
7
|
+
0 0.3px 0.9px 0 colors.$box-shadow-color-light !default;
|
|
8
|
+
$box-shadow-medium: 0 3.2px 7.2px 0 colors.$box-shadow-color-medium,
|
|
9
|
+
0 0.6px 1.8px 0 colors.$box-shadow-color-light !default;
|
|
10
|
+
$box-shadow-heavy: 0 6.4px 14.4px 0 colors.$box-shadow-color-medium,
|
|
11
|
+
0 1.2px 3.6px 0 colors.$box-shadow-color-light !default;
|
|
12
|
+
$box-shadow-extra-heavy: 0 25.6px 57.6px 0 colors.$box-shadow-color-extra-heavy,
|
|
13
|
+
0 4.8px 14.4px 0 colors.$box-shadow-color-heavy !default;
|
|
13
14
|
//@end-sass-export-section
|