@microsoft/atlas-css 3.2.0 → 3.6.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.
@@ -0,0 +1,353 @@
1
+ /* stylelint-disable */
2
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
3
+
4
+ /* Document
5
+ ========================================================================== */
6
+
7
+ /**
8
+ * 1. Correct the line height in all browsers.
9
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
10
+ */
11
+
12
+ html {
13
+ line-height: 1.15; /* 1 */
14
+ -webkit-text-size-adjust: 100%; /* 2 */
15
+ }
16
+
17
+ /* Sections
18
+ ========================================================================== */
19
+
20
+ /**
21
+ * Remove the margin in all browsers.
22
+ */
23
+
24
+ body {
25
+ margin: 0;
26
+ }
27
+
28
+ /**
29
+ * Render the `main` element consistently in IE.
30
+ */
31
+
32
+ main {
33
+ display: block;
34
+ }
35
+
36
+ /**
37
+ * Correct the font size and margin on `h1` elements within `section` and
38
+ * `article` contexts in Chrome, Firefox, and Safari.
39
+ */
40
+
41
+ h1 {
42
+ font-size: 2em;
43
+ margin: 0.67em 0;
44
+ }
45
+
46
+ /* Grouping content
47
+ ========================================================================== */
48
+
49
+ /**
50
+ * 1. Add the correct box sizing in Firefox.
51
+ * 2. Show the overflow in Edge and IE.
52
+ */
53
+
54
+ hr {
55
+ box-sizing: content-box; /* 1 */
56
+ height: 0; /* 1 */
57
+ overflow: visible; /* 2 */
58
+ }
59
+
60
+ /**
61
+ * 1. Correct the inheritance and scaling of font size in all browsers.
62
+ * 2. Correct the odd `em` font sizing in all browsers.
63
+ */
64
+
65
+ pre {
66
+ font-family: monospace, monospace; /* 1 */
67
+ font-size: 1em; /* 2 */
68
+ }
69
+
70
+ /* Text-level semantics
71
+ ========================================================================== */
72
+
73
+ /**
74
+ * Remove the gray background on active links in IE 10.
75
+ */
76
+
77
+ a {
78
+ background-color: transparent;
79
+ }
80
+
81
+ /**
82
+ * 1. Remove the bottom border in Chrome 57-
83
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
84
+ */
85
+
86
+ abbr[title] {
87
+ border-bottom: none; /* 1 */
88
+ text-decoration: underline; /* 2 */
89
+ text-decoration: underline dotted; /* 2 */
90
+ }
91
+
92
+ /**
93
+ * Add the correct font weight in Chrome, Edge, and Safari.
94
+ */
95
+
96
+ b,
97
+ strong {
98
+ font-weight: bolder;
99
+ }
100
+
101
+ /**
102
+ * 1. Correct the inheritance and scaling of font size in all browsers.
103
+ * 2. Correct the odd `em` font sizing in all browsers.
104
+ */
105
+
106
+ code,
107
+ kbd,
108
+ samp {
109
+ font-family: monospace, monospace; /* 1 */
110
+ font-size: 1em; /* 2 */
111
+ }
112
+
113
+ /**
114
+ * Add the correct font size in all browsers.
115
+ */
116
+
117
+ small {
118
+ font-size: 80%;
119
+ }
120
+
121
+ /**
122
+ * Prevent `sub` and `sup` elements from affecting the line height in
123
+ * all browsers.
124
+ */
125
+
126
+ sub,
127
+ sup {
128
+ font-size: 75%;
129
+ line-height: 0;
130
+ position: relative;
131
+ vertical-align: baseline;
132
+ }
133
+
134
+ sub {
135
+ bottom: -0.25em;
136
+ }
137
+
138
+ sup {
139
+ top: -0.5em;
140
+ }
141
+
142
+ /* Embedded content
143
+ ========================================================================== */
144
+
145
+ /**
146
+ * Remove the border on images inside links in IE 10.
147
+ */
148
+
149
+ img {
150
+ border-style: none;
151
+ }
152
+
153
+ /* Forms
154
+ ========================================================================== */
155
+
156
+ /**
157
+ * 1. Change the font styles in all browsers.
158
+ * 2. Remove the margin in Firefox and Safari.
159
+ */
160
+
161
+ button,
162
+ input,
163
+ optgroup,
164
+ select,
165
+ textarea {
166
+ font-family: inherit; /* 1 */
167
+ font-size: 100%; /* 1 */
168
+ line-height: 1.15; /* 1 */
169
+ margin: 0; /* 2 */
170
+ }
171
+
172
+ /**
173
+ * Show the overflow in IE.
174
+ * 1. Show the overflow in Edge.
175
+ */
176
+
177
+ button,
178
+ input {
179
+ /* 1 */
180
+ overflow: visible;
181
+ }
182
+
183
+ /**
184
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
185
+ * 1. Remove the inheritance of text transform in Firefox.
186
+ */
187
+
188
+ button,
189
+ select {
190
+ /* 1 */
191
+ text-transform: none;
192
+ }
193
+
194
+ /**
195
+ * Correct the inability to style clickable types in iOS and Safari.
196
+ */
197
+
198
+ button,
199
+ [type='button'],
200
+ [type='reset'],
201
+ [type='submit'] {
202
+ -webkit-appearance: button;
203
+ }
204
+
205
+ /**
206
+ * Remove the inner border and padding in Firefox.
207
+ */
208
+
209
+ button::-moz-focus-inner,
210
+ [type='button']::-moz-focus-inner,
211
+ [type='reset']::-moz-focus-inner,
212
+ [type='submit']::-moz-focus-inner {
213
+ border-style: none;
214
+ padding: 0;
215
+ }
216
+
217
+ /**
218
+ * Restore the focus styles unset by the previous rule.
219
+ */
220
+
221
+ button:-moz-focusring,
222
+ [type='button']:-moz-focusring,
223
+ [type='reset']:-moz-focusring,
224
+ [type='submit']:-moz-focusring {
225
+ outline: 1px dotted ButtonText;
226
+ }
227
+
228
+ /**
229
+ * Correct the padding in Firefox.
230
+ */
231
+
232
+ fieldset {
233
+ padding: 0.35em 0.75em 0.625em;
234
+ }
235
+
236
+ /**
237
+ * 1. Correct the text wrapping in Edge and IE.
238
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
239
+ * 3. Remove the padding so developers are not caught out when they zero out
240
+ * `fieldset` elements in all browsers.
241
+ */
242
+
243
+ legend {
244
+ box-sizing: border-box; /* 1 */
245
+ color: inherit; /* 2 */
246
+ display: table; /* 1 */
247
+ max-width: 100%; /* 1 */
248
+ padding: 0; /* 3 */
249
+ white-space: normal; /* 1 */
250
+ }
251
+
252
+ /**
253
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
254
+ */
255
+
256
+ progress {
257
+ vertical-align: baseline;
258
+ }
259
+
260
+ /**
261
+ * Remove the default vertical scrollbar in IE 10+.
262
+ */
263
+
264
+ textarea {
265
+ overflow: auto;
266
+ }
267
+
268
+ /**
269
+ * 1. Add the correct box sizing in IE 10.
270
+ * 2. Remove the padding in IE 10.
271
+ */
272
+
273
+ [type='checkbox'],
274
+ [type='radio'] {
275
+ box-sizing: border-box; /* 1 */
276
+ padding: 0; /* 2 */
277
+ }
278
+
279
+ /**
280
+ * Correct the cursor style of increment and decrement buttons in Chrome.
281
+ */
282
+
283
+ [type='number']::-webkit-inner-spin-button,
284
+ [type='number']::-webkit-outer-spin-button {
285
+ height: auto;
286
+ }
287
+
288
+ /**
289
+ * 1. Correct the odd appearance in Chrome and Safari.
290
+ * 2. Correct the outline style in Safari.
291
+ */
292
+
293
+ [type='search'] {
294
+ -webkit-appearance: textfield; /* 1 */
295
+ outline-offset: -2px; /* 2 */
296
+ }
297
+
298
+ /**
299
+ * Remove the inner padding in Chrome and Safari on macOS.
300
+ */
301
+
302
+ [type='search']::-webkit-search-decoration {
303
+ -webkit-appearance: none;
304
+ }
305
+
306
+ /**
307
+ * 1. Correct the inability to style clickable types in iOS and Safari.
308
+ * 2. Change font properties to `inherit` in Safari.
309
+ */
310
+
311
+ ::-webkit-file-upload-button {
312
+ -webkit-appearance: button; /* 1 */
313
+ font: inherit; /* 2 */
314
+ }
315
+
316
+ /* Interactive
317
+ ========================================================================== */
318
+
319
+ /*
320
+ * Add the correct display in Edge, IE 10+, and Firefox.
321
+ */
322
+
323
+ details {
324
+ display: block;
325
+ }
326
+
327
+ /*
328
+ * Add the correct display in all browsers.
329
+ */
330
+
331
+ summary {
332
+ display: list-item;
333
+ }
334
+
335
+ /* Misc
336
+ ========================================================================== */
337
+
338
+ /**
339
+ * Add the correct display in IE 10+.
340
+ */
341
+
342
+ template {
343
+ display: none;
344
+ }
345
+
346
+ /**
347
+ * Add the correct display in IE 10.
348
+ */
349
+
350
+ [hidden] {
351
+ display: none;
352
+ }
353
+ /* stylelint-enable */
@@ -44,6 +44,7 @@ $theme-names: map.keys($themes);
44
44
  @if $key == $root-theme {
45
45
  :root {
46
46
  @each $colorName, $colorVal in map.get($themes, $key) {
47
+ // stylelint-disable-next-line custom-property-pattern
47
48
  --theme-#{$colorName}: #{$colorVal};
48
49
  }
49
50
  }
@@ -52,6 +53,7 @@ $theme-names: map.keys($themes);
52
53
  @if $key == $print-theme {
53
54
  .theme-#{$key} {
54
55
  @each $colorName, $colorVal in map.get($themes, $key) {
56
+ // stylelint-disable-next-line custom-property-pattern
55
57
  --theme-#{$colorName}: #{$colorVal};
56
58
  }
57
59
  }
@@ -60,6 +62,7 @@ $theme-names: map.keys($themes);
60
62
  @media not print {
61
63
  .theme-#{$key} {
62
64
  @each $colorName, $colorVal in map-get($themes, $key) {
65
+ // stylelint-disable-next-line custom-property-pattern
63
66
  --theme-#{$colorName}: #{$colorVal};
64
67
  }
65
68
  }
@@ -13,10 +13,8 @@ $control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default;
13
13
  align-items: center;
14
14
  justify-content: flex-start;
15
15
  min-height: 2.25em;
16
- padding-top: $control-padding-vertical;
17
- padding-right: $control-padding-horizontal;
18
- padding-bottom: $control-padding-vertical;
19
- padding-left: $control-padding-horizontal;
16
+ padding-block: $control-padding-vertical;
17
+ padding-inline: $control-padding-horizontal;
20
18
  border: $control-border-width solid transparent;
21
19
  border-radius: $control-radius;
22
20
  font-size: $control-font-size;
@@ -1,3 +1,4 @@
1
+ // stylelint-disable declaration-block-no-redundant-longhand-properties
1
2
  @mixin focus() {
2
3
  outline-color: inherit;
3
4
  outline-offset: $focus-outline-offset;
@@ -47,3 +47,9 @@
47
47
  @content;
48
48
  }
49
49
  }
