@microsoft/atlas-css 3.43.0 → 3.44.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.
Files changed (110) hide show
  1. package/README.md +42 -42
  2. package/dist/class-names.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/package.json +91 -91
  6. package/src/atomics/README.md +56 -56
  7. package/src/atomics/aspect-ratio.scss +13 -13
  8. package/src/atomics/background.scss +11 -11
  9. package/src/atomics/border.scss +113 -113
  10. package/src/atomics/colors.scss +204 -204
  11. package/src/atomics/display.scss +33 -33
  12. package/src/atomics/flex.scss +74 -71
  13. package/src/atomics/gap.scss +60 -60
  14. package/src/atomics/image.scss +15 -15
  15. package/src/atomics/index.scss +18 -18
  16. package/src/atomics/line-clamp.scss +15 -15
  17. package/src/atomics/list.scss +3 -3
  18. package/src/atomics/overflow.scss +9 -9
  19. package/src/atomics/position.scss +19 -19
  20. package/src/atomics/shadow.scss +19 -19
  21. package/src/atomics/spacing-auto.scss +52 -52
  22. package/src/atomics/spacing.scss +98 -98
  23. package/src/atomics/typography.scss +203 -203
  24. package/src/atomics/visually-hidden.scss +4 -4
  25. package/src/atomics/width.scss +44 -44
  26. package/src/components/README.md +69 -69
  27. package/src/components/banner.scss +69 -69
  28. package/src/components/breadcrumbs.scss +37 -37
  29. package/src/components/button-reset.scss +8 -8
  30. package/src/components/button.scss +241 -241
  31. package/src/components/buttons.scss +93 -93
  32. package/src/components/card.scss +252 -252
  33. package/src/components/form/checkbox.scss +141 -141
  34. package/src/components/form/form.scss +67 -67
  35. package/src/components/form/help.scss +18 -18
  36. package/src/components/form/index.scss +8 -8
  37. package/src/components/form/input.scss +143 -143
  38. package/src/components/form/label.scss +14 -14
  39. package/src/components/form/radio.scss +121 -121
  40. package/src/components/form/select.scss +116 -116
  41. package/src/components/form/textarea.scss +82 -82
  42. package/src/components/gradient-card.scss +14 -14
  43. package/src/components/gradient.scss +85 -85
  44. package/src/components/hero.scss +197 -197
  45. package/src/components/icon.scss +20 -20
  46. package/src/components/image.scss +44 -44
  47. package/src/components/index.scss +27 -27
  48. package/src/components/layout.scss +189 -189
  49. package/src/components/link-button.scss +34 -34
  50. package/src/components/markdown.scss +158 -158
  51. package/src/components/media.scss +22 -22
  52. package/src/components/message.scss +74 -74
  53. package/src/components/notification.scss +101 -101
  54. package/src/components/pagination.scss +183 -183
  55. package/src/components/persona.scss +60 -60
  56. package/src/components/popover.scss +42 -42
  57. package/src/components/scroll.scss +26 -26
  58. package/src/components/segmented-control.scss +128 -128
  59. package/src/components/site-header.scss +255 -255
  60. package/src/components/stretched-link.scss +8 -8
  61. package/src/components/table.scss +114 -114
  62. package/src/components/toggle.scss +86 -86
  63. package/src/core/animations.scss +55 -55
  64. package/src/core/bare-elements.scss +38 -38
  65. package/src/core/focus.scss +45 -45
  66. package/src/core/font-stack.scss +28 -28
  67. package/src/core/index.scss +7 -7
  68. package/src/core/minireset.scss +79 -79
  69. package/src/core/normalize.scss +353 -353
  70. package/src/core/themes.scss +91 -91
  71. package/src/index.scss +5 -5
  72. package/src/mixins/center.scss +11 -11
  73. package/src/mixins/code-block.scss +43 -43
  74. package/src/mixins/colors.scss +6 -6
  75. package/src/mixins/control.scss +43 -43
  76. package/src/mixins/dismiss.scss +22 -22
  77. package/src/mixins/focus.scss +23 -23
  78. package/src/mixins/font-size.scss +35 -35
  79. package/src/mixins/force-colors.scss +5 -5
  80. package/src/mixins/gradient.scss +11 -11
  81. package/src/mixins/index.scss +17 -17
  82. package/src/mixins/layout-gap.scss +7 -7
  83. package/src/mixins/line-clamp.scss +15 -15
  84. package/src/mixins/loader.scss +16 -16
  85. package/src/mixins/media-queries.scss +61 -61
  86. package/src/mixins/overlay.scss +12 -12
  87. package/src/mixins/transparency.scss +15 -15
  88. package/src/mixins/unselectable.scss +13 -13
  89. package/src/mixins/visually-hidden.scss +12 -12
  90. package/src/tokens/animation.scss +8 -8
  91. package/src/tokens/border.scss +12 -12
  92. package/src/tokens/breakpoints.scss +11 -11
  93. package/src/tokens/colors.scss +239 -239
  94. package/src/tokens/direction.scss +25 -25
  95. package/src/tokens/display.scss +5 -5
  96. package/src/tokens/focus.scss +9 -9
  97. package/src/tokens/font-stack.scss +10 -10
  98. package/src/tokens/index.scss +17 -17
  99. package/src/tokens/layout.scss +17 -17
  100. package/src/tokens/palette.scss +200 -200
  101. package/src/tokens/position.scss +5 -5
  102. package/src/tokens/schemes.scss +14 -14
  103. package/src/tokens/shadow.scss +11 -11
  104. package/src/tokens/spacing.scss +25 -25
  105. package/src/tokens/themes.scss +318 -318
  106. package/src/tokens/typography.scss +33 -33
  107. package/src/tokens/z-index.scss +20 -20
  108. package/tokens/README.md +34 -34
  109. package/tokens/index.js +246 -246
  110. package/tokens/types.d.ts +35 -35
