@microsoft/atlas-css 1.1.0 → 1.2.0
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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens.json +1 -1
- package/dist/tokens.ts +4 -0
- package/package.json +57 -57
- package/src/atomics/README.md +54 -54
- package/src/atomics/border.scss +56 -56
- package/src/atomics/colors.scss +166 -148
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +69 -69
- package/src/atomics/index.scss +8 -8
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing.scss +73 -73
- package/src/atomics/typography.scss +105 -105
- package/src/components/README.md +41 -41
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +243 -243
- package/src/components/buttons.scss +87 -87
- package/src/components/component.md +6 -6
- package/src/components/icon.scss +20 -20
- package/src/components/index.scss +7 -7
- package/src/components/link-button.scss +30 -30
- package/src/components/markdown.scss +156 -156
- package/src/components/table.scss +67 -67
- package/src/core/animations.scss +8 -8
- package/src/core/focus.scss +35 -35
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +6 -6
- package/src/core/themes.scss +86 -86
- package/src/index.scss +6 -6
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/control.scss +44 -44
- package/src/mixins/focus.scss +10 -10
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/index.scss +9 -9
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +49 -49
- package/src/mixins/transparency.scss +14 -14
- package/src/mixins/unselectable.scss +13 -13
- package/src/patterns/index.scss +1 -1
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +8 -8
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +215 -212
- package/src/tokens/direction.scss +18 -18
- 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 +18 -18
- package/src/tokens/layout.scss +8 -8
- package/src/tokens/palette.scss +188 -188
- package/src/tokens/position.scss +5 -5
- package/src/tokens/radius.scss +9 -9
- 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 +291 -291
- package/src/tokens/typography.scss +29 -29
- 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
package/src/atomics/colors.scss
CHANGED
|
@@ -1,148 +1,166 @@
|
|
|
1
|
-
// Framework colors
|
|
2
|
-
|
|
3
|
-
@each $name, $color-set in $colors {
|
|
4
|
-
$base: nth($color-set, $color-index-base);
|
|
5
|
-
$background: nth($color-set, $color-index-background);
|
|
6
|
-
$dark: nth($color-set, $color-index-dark);
|
|
7
|
-
$hover: nth($color-set, $color-index-hover);
|
|
8
|
-
$active: nth($color-set, $color-index-active);
|
|
9
|
-
$invert: nth($color-set, $color-index-invert);
|
|
10
|
-
|
|
11
|
-
.color-#{$name} {
|
|
12
|
-
color: $base !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
a.color-#{$name} {
|
|
16
|
-
&:hover,
|
|
17
|
-
&.focus-visible {
|
|
18
|
-
color: $hover !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:active {
|
|
22
|
-
color: $active !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.color-#{$name}-invert {
|
|
27
|
-
color: $invert !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.background-color-#{$name} {
|
|
31
|
-
outline-color: $invert;
|
|
32
|
-
background-color: $base !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.background-color-#{$name}-invert {
|
|
36
|
-
outline-color: $base;
|
|
37
|
-
background-color: $invert !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.background-color-#{$name}-light {
|
|
41
|
-
outline-color: $dark;
|
|
42
|
-
background-color: $background !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.background-color-#{$name}-dark {
|
|
46
|
-
outline-color: $background;
|
|
47
|
-
background-color: $dark !important;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include tablet {
|
|
52
|
-
@each $name, $color-set in $colors {
|
|
53
|
-
$base: nth($color-set, $color-index-base);
|
|
54
|
-
$invert: nth($color-set, $color-index-invert);
|
|
55
|
-
|
|
56
|
-
.background-color-#{$name}-tablet {
|
|
57
|
-
outline-color: $invert;
|
|
58
|
-
background-color: $base !important;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Text color
|
|
64
|
-
|
|
65
|
-
.color-text {
|
|
66
|
-
color: $text !important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.color-text-subtle {
|
|
70
|
-
color: $text-subtle !important;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.color-text-overlay-invert {
|
|
74
|
-
color: $overlay-invert;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.color-current-color {
|
|
78
|
-
color: currentColor !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.fill-current-color {
|
|
82
|
-
fill: currentColor !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.outline-color-text {
|
|
86
|
-
outline-color: $text !important;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.stroke-current-color {
|
|
90
|
-
stroke: currentColor !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Background color
|
|
94
|
-
|
|
95
|
-
.background-color-body {
|
|
96
|
-
outline-color: $text !important;
|
|
97
|
-
background-color: $body-background !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.background-color-body-medium {
|
|
101
|
-
outline-color: $text !important;
|
|
102
|
-
background-color: $body-background-medium !important;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.background-color-alternate {
|
|
106
|
-
outline-color: $text-invert !important;
|
|
107
|
-
background-color: $alternate-background !important;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.background-color-alternate-medium {
|
|
111
|
-
outline-color: $text-invert !important;
|
|
112
|
-
background-color: $alternate-background-medium !important;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.background-color-overlay {
|
|
116
|
-
outline-color: $overlay-invert;
|
|
117
|
-
background-color: $overlay !important;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.background-color-alternating-grey {
|
|
121
|
-
border-top: 1px solid $border-white-high-contrast;
|
|
122
|
-
outline-color: $text !important;
|
|
123
|
-
|
|
124
|
-
&:nth-of-type(even) {
|
|
125
|
-
outline-color: $text;
|
|
126
|
-
background-color: $body-background;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&:nth-of-type(odd) {
|
|
130
|
-
outline-color: $text;
|
|
131
|
-
background-color: $body-background-medium;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.background-color-alternating-grey-reversed {
|
|
136
|
-
border-top: 1px solid $border-white-high-contrast;
|
|
137
|
-
outline-color: $text !important;
|
|
138
|
-
|
|
139
|
-
&:nth-of-type(even) {
|
|
140
|
-
outline-color: $text;
|
|
141
|
-
background-color: $body-background-medium;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&:nth-of-type(odd) {
|
|
145
|
-
outline-color: $text;
|
|
146
|
-
background-color: $body-background;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
// Framework colors
|
|
2
|
+
|
|
3
|
+
@each $name, $color-set in $colors {
|
|
4
|
+
$base: nth($color-set, $color-index-base);
|
|
5
|
+
$background: nth($color-set, $color-index-background);
|
|
6
|
+
$dark: nth($color-set, $color-index-dark);
|
|
7
|
+
$hover: nth($color-set, $color-index-hover);
|
|
8
|
+
$active: nth($color-set, $color-index-active);
|
|
9
|
+
$invert: nth($color-set, $color-index-invert);
|
|
10
|
+
|
|
11
|
+
.color-#{$name} {
|
|
12
|
+
color: $base !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
a.color-#{$name} {
|
|
16
|
+
&:hover,
|
|
17
|
+
&.focus-visible {
|
|
18
|
+
color: $hover !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:active {
|
|
22
|
+
color: $active !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.color-#{$name}-invert {
|
|
27
|
+
color: $invert !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.background-color-#{$name} {
|
|
31
|
+
outline-color: $invert;
|
|
32
|
+
background-color: $base !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.background-color-#{$name}-invert {
|
|
36
|
+
outline-color: $base;
|
|
37
|
+
background-color: $invert !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.background-color-#{$name}-light {
|
|
41
|
+
outline-color: $dark;
|
|
42
|
+
background-color: $background !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.background-color-#{$name}-dark {
|
|
46
|
+
outline-color: $background;
|
|
47
|
+
background-color: $dark !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include tablet {
|
|
52
|
+
@each $name, $color-set in $colors {
|
|
53
|
+
$base: nth($color-set, $color-index-base);
|
|
54
|
+
$invert: nth($color-set, $color-index-invert);
|
|
55
|
+
|
|
56
|
+
.background-color-#{$name}-tablet {
|
|
57
|
+
outline-color: $invert;
|
|
58
|
+
background-color: $base !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Text color
|
|
64
|
+
|
|
65
|
+
.color-text {
|
|
66
|
+
color: $text !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.color-text-subtle {
|
|
70
|
+
color: $text-subtle !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.color-text-overlay-invert {
|
|
74
|
+
color: $overlay-invert;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.color-current-color {
|
|
78
|
+
color: currentColor !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.fill-current-color {
|
|
82
|
+
fill: currentColor !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.outline-color-text {
|
|
86
|
+
outline-color: $text !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.stroke-current-color {
|
|
90
|
+
stroke: currentColor !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Background color
|
|
94
|
+
|
|
95
|
+
.background-color-body {
|
|
96
|
+
outline-color: $text !important;
|
|
97
|
+
background-color: $body-background !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.background-color-body-medium {
|
|
101
|
+
outline-color: $text !important;
|
|
102
|
+
background-color: $body-background-medium !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.background-color-alternate {
|
|
106
|
+
outline-color: $text-invert !important;
|
|
107
|
+
background-color: $alternate-background !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.background-color-alternate-medium {
|
|
111
|
+
outline-color: $text-invert !important;
|
|
112
|
+
background-color: $alternate-background-medium !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.background-color-overlay {
|
|
116
|
+
outline-color: $overlay-invert;
|
|
117
|
+
background-color: $overlay !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.background-color-alternating-grey {
|
|
121
|
+
border-top: 1px solid $border-white-high-contrast;
|
|
122
|
+
outline-color: $text !important;
|
|
123
|
+
|
|
124
|
+
&:nth-of-type(even) {
|
|
125
|
+
outline-color: $text;
|
|
126
|
+
background-color: $body-background;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:nth-of-type(odd) {
|
|
130
|
+
outline-color: $text;
|
|
131
|
+
background-color: $body-background-medium;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.background-color-alternating-grey-reversed {
|
|
136
|
+
border-top: 1px solid $border-white-high-contrast;
|
|
137
|
+
outline-color: $text !important;
|
|
138
|
+
|
|
139
|
+
&:nth-of-type(even) {
|
|
140
|
+
outline-color: $text;
|
|
141
|
+
background-color: $body-background-medium;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:nth-of-type(odd) {
|
|
145
|
+
outline-color: $text;
|
|
146
|
+
background-color: $body-background;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Static colors - do not change with theme
|
|
151
|
+
|
|
152
|
+
.color-white-static {
|
|
153
|
+
color: $white-static !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.color-black-static {
|
|
157
|
+
color: $black-static !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.background-color-white-static {
|
|
161
|
+
background-color: $white-static !important;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.background-color-black-static {
|
|
165
|
+
background-color: $black-static !important;
|
|
166
|
+
}
|
package/src/atomics/display.scss
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
@each $item in $displays {
|
|
2
|
-
.display-#{$item} {
|
|
3
|
-
display: #{$item} !important;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@include tablet {
|
|
8
|
-
@each $item in $displays {
|
|
9
|
-
.display-#{$item}-tablet {
|
|
10
|
-
display: #{$item} !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include desktop {
|
|
16
|
-
@each $item in $displays {
|
|
17
|
-
.display-#{$item}-desktop {
|
|
18
|
-
display: #{$item} !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@include widescreen {
|
|
24
|
-
@each $item in $displays {
|
|
25
|
-
.display-#{$item}-widescreen {
|
|
26
|
-
display: #{$item} !important;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[hidden] {
|
|
32
|
-
display: none !important;
|
|
33
|
-
}
|
|
1
|
+
@each $item in $displays {
|
|
2
|
+
.display-#{$item} {
|
|
3
|
+
display: #{$item} !important;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@include tablet {
|
|
8
|
+
@each $item in $displays {
|
|
9
|
+
.display-#{$item}-tablet {
|
|
10
|
+
display: #{$item} !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include desktop {
|
|
16
|
+
@each $item in $displays {
|
|
17
|
+
.display-#{$item}-desktop {
|
|
18
|
+
display: #{$item} !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include widescreen {
|
|
24
|
+
@each $item in $displays {
|
|
25
|
+
.display-#{$item}-widescreen {
|
|
26
|
+
display: #{$item} !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
package/src/atomics/flex.scss
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
$flex-atomics: (
|
|
4
|
-
'justify-content': (
|
|
5
|
-
flex-start,
|
|
6
|
-
flex-end,
|
|
7
|
-
center,
|
|
8
|
-
space-around,
|
|
9
|
-
space-between,
|
|
10
|
-
space-evenly
|
|
11
|
-
),
|
|
12
|
-
'align-items': (
|
|
13
|
-
flex-start,
|
|
14
|
-
flex-end,
|
|
15
|
-
center,
|
|
16
|
-
baseline,
|
|
17
|
-
stretch
|
|
18
|
-
),
|
|
19
|
-
'align-content': (
|
|
20
|
-
flex-start,
|
|
21
|
-
flex-end,
|
|
22
|
-
center,
|
|
23
|
-
space-around,
|
|
24
|
-
space-between,
|
|
25
|
-
stretch
|
|
26
|
-
),
|
|
27
|
-
'align-self': (
|
|
28
|
-
flex-start,
|
|
29
|
-
flex-end,
|
|
30
|
-
center,
|
|
31
|
-
baseline,
|
|
32
|
-
stretch
|
|
33
|
-
),
|
|
34
|
-
'flex-direction': (
|
|
35
|
-
column,
|
|
36
|
-
column-reverse,
|
|
37
|
-
row-reverse
|
|
38
|
-
),
|
|
39
|
-
'flex-wrap': (
|
|
40
|
-
wrap,
|
|
41
|
-
wrap-reverse
|
|
42
|
-
),
|
|
43
|
-
'flex-shrink': (
|
|
44
|
-
0,
|
|
45
|
-
1
|
|
46
|
-
),
|
|
47
|
-
'flex-grow': (
|
|
48
|
-
0,
|
|
49
|
-
1
|
|
50
|
-
)
|
|
51
|
-
) !default;
|
|
52
|
-
|
|
53
|
-
@each $key in map.keys($flex-atomics) {
|
|
54
|
-
@each $value in map.get($flex-atomics, $key) {
|
|
55
|
-
.#{$key}-#{$value} {
|
|
56
|
-
#{$key}: $value !important;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@include tablet {
|
|
62
|
-
@each $key in map.keys($flex-atomics) {
|
|
63
|
-
@each $value in map.get($flex-atomics, $key) {
|
|
64
|
-
.#{$key}-#{$value}-tablet {
|
|
65
|
-
#{$key}: $value !important;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
$flex-atomics: (
|
|
4
|
+
'justify-content': (
|
|
5
|
+
flex-start,
|
|
6
|
+
flex-end,
|
|
7
|
+
center,
|
|
8
|
+
space-around,
|
|
9
|
+
space-between,
|
|
10
|
+
space-evenly
|
|
11
|
+
),
|
|
12
|
+
'align-items': (
|
|
13
|
+
flex-start,
|
|
14
|
+
flex-end,
|
|
15
|
+
center,
|
|
16
|
+
baseline,
|
|
17
|
+
stretch
|
|
18
|
+
),
|
|
19
|
+
'align-content': (
|
|
20
|
+
flex-start,
|
|
21
|
+
flex-end,
|
|
22
|
+
center,
|
|
23
|
+
space-around,
|
|
24
|
+
space-between,
|
|
25
|
+
stretch
|
|
26
|
+
),
|
|
27
|
+
'align-self': (
|
|
28
|
+
flex-start,
|
|
29
|
+
flex-end,
|
|
30
|
+
center,
|
|
31
|
+
baseline,
|
|
32
|
+
stretch
|
|
33
|
+
),
|
|
34
|
+
'flex-direction': (
|
|
35
|
+
column,
|
|
36
|
+
column-reverse,
|
|
37
|
+
row-reverse
|
|
38
|
+
),
|
|
39
|
+
'flex-wrap': (
|
|
40
|
+
wrap,
|
|
41
|
+
wrap-reverse
|
|
42
|
+
),
|
|
43
|
+
'flex-shrink': (
|
|
44
|
+
0,
|
|
45
|
+
1
|
|
46
|
+
),
|
|
47
|
+
'flex-grow': (
|
|
48
|
+
0,
|
|
49
|
+
1
|
|
50
|
+
)
|
|
51
|
+
) !default;
|
|
52
|
+
|
|
53
|
+
@each $key in map.keys($flex-atomics) {
|
|
54
|
+
@each $value in map.get($flex-atomics, $key) {
|
|
55
|
+
.#{$key}-#{$value} {
|
|
56
|
+
#{$key}: $value !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@include tablet {
|
|
62
|
+
@each $key in map.keys($flex-atomics) {
|
|
63
|
+
@each $value in map.get($flex-atomics, $key) {
|
|
64
|
+
.#{$key}-#{$value}-tablet {
|
|
65
|
+
#{$key}: $value !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|