50
+
51
+ @mixin print {
52
+ @media print {
53
+ @content;
54
+ }
55
+ }
@@ -2,7 +2,8 @@
2
2
  * @sass-export-section="border"
3
3
  */
4
4
  $border-width: 1px !default;
5
- $border-width-lg: 0.5rem !default;
5
+ $border-width-md: 0.125rem !default;
6
+ $border-width-lg: 0.25rem !default;
6
7
  $border-radius: 0.25rem !default;
7
8
  $border-radius-lg: 0.5rem !default;
8
9
  //@end-sass-export-section
@@ -16,3 +16,10 @@ $directions: (
16
16
  'left': $user-left
17
17
  );
18
18
  //@end-sass-export-section
19
+
20
+ $logical-directions: (
21
+ 'top': 'block-start',
22
+ 'right': 'inline-end',
23
+ 'bottom': 'block-end',
24
+ 'left': 'inline-start'
25
+ );
@@ -28,45 +28,45 @@ $palette-grey-120: #171717 !default;
28
28
 
29
29
  $palette-black: #000 !default;
30
30
 
31
- $palette-black-opacity-90: hsla(0, 0%, 0%, 0.9) !default;
32
- $palette-black-opacity-80: hsla(0, 0%, 0%, 0.8) !default;
33
- $palette-black-opacity-70: hsla(0, 0%, 0%, 0.7) !default;
34
- $palette-black-opacity-60: hsla(0, 0%, 0%, 0.6) !default;
35
- $palette-black-opacity-50: hsla(0, 0%, 0%, 0.5) !default;
36
- $palette-black-opacity-40: hsla(0, 0%, 0%, 0.4) !default;
37
- $palette-black-opacity-30: hsla(0, 0%, 0%, 0.3) !default;
38
- $palette-black-opacity-20: hsla(0, 0%, 0%, 0.2) !default;
39
- $palette-black-opacity-10: hsla(0, 0%, 0%, 0.1) !default;
40
- $palette-black-opacity-0: hsla(0, 0%, 0%, 0) !default;
31
+ $palette-black-opacity-90: hsl(0deg 0% 0% / 90%) !default;
32
+ $palette-black-opacity-80: hsl(0deg 0% 0% / 80%) !default;
33
+ $palette-black-opacity-70: hsl(0deg 0% 0% / 70%) !default;
34
+ $palette-black-opacity-60: hsl(0deg 0% 0% / 60%) !default;
35
+ $palette-black-opacity-50: hsl(0deg 0% 0% / 50%) !default;
36
+ $palette-black-opacity-40: hsl(0deg 0% 0% / 40%) !default;
37
+ $palette-black-opacity-30: hsl(0deg 0% 0% / 30%) !default;
38
+ $palette-black-opacity-20: hsl(0deg 0% 0% / 20%) !default;
39
+ $palette-black-opacity-10: hsl(0deg 0% 0% / 10%) !default;
40
+ $palette-black-opacity-0: hsl(0deg 0% 0% / 0%) !default;
41
41
 
