@microsoft/atlas-css 3.43.0 → 3.44.1
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/README.md +42 -42
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +91 -91
- package/src/atomics/README.md +56 -56
- package/src/atomics/aspect-ratio.scss +13 -13
- package/src/atomics/background.scss +11 -11
- package/src/atomics/border.scss +113 -113
- package/src/atomics/colors.scss +204 -204
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +74 -71
- package/src/atomics/gap.scss +60 -60
- package/src/atomics/image.scss +15 -15
- package/src/atomics/index.scss +18 -18
- package/src/atomics/line-clamp.scss +15 -15
- package/src/atomics/list.scss +8 -3
- package/src/atomics/overflow.scss +9 -9
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing-auto.scss +52 -52
- package/src/atomics/spacing.scss +98 -98
- package/src/atomics/typography.scss +203 -203
- package/src/atomics/visually-hidden.scss +4 -4
- package/src/atomics/width.scss +44 -44
- package/src/components/README.md +69 -69
- package/src/components/banner.scss +69 -69
- package/src/components/breadcrumbs.scss +37 -37
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +241 -241
- package/src/components/buttons.scss +93 -93
- package/src/components/card.scss +252 -252
- package/src/components/form/checkbox.scss +141 -141
- package/src/components/form/form.scss +67 -67
- package/src/components/form/help.scss +18 -18
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +143 -143
- package/src/components/form/label.scss +14 -14
- package/src/components/form/radio.scss +121 -121
- package/src/components/form/select.scss +116 -116
- package/src/components/form/textarea.scss +82 -82
- package/src/components/gradient-card.scss +14 -14
- package/src/components/gradient.scss +85 -85
- package/src/components/hero.scss +197 -197
- package/src/components/icon.scss +20 -20
- package/src/components/image.scss +44 -44
- package/src/components/index.scss +27 -27
- package/src/components/layout.scss +189 -189
- package/src/components/link-button.scss +34 -34
- package/src/components/markdown.scss +158 -158
- package/src/components/media.scss +22 -22
- package/src/components/message.scss +74 -74
- package/src/components/notification.scss +101 -101
- package/src/components/pagination.scss +183 -183
- package/src/components/persona.scss +60 -60
- package/src/components/popover.scss +42 -42
- package/src/components/scroll.scss +26 -26
- package/src/components/segmented-control.scss +128 -128
- package/src/components/site-header.scss +255 -255
- package/src/components/stretched-link.scss +8 -8
- package/src/components/table.scss +114 -114
- package/src/components/toggle.scss +86 -86
- package/src/core/animations.scss +55 -55
- package/src/core/bare-elements.scss +38 -38
- package/src/core/focus.scss +45 -45
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +79 -79
- package/src/core/normalize.scss +353 -353
- package/src/core/themes.scss +91 -91
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/colors.scss +6 -6
- package/src/mixins/control.scss +43 -43
- package/src/mixins/dismiss.scss +22 -22
- package/src/mixins/focus.scss +23 -23
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/force-colors.scss +5 -5
- package/src/mixins/gradient.scss +11 -11
- package/src/mixins/index.scss +17 -17
- package/src/mixins/layout-gap.scss +7 -7
- package/src/mixins/line-clamp.scss +15 -15
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +61 -61
- package/src/mixins/overlay.scss +12 -12
- package/src/mixins/transparency.scss +15 -15
- package/src/mixins/unselectable.scss +13 -13
- package/src/mixins/visually-hidden.scss +12 -12
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +12 -12
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +239 -239
- package/src/tokens/direction.scss +25 -25
- package/src/tokens/display.scss +5 -5
- package/src/tokens/focus.scss +9 -9
- package/src/tokens/font-stack.scss +10 -10
- package/src/tokens/index.scss +17 -17
- package/src/tokens/layout.scss +17 -17
- package/src/tokens/palette.scss +200 -200
- package/src/tokens/position.scss +5 -5
- package/src/tokens/schemes.scss +14 -14
- package/src/tokens/shadow.scss +11 -11
- package/src/tokens/spacing.scss +25 -25
- package/src/tokens/themes.scss +318 -318
- package/src/tokens/typography.scss +33 -33
- package/src/tokens/z-index.scss +20 -20
- package/tokens/README.md +34 -34
- package/tokens/index.js +246 -246
- package/tokens/types.d.ts +35 -35
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
%line-clamp {
|
|
2
|
-
/*stylelint-disable*/
|
|
3
|
-
display: -webkit-box;
|
|
4
|
-
-webkit-box-orient: vertical;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin line-clamp($lines: 1, $important: false) {
|
|
9
|
-
@extend %line-clamp;
|
|
10
|
-
@if $important {
|
|
11
|
-
-webkit-line-clamp: $lines !important;
|
|
12
|
-
} @else {
|
|
13
|
-
-webkit-line-clamp: $lines;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
%line-clamp {
|
|
2
|
+
/*stylelint-disable*/
|
|
3
|
+
display: -webkit-box;
|
|
4
|
+
-webkit-box-orient: vertical;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin line-clamp($lines: 1, $important: false) {
|
|
9
|
+
@extend %line-clamp;
|
|
10
|
+
@if $important {
|
|
11
|
+
-webkit-line-clamp: $lines !important;
|
|
12
|
+
} @else {
|
|
13
|
+
-webkit-line-clamp: $lines;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src/mixins/loader.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
%loader {
|
|
2
|
-
display: block;
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 1em;
|
|
5
|
-
height: 1em;
|
|
6
|
-
animation: spinAround 500ms infinite linear;
|
|
7
|
-
border: 2px solid $border;
|
|
8
|
-
border-radius: $border-radius-rounded;
|
|
9
|
-
border-block-start-color: transparent;
|
|
10
|
-
border-inline-end-color: transparent;
|
|
11
|
-
content: '';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin loader {
|
|
15
|
-
@extend %loader;
|
|
16
|
-
}
|
|
1
|
+
%loader {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 1em;
|
|
5
|
+
height: 1em;
|
|
6
|
+
animation: spinAround 500ms infinite linear;
|
|
7
|
+
border: 2px solid $border;
|
|
8
|
+
border-radius: $border-radius-rounded;
|
|
9
|
+
border-block-start-color: transparent;
|
|
10
|
+
border-inline-end-color: transparent;
|
|
11
|
+
content: '';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin loader {
|
|
15
|
+
@extend %loader;
|
|
16
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
// Orientation
|
|
2
|
-
|
|
3
|
-
@mixin orientation-portrait {
|
|
4
|
-
@media screen and (aspect-ratio <= 1/1),
|
|
5
|
-
screen and (resolution >= 120dpi) and (aspect-ratio <= 1/1) {
|
|
6
|
-
@content;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@mixin orientation-landscape {
|
|
11
|
-
@media screen and (aspect-ratio >= 1/1),
|
|
12
|
-
screen and (resolution >= 120dpi) and (aspect-ratio >= 1/1) {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin orientation-square {
|
|
18
|
-
@media screen and (aspect-ratio <= 1/1),
|
|
19
|
-
screen and (resolution >= 120dpi) and (aspect-ratio <= 1/1) {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Mobile-first screen size media queries
|
|
25
|
-
|
|
26
|
-
@mixin tablet {
|
|
27
|
-
@media screen and (min-width: $breakpoint-tablet), print {
|
|
28
|
-
@content;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin desktop {
|
|
33
|
-
@media screen and (min-width: $breakpoint-desktop) {
|
|
34
|
-
@content;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin widescreen {
|
|
39
|
-
@media screen and (min-width: $breakpoint-widescreen) {
|
|
40
|
-
@content;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Please avoid using this mixin if possible. It doesn't follow the mobile-first approach to writing CSS.
|
|
45
|
-
@mixin discouraged-mobile {
|
|
46
|
-
@media screen and (max-width: ($breakpoint-tablet - 1px)) {
|
|
47
|
-
@content;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@mixin print {
|
|
52
|
-
@media print {
|
|
53
|
-
@content;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@mixin prefers-reduced-motion {
|
|
58
|
-
@media (prefers-reduced-motion: reduce) {
|
|
59
|
-
@content;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
// Orientation
|
|
2
|
+
|
|
3
|
+
@mixin orientation-portrait {
|
|
4
|
+
@media screen and (aspect-ratio <= 1/1),
|
|
5
|
+
screen and (resolution >= 120dpi) and (aspect-ratio <= 1/1) {
|
|
6
|
+
@content;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin orientation-landscape {
|
|
11
|
+
@media screen and (aspect-ratio >= 1/1),
|
|
12
|
+
screen and (resolution >= 120dpi) and (aspect-ratio >= 1/1) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin orientation-square {
|
|
18
|
+
@media screen and (aspect-ratio <= 1/1),
|
|
19
|
+
screen and (resolution >= 120dpi) and (aspect-ratio <= 1/1) {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Mobile-first screen size media queries
|
|
25
|
+
|
|
26
|
+
@mixin tablet {
|
|
27
|
+
@media screen and (min-width: $breakpoint-tablet), print {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin desktop {
|
|
33
|
+
@media screen and (min-width: $breakpoint-desktop) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin widescreen {
|
|
39
|
+
@media screen and (min-width: $breakpoint-widescreen) {
|
|
40
|
+
@content;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Please avoid using this mixin if possible. It doesn't follow the mobile-first approach to writing CSS.
|
|
45
|
+
@mixin discouraged-mobile {
|
|
46
|
+
@media screen and (max-width: ($breakpoint-tablet - 1px)) {
|
|
47
|
+
@content;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin print {
|
|
52
|
+
@media print {
|
|
53
|
+
@content;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin prefers-reduced-motion {
|
|
58
|
+
@media (prefers-reduced-motion: reduce) {
|
|
59
|
+
@content;
|
|
60
|
+
}
|
|
61
|
+
}
|
package/src/mixins/overlay.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
%overlay {
|
|
2
|
-
position: absolute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin overlay($offset: 0) {
|
|
7
|
-
@extend %overlay;
|
|
8
|
-
|
|
9
|
-
@if $offset != 0 {
|
|
10
|
-
inset: $offset;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
%overlay {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin overlay($offset: 0) {
|
|
7
|
+
@extend %overlay;
|
|
8
|
+
|
|
9
|
+
@if $offset != 0 {
|
|
10
|
+
inset: $offset;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
%transparent-effects {
|
|
2
|
-
outline-color: inherit;
|
|
3
|
-
background-color: transparent;
|
|
4
|
-
appearance: none;
|
|
5
|
-
|
|
6
|
-
&:not(:hover),
|
|
7
|
-
&:not(.focus-visible),
|
|
8
|
-
&:not(:focus-visible) {
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin transparent-effects {
|
|
14
|
-
@extend %transparent-effects;
|
|
15
|
-
}
|
|
1
|
+
%transparent-effects {
|
|
2
|
+
outline-color: inherit;
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
appearance: none;
|
|
5
|
+
|
|
6
|
+
&:not(:hover),
|
|
7
|
+
&:not(.focus-visible),
|
|
8
|
+
&:not(:focus-visible) {
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin transparent-effects {
|
|
14
|
+
@extend %transparent-effects;
|
|
15
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
%unselectable {
|
|
2
|
-
/* stylelint-disable */
|
|
3
|
-
-webkit-touch-callout: none;
|
|
4
|
-
-webkit-user-select: none;
|
|
5
|
-
-moz-user-select: none;
|
|
6
|
-
-ms-user-select: none;
|
|
7
|
-
/* stylelint-enable */
|
|
8
|
-
user-select: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin unselectable {
|
|
12
|
-
@extend %unselectable;
|
|
13
|
-
}
|
|
1
|
+
%unselectable {
|
|
2
|
+
/* stylelint-disable */
|
|
3
|
+
-webkit-touch-callout: none;
|
|
4
|
+
-webkit-user-select: none;
|
|
5
|
+
-moz-user-select: none;
|
|
6
|
+
-ms-user-select: none;
|
|
7
|
+
/* stylelint-enable */
|
|
8
|
+
user-select: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin unselectable {
|
|
12
|
+
@extend %unselectable;
|
|
13
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@mixin visually-hidden() {
|
|
2
|
-
position: absolute;
|
|
3
|
-
width: 1px;
|
|
4
|
-
height: 1px;
|
|
5
|
-
margin: -1px;
|
|
6
|
-
padding: 0;
|
|
7
|
-
border: 0;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
10
|
-
clip-path: inset(50%);
|
|
11
|
-
word-wrap: normal;
|
|
12
|
-
}
|
|
1
|
+
@mixin visually-hidden() {
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: 1px;
|
|
4
|
+
height: 1px;
|
|
5
|
+
margin: -1px;
|
|
6
|
+
padding: 0;
|
|
7
|
+
border: 0;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
10
|
+
clip-path: inset(50%);
|
|
11
|
+
word-wrap: normal;
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="animation"
|
|
3
|
-
*/
|
|
4
|
-
// Animation related property values
|
|
5
|
-
$input-timing-function: cubic-bezier(0.4, 0, 0.23, 1) !default;
|
|
6
|
-
$input-transition-duration: 200ms;
|
|
7
|
-
$nav-bar-transition-duration: 86ms !default;
|
|
8
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="animation"
|
|
3
|
+
*/
|
|
4
|
+
// Animation related property values
|
|
5
|
+
$input-timing-function: cubic-bezier(0.4, 0, 0.23, 1) !default;
|
|
6
|
+
$input-transition-duration: 200ms;
|
|
7
|
+
$nav-bar-transition-duration: 86ms !default;
|
|
8
|
+
//@end-sass-export-section
|
package/src/tokens/border.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="border"
|
|
3
|
-
*/
|
|
4
|
-
$border-width: 1px !default;
|
|
5
|
-
$border-width-md: 0.125rem !default;
|
|
6
|
-
$border-width-lg: 0.25rem !default;
|
|
7
|
-
|
|
8
|
-
$border-radius-sm: 0.125rem !default; // 2px
|
|
9
|
-
$border-radius: 0.25rem !default; // 4px
|
|
10
|
-
$border-radius-lg: 0.375rem !default; // 6px
|
|
11
|
-
$border-radius-rounded: 290486px !default;
|
|
12
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="border"
|
|
3
|
+
*/
|
|
4
|
+
$border-width: 1px !default;
|
|
5
|
+
$border-width-md: 0.125rem !default;
|
|
6
|
+
$border-width-lg: 0.25rem !default;
|
|
7
|
+
|
|
8
|
+
$border-radius-sm: 0.125rem !default; // 2px
|
|
9
|
+
$border-radius: 0.25rem !default; // 4px
|
|
10
|
+
$border-radius-lg: 0.375rem !default; // 6px
|
|
11
|
+
$border-radius-rounded: 290486px !default;
|
|
12
|
+
//@end-sass-export-section
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="breakpoints"
|
|
3
|
-
*/
|
|
4
|
-
// The horizontal gap tied to containers
|
|
5
|
-
$container-gap: 64px !default;
|
|
6
|
-
|
|
7
|
-
// Breakpoints
|
|
8
|
-
$breakpoint-tablet: 768px !default;
|
|
9
|
-
$breakpoint-desktop: 1088px !default;
|
|
10
|
-
$breakpoint-widescreen: 1800px !default;
|
|
11
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="breakpoints"
|
|
3
|
+
*/
|
|
4
|
+
// The horizontal gap tied to containers
|
|
5
|
+
$container-gap: 64px !default;
|
|
6
|
+
|
|
7
|
+
// Breakpoints
|
|
8
|
+
$breakpoint-tablet: 768px !default;
|
|
9
|
+
$breakpoint-desktop: 1088px !default;
|
|
10
|
+
$breakpoint-widescreen: 1800px !default;
|
|
11
|
+
//@end-sass-export-section
|