@@ -1,204 +1,204 @@
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
- @if $name == 'warning' {
13
- color: $active !important;
14
- } @else {
15
- color: $base !important;
16
- }
17
- }
18
-
19
- a.color-#{$name} {
20
- &:hover {
21
- @if $name == 'warning' {
22
- color: $active !important;
23
- } @else {
24
- color: $hover !important;
25
- }
26
- }
27
-
28
- @include focus-visible {
29
- color: $hover !important;
30
- }
31
-
32
- &:active {
33
- color: $active !important;
34
- }
35
- }
36
-
37
- .color-#{$name}-invert {
38
- color: $invert !important;
39
- }
40
-
41
- .background-color-#{$name} {
42
- outline-color: $invert;
43
- background-color: $base !important;
44
- }
45
-
46
- .background-color-#{$name}-invert {
47
- outline-color: $base;
48
- background-color: $invert !important;
49
- }
50
-
51
- .background-color-#{$name}-light {
52
- outline-color: $dark;
53
- background-color: $background !important;
54
- }
55
-
56
- .background-color-#{$name}-dark {
57
- outline-color: $background;
58
- background-color: $dark !important;
59
- }
60
- }
61
-
62
- @include tablet {
63
- @each $name, $color-set in $colors {
64
- $base: nth($color-set, $color-index-base);
65
- $invert: nth($color-set, $color-index-invert);
66
-
67
- .background-color-#{$name}-tablet {
68
- outline-color: $invert;
69
- background-color: $base !important;
70
- }
71
- }
72
- }
73
-
74
- // Text color
75
-
76
- .color-text {
77
- color: $text !important;
78
- }
79
-
80
- .color-text-invert {
81
- color: $text-invert !important;
82
- }
83
-
84
- .color-text-subtle {
85
- color: $text-subtle !important;
86
- }
87
-
88
- .color-text-overlay-invert {
89
- color: $overlay-invert;
90
- }
91
-
92
- .color-current-color {
93
- color: currentColor !important;
94
- }
95
-
96
- .color-hyperlink {
97
- color: $hyperlink !important;
98
- }
99
-
100
- .fill-current-color {
101
- @include fill-current-color();
102
- }
103
-
104
- .outline-color-text {
105
- outline-color: $text !important;
106
- }
107
-
108
- .stroke-current-color {
109
- stroke: currentColor !important;
110
- }
111
-
112
- // Background color
113
-
114
- .background-color-body {
115
- outline-color: $text !important;
116
- background-color: $body-background !important;
117
- }
118
-
119
- .background-color-body-medium {
120
- outline-color: $text !important;
121
- background-color: $body-background-medium !important;
122
- }
123
-
124
- .background-color-alternate {
125
- outline-color: $text-invert !important;
126
- background-color: $alternate-background !important;
127
- }
128
-
129
- .background-color-alternate-medium {
130
- outline-color: $text-invert !important;
131
- background-color: $alternate-background-medium !important;
132
- }
133
-
134
- .background-color-overlay {
135
- outline-color: $overlay-invert;
136
- background-color: $overlay !important;
137
- }
138
-
139
- .background-color-alternating-grey {
140
- border-block-start: 1px solid $border-white-high-contrast;
141
- outline-color: $text !important;
142
-
143
- &:nth-of-type(even) {
144
- outline-color: $text;
145
- background-color: $body-background;
146
- }
147
-
148
- &:nth-of-type(odd) {
149
- outline-color: $text;
150
- background-color: $body-background-medium;
151
- }
152
- }
153
-
154
- .background-color-alternating-grey-reversed {
155
- border-block-start: 1px solid $border-white-high-contrast;
156
- outline-color: $text !important;
157
-
158
- &:nth-of-type(even) {
159
- outline-color: $text;
160
- background-color: $body-background-medium;
161
- }
162
-
163
- &:nth-of-type(odd) {
164
- outline-color: $text;
165
- background-color: $body-background;
166
- }
167
- }
168
-
169
- .background-color-body-accent {
170
- outline-color: $text !important;
171
- background-color: $body-background-accent !important;
172
- }
173
-
174
- .background-color-body-accent-onhover {
175
- &:hover,
176
- &:focus-within {
177
- outline-color: $text !important;
178
- background-color: $body-background-accent !important;
179
- }
180
- }
181
-
182
- .background-color-transparent {
183
- background-color: transparent !important;
184
- }
185
-
186
- // Static colors - do not change with theme
187
-
188
- .color-white-static {
189
- color: $white-static !important;
190
- }
191
-
192
- .color-black-static {
193
- color: $black-static !important;
194
- }
195
-
196
- .background-color-white-static {
197
- outline-color: $black-static !important;
198
- background-color: $white-static !important;
199
- }
200
-
201
- .background-color-black-static {
202
- outline-color: $white-static !important;
203
- background-color: $black-static !important;
204
- }
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
+ @if $name == 'warning' {
13
+ color: $active !important;
14
+ } @else {
15
+ color: $base !important;
16
+ }
17
+ }
18
+
19
+ a.color-#{$name} {
20
+ &:hover {
21
+ @if $name == 'warning' {
22
+ color: $active !important;
23
+ } @else {
24
+ color: $hover !important;
25
+ }
26
+ }
27
+
28
+ @include focus-visible {
29
+ color: $hover !important;
30
+ }
31
+
32
+ &:active {
33
+ color: $active !important;
34
+ }
35
+ }
36
+
37
+ .color-#{$name}-invert {
38
+ color: $invert !important;
39
+ }
40
+
41
+ .background-color-#{$name} {
42
+ outline-color: $invert;
43
+ background-color: $base !important;
44
+ }
45
+
46
+ .background-color-#{$name}-invert {
47
+ outline-color: $base;
48
+ background-color: $invert !important;
49
+ }
50
+
51
+ .background-color-#{$name}-light {
52
+ outline-color: $dark;
53
+ background-color: $background !important;
54
+ }
55
+
56
+ .background-color-#{$name}-dark {
57
+ outline-color: $background;
58
+ background-color: $dark !important;
59
+ }
60
+ }
61
+
62
+ @include tablet {
63
+ @each $name, $color-set in $colors {
64
+ $base: nth($color-set, $color-index-base);
65
+ $invert: nth($color-set, $color-index-invert);
66
+
67
+ .background-color-#{$name}-tablet {
68
+ outline-color: $invert;
69
+ background-color: $base !important;
70
+ }
71
+ }
72
+ }
73
+
74
+ // Text color
75
+
76
+ .color-text {
77
+ color: $text !important;
78
+ }
79
+
80
+ .color-text-invert {
81
+ color: $text-invert !important;
82
+ }
83
+
84
+ .color-text-subtle {
85
+ color: $text-subtle !important;
86
+ }
87
+
88
+ .color-text-overlay-invert {
89
+ color: $overlay-invert;
90
+ }
91
+
92
+ .color-current-color {
93
+ color: currentColor !important;
94
+ }
95
+
96
+ .color-hyperlink {
97
+ color: $hyperlink !important;
98
+ }
99
+
100
+ .fill-current-color {
101
+ @include fill-current-color();
102
+ }
103
+
104
+ .outline-color-text {
105
+ outline-color: $text !important;
106
+ }
107
+
108
+ .stroke-current-color {
109
+ stroke: currentColor !important;
110
+ }
111
+
112
+ // Background color
113
+
114
+ .background-color-body {
115
+ outline-color: $text !important;
116
+ background-color: $body-background !important;
117
+ }
118
+
119
+ .background-color-body-medium {
120
+ outline-color: $text !important;
121
+ background-color: $body-background-medium !important;
122
+ }
123
+
124
+ .background-color-alternate {
125
+ outline-color: $text-invert !important;
126
+ background-color: $alternate-background !important;
127
+ }
128
+
129
+ .background-color-alternate-medium {
130
+ outline-color: $text-invert !important;
131
+ background-color: $alternate-background-medium !important;
132
+ }
133
+
134
+ .background-color-overlay {
135
+ outline-color: $overlay-invert;
136
+ background-color: $overlay !important;
137
+ }
138
+
139
+ .background-color-alternating-grey {
140
+ border-block-start: 1px solid $border-white-high-contrast;
141
+ outline-color: $text !important;
142
+
143
+ &:nth-of-type(even) {
144
+ outline-color: $text;
145
+ background-color: $body-background;
146
+ }
147
+
148
+ &:nth-of-type(odd) {
149
+ outline-color: $text;
150
+ background-color: $body-background-medium;
151
+ }
152
+ }
153
+
154
+ .background-color-alternating-grey-reversed {
155
+ border-block-start: 1px solid $border-white-high-contrast;
156
+ outline-color: $text !important;
157
+
158
+ &:nth-of-type(even) {
159
+ outline-color: $text;
160
+ background-color: $body-background-medium;
161
+ }
162
+
163
+ &:nth-of-type(odd) {
164
+ outline-color: $text;
165
+ background-color: $body-background;
166
+ }
167
+ }
168
+
169
+ .background-color-body-accent {
170
+ outline-color: $text !important;
171
+ background-color: $body-background-accent !important;
172
+ }
173
+
174
+ .background-color-body-accent-onhover {
175
+ &:hover,
176
+ &:focus-within {
177
+ outline-color: $text !important;
178
+ background-color: $body-background-accent !important;
179
+ }
180
+ }
181
+
182
+ .background-color-transparent {
183
+ background-color: transparent !important;
184
+ }
185
+
186
+ // Static colors - do not change with theme
187
+
188
+ .color-white-static {
189
+ color: $white-static !important;
190
+ }
191
+
192
+ .color-black-static {
193
+ color: $black-static !important;
194
+ }
195
+
196
+ .background-color-white-static {
197
+ outline-color: $black-static !important;
198
+ background-color: $white-static !important;
199
+ }
200
+
201
+ .background-color-black-static {
202
+ outline-color: $white-static !important;
203
+ background-color: $black-static !important;
204
+ }
@@ -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
+ }
@@ -1,71 +1,74 @@
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
- row,
36
- column,
37
- column-reverse,
38
- row-reverse
39
- ),
40
- 'flex-wrap': (
41
- nowrap,
42
- wrap,
43
- wrap-reverse
44
- ),
45
- 'flex-shrink': (
46
- 0,
47
- 1
48
- ),
49
- 'flex-grow': (
50
- 0,
51
- 1
52
- )
53
- ) !default;
54
-
55
- @each $key in map.keys($flex-atomics) {
56
- @each $value in map.get($flex-atomics, $key) {
57
- .#{$key}-#{$value} {
58
- #{$key}: $value !important;
59
- }
60
- }
61
- }
62
-
63
- @include tablet {
64
- @each $key in map.keys($flex-atomics) {
65
- @each $value in map.get($flex-atomics, $key) {
66
- .#{$key}-#{$value}-tablet {
67
- #{$key}: $value !important;
68
- }
69
- }
70
- }
71
- }
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
+ row,
36
+ column,
37
+ column-reverse,
38
+ row-reverse
39
+ ),
40
+ 'flex-wrap': (
41
+ nowrap,
42
+ wrap,
43
+ wrap-reverse
44
+ ),
45
+ 'flex-shrink': (
46
+ 0,
47
+ 1
48
+ ),
49
+ 'flex-grow': (
50
+ 0,
51
+ 1
52
+ ),
53
+ 'flex-basis': (
54
+ 0
55
+ )
56
+ ) !default;
57
+
58
+ @each $key in map.keys($flex-atomics) {
59
+ @each $value in map.get($flex-atomics, $key) {
60
+ .#{$key}-#{$value} {
61
+ #{$key}: $value !important;
62
+ }
63
+ }
64
+ }
65
+
66
+ @include tablet {
67
+ @each $key in map.keys($flex-atomics) {
68
+ @each $value in map.get($flex-atomics, $key) {
69
+ .#{$key}-#{$value}-tablet {
70
+ #{$key}: $value !important;
71
+ }
72
+ }
73
+ }
74
+ }