42
42
  // White
43
43
 
44
44
  $palette-white: #fff !default;
45
45
 
46
- $palette-white-opacity-0: hsla(0, 0%, 100%, 0);
47
- $palette-white-opacity-10: hsla(0, 0%, 100%, 0.1);
48
- $palette-white-opacity-20: hsla(0, 0%, 100%, 0.2);
49
- $palette-white-opacity-30: hsla(0, 0%, 100%, 0.3);
50
- $palette-white-opacity-40: hsla(0, 0%, 100%, 0.4);
51
- $palette-white-opacity-50: hsla(0, 0%, 100%, 0.5);
52
- $palette-white-opacity-60: hsla(0, 0%, 100%, 0.6);
53
- $palette-white-opacity-70: hsla(0, 0%, 100%, 0.7);
54
- $palette-white-opacity-80: hsla(0, 0%, 100%, 0.8);
55
- $palette-white-opacity-90: hsla(0, 0%, 100%, 0.9);
46
+ $palette-white-opacity-0: hsl(0deg 0% 100% / 0%);
47
+ $palette-white-opacity-10: hsl(0deg 0% 100% / 10%);
48
+ $palette-white-opacity-20: hsl(0deg 0% 100% / 20%);
49
+ $palette-white-opacity-30: hsl(0deg 0% 100% / 30%);
50
+ $palette-white-opacity-40: hsl(0deg 0% 100% / 40%);
51
+ $palette-white-opacity-50: hsl(0deg 0% 100% / 50%);
52
+ $palette-white-opacity-60: hsl(0deg 0% 100% / 60%);
53
+ $palette-white-opacity-70: hsl(0deg 0% 100% / 70%);
54
+ $palette-white-opacity-80: hsl(0deg 0% 100% / 80%);
55
+ $palette-white-opacity-90: hsl(0deg 0% 100% / 90%);
56
56
 
