@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,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)
|
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
|