57
57
  // Values used for shadows
58
58
 
59
- $palette-black-opacity-108: hsla(0, 0%, 0%, 0.11) !default;
60
- $palette-black-opacity-132: hsla(0, 0%, 0%, 0.13) !default;
59
+ $palette-black-opacity-108: hsl(0deg 0% 0% / 11%) !default;
60
+ $palette-black-opacity-132: hsl(0deg 0% 0% / 13%) !default;
61
61
 
62
- $palette-black-opacity-22: hsla(0, 0%, 0%, 0.22) !default;
63
- $palette-black-opacity-18: hsla(0, 0%, 0%, 0.18) !default;
62
+ $palette-black-opacity-22: hsl(0deg 0% 0% / 22%) !default;
63
+ $palette-black-opacity-18: hsl(0deg 0% 0% / 18%) !default;
64
64
 
65
- $palette-white-opacity-108: hsla(0, 0%, 100%, 0.11) !default;
66
- $palette-white-opacity-132: hsla(0, 0%, 100%, 0.13) !default;
65
+ $palette-white-opacity-108: hsl(0deg 0% 100% / 11%) !default;
66
+ $palette-white-opacity-132: hsl(0deg 0% 100% / 13%) !default;
67
67
 
68
- $palette-white-opacity-22: hsla(0, 0%, 100%, 0.22) !default;
69
- $palette-white-opacity-18: hsla(0, 0%, 100%, 0.18) !default;
68
+ $palette-white-opacity-22: hsl(0deg 0% 100% / 22%) !default;
69
+ $palette-white-opacity-18: hsl(0deg 0% 100% / 18%) !default;
70
70
 
71
71
  // Blue
72
72
 
@@ -81,8 +81,8 @@ $palette-blue-80: #004173 !default;
81
81
  $palette-blue-90: #002b4d !default;
82
82
  $palette-blue-100: #000a13 !default;
83
83
 
84
- $palette-blue-opacity-30: hsla(206, 100%, 35%, 0.3);
85
- $palette-blue-opacity-70: hsla(206, 100%, 35%, 0.7);
84
+ $palette-blue-opacity-30: hsl(206deg 100% 35% / 30%);
85
+ $palette-blue-opacity-70: hsl(206deg 100% 35% / 70%);
86
86
 
87
87
  // Navy
88
88
 
@@ -97,8 +97,8 @@ $palette-navy-80: #14294c !default;
97
97
  $palette-navy-90: #061329 !default;
98
98
  $palette-navy-100: #000910 !default;
99
99
 
100
- $palette-navy-opacity-30: hsla(262, 46%, 17%, 0.3) !default;
101
- $palette-navy-opacity-70: hsla(262, 46%, 17%, 0.7) !default;
100
+ $palette-navy-opacity-30: hsl(262deg 46% 17% / 30%) !default;
101
+ $palette-navy-opacity-70: hsl(262deg 46% 17% / 70%) !default;
102
102
 
103
103
  // Turqoise
104
104
 
@@ -113,8 +113,8 @@ $palette-turqoise-80: #19474f !default;
113
113
  $palette-turqoise-90: #0f2a2f !default;
114
114
  $palette-turqoise-100: #050e0f !default;
115
115
 
116
- $palette-navy-opacity-30: hsla(189, 52%, 12%, 0.3) !default;
117
- $palette-navy-opacity-70: hsla(189, 52%, 12%, 0.7) !default;
116
+ $palette-navy-opacity-30: hsl(189deg 52% 12% / 30%) !default;
117
+ $palette-navy-opacity-70: hsl(189deg 52% 12% / 70%) !default;
118
118
 
119
119
  // Green
120
120
 
@@ -129,8 +129,8 @@ $palette-green-80: #054b16 !default;
129
129
  $palette-green-90: #05350c !default;
130
130
  $palette-green-100: #061a00 !default;
131
131
 
132
- $palette-green-opacity-30: hsla(120, 37%, 45%, 0.3) !default;
133
- $palette-green-opacity-70: hsla(120, 37%, 45%, 0.7) !default;
132
+ $palette-green-opacity-30: hsl(120deg 37% 45% / 30%) !default;
133
+ $palette-green-opacity-70: hsl(120deg 37% 45% / 70%) !default;
134
134
 
135
135
  // Purple
136
136
 
@@ -145,8 +145,8 @@ $palette-purple-80: #3b2e58 !default;
145
145
  $palette-purple-90: #201843 !default;
146
146
  $palette-purple-100: #03002c !default;
147
147
 
148
- $palette-purple-opacity-30: hsla(251, 47%, 18%, 0.3) !default;
149
- $palette-purple-opacity-70: hsla(251, 47%, 18%, 0.7) !default;
148
+ $palette-purple-opacity-30: hsl(251deg 47% 18% / 30%) !default;
149
+ $palette-purple-opacity-70: hsl(251deg 47% 18% / 70%) !default;
150
150
 
151
151
  // Yellow
152
152
 
@@ -161,8 +161,8 @@ $palette-yellow-80: #6a4b16 !default;
161
161
  $palette-yellow-90: #4f340e !default;
162
162
  $palette-yellow-100: #2d1703 !default;
163
163
 
164
- $palette-yellow-opacity-30: hsla(44, 100%, 50%, 0.3) !default;
165
- $palette-yellow-opacity-70: hsla(44, 100%, 50%, 0.7) !default;
164
+ $palette-yellow-opacity-30: hsl(44deg 100% 50% / 30%) !default;
165
+ $palette-yellow-opacity-70: hsl(44deg 100% 50% / 70%) !default;
166
166
 
167
167
  // Red
168
168
 
@@ -177,8 +177,8 @@ $palette-red-80: #630001 !default;
177
177
  $palette-red-90: #470001 !default;
178
178
  $palette-red-100: #290001 !default;
179
179
 
180
- $palette-red-opacity-30: hsla(0, 100%, 33%, 0.3) !default;
181
- $palette-red-opacity-70: hsla(0, 100%, 33%, 0.7) !default;
180
+ $palette-red-opacity-30: hsl(0deg 100% 33% / 30%) !default;
181
+ $palette-red-opacity-70: hsl(0deg 100% 33% / 70%) !default;
182
182
 
183
183
  // High Contrast
184
184