@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.
Files changed (93) hide show
  1. package/dist/index.css.map +1 -1
  2. package/package.json +2 -2
  3. package/src/atomics/aspect-ratio.scss +0 -3
  4. package/src/atomics/background.scss +0 -3
  5. package/src/atomics/border.scss +26 -26
  6. package/src/atomics/colors.scss +53 -53
  7. package/src/atomics/display.scss +9 -9
  8. package/src/atomics/flex.scss +2 -3
  9. package/src/atomics/gap.scss +14 -14
  10. package/src/atomics/height.scss +0 -3
  11. package/src/atomics/image.scss +0 -3
  12. package/src/atomics/line-clamp.scss +5 -6
  13. package/src/atomics/list.scss +0 -3
  14. package/src/atomics/overflow.scss +2 -3
  15. package/src/atomics/position.scss +6 -6
  16. package/src/atomics/shadow.scss +5 -6
  17. package/src/atomics/spacing-auto.scss +4 -5
  18. package/src/atomics/spacing.scss +14 -14
  19. package/src/atomics/typography.scss +39 -39
  20. package/src/atomics/visually-hidden.scss +2 -3
  21. package/src/atomics/width.scss +3 -4
  22. package/src/components/accordion.scss +18 -17
  23. package/src/components/badge.scss +20 -21
  24. package/src/components/banner.scss +18 -18
  25. package/src/components/breadcrumbs.scss +3 -4
  26. package/src/components/button-reset.scss +2 -3
  27. package/src/components/button.scss +54 -55
  28. package/src/components/buttons.scss +9 -9
  29. package/src/components/card.scss +30 -30
  30. package/src/components/code-block.scss +18 -18
  31. package/src/components/form/checkbox.scss +18 -18
  32. package/src/components/form/form.scss +15 -15
  33. package/src/components/form/help.scss +5 -6
  34. package/src/components/form/input.scss +26 -26
  35. package/src/components/form/label.scss +4 -5
  36. package/src/components/form/radio.scss +18 -18
  37. package/src/components/form/select.scss +28 -26
  38. package/src/components/form/textarea.scss +27 -27
  39. package/src/components/gradient-card.scss +7 -7
  40. package/src/components/gradient.scss +10 -10
  41. package/src/components/hero.scss +31 -31
  42. package/src/components/icon.scss +0 -3
  43. package/src/components/image.scss +3 -4
  44. package/src/components/layout.scss +66 -72
  45. package/src/components/link-button.scss +8 -8
  46. package/src/components/markdown.scss +14 -14
  47. package/src/components/media.scss +2 -3
  48. package/src/components/message.scss +13 -14
  49. package/src/components/notification.scss +21 -21
  50. package/src/components/pagination.scss +28 -28
  51. package/src/components/persona.scss +13 -14
  52. package/src/components/popover.scss +15 -15
  53. package/src/components/progress-bar.scss +13 -13
  54. package/src/components/reading-width.scss +4 -4
  55. package/src/components/scroll.scss +0 -3
  56. package/src/components/segmented-control.scss +31 -31
  57. package/src/components/site-header.scss +36 -36
  58. package/src/components/steps.scss +5 -6
  59. package/src/components/stretched-link.scss +2 -3
  60. package/src/components/table.scss +18 -18
  61. package/src/components/tag.scss +36 -37
  62. package/src/components/timeline.scss +15 -16
  63. package/src/components/toggle.scss +17 -17
  64. package/src/core/animations.scss +3 -4
  65. package/src/core/bare-elements.scss +5 -6
  66. package/src/core/focus.scss +6 -6
  67. package/src/core/font-stack.scss +7 -8
  68. package/src/core/minireset.scss +0 -3
  69. package/src/core/normalize.scss +0 -3
  70. package/src/core/themes.scss +19 -20
  71. package/src/mixins/center.scss +0 -2
  72. package/src/mixins/chevron.scss +5 -5
  73. package/src/mixins/code-block.scss +9 -9
  74. package/src/mixins/colors.scss +0 -2
  75. package/src/mixins/control.scss +5 -5
  76. package/src/mixins/dismiss.scss +4 -4
  77. package/src/mixins/focus.scss +5 -5
  78. package/src/mixins/font-size.scss +4 -4
  79. package/src/mixins/force-colors.scss +0 -2
  80. package/src/mixins/gradient.scss +0 -2
  81. package/src/mixins/layout-gap.scss +5 -5
  82. package/src/mixins/line-clamp.scss +0 -2
  83. package/src/mixins/loader.scss +3 -3
  84. package/src/mixins/media-queries.scss +5 -5
  85. package/src/mixins/overlay.scss +0 -2
  86. package/src/mixins/transparency.scss +0 -2
  87. package/src/mixins/unselectable.scss +0 -2
  88. package/src/mixins/visually-hidden.scss +0 -2
  89. package/src/tokens/colors.scss +2 -2
  90. package/src/tokens/layout.scss +2 -2
  91. package/src/tokens/shadow.scss +9 -8
  92. package/src/tokens/themes.scss +473 -473
  93. package/tokens/index.js +4 -1
@@ -1,5 +1,4 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../mixins/index.scss' as mixins;
3
2
 
4
3
  $dimensions: 16 24 32 36 48 64 76 88 96 112 128 !default;
5
4
 
@@ -30,14 +29,14 @@ $dimensions: 16 24 32 36 48 64 76 88 96 112 128 !default;
30
29
  height: $dimension * 1px;
31
30
  }
32
31
 
33
- @include tablet {
32
+ @include mixins.tablet {
34
33
  &.image-#{$dimension}x#{$dimension}-tablet {
35
34
  width: $dimension * 1px;
36
35
  height: $dimension * 1px;
37
36
  }
38
37
  }
39
38
 
40
- @include desktop {
39
+ @include mixins.desktop {
41
40
  &.image-#{$dimension}x#{$dimension}-desktop {
42
41
  width: $dimension * 1px;
43
42
  height: $dimension * 1px;
@@ -1,16 +1,16 @@
1
1
  @use 'sass:math';
2
- @use '../tokens/index.scss' as *;
3
- @use '../mixins/index.scss' as *;
2
+ @use '../tokens/index.scss' as tokens;
3
+ @use '../mixins/index.scss' as mixins;
4
4
 
5
- $quarter-widescreen: math.div($breakpoint-widescreen, 4);
6
- $half-widescreen: math.div($breakpoint-widescreen, 2);
7
- $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
5
+ $quarter-widescreen: math.div(tokens.$breakpoint-widescreen, 4);
6
+ $half-widescreen: math.div(tokens.$breakpoint-widescreen, 2);
7
+ $three-quarters-widescreen: math.div(tokens.$breakpoint-widescreen, 4) * 3;
8
8
  $default-flyout-width-desktop: 320px !default;
9
9
  $default-flyout-width-widescreen: 480px !default;
10
10
  $layout-menu-collapsed-width: 68px !default;
11
11
  $menu-max-width: 275px !default;
12
12
  $aside-max-width: 275px !default;
13
- $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
13
+ $spacer-width: calc(275px - var(#{tokens.$layout-menu-collapsed-width-name})) !default;
14
14
 
15
15
  :root {
16
16
  --window-inner-height: 100vh; // to be overwritten by JS
@@ -25,37 +25,41 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
25
25
  max-inline-size: 100vw;
26
26
 
27
27
  // --layout-gutter by default, see tokens/layout.scss
28
- #{$layout-gap-custom-property-name}: $layout-gap;
29
- #{$layout-gap-scalable-custom-property-name}: $layout-gap;
30
- #{$layout-flyout-width-desktop-custom-property-name}: $default-flyout-width-desktop;
31
- #{$layout-flyout-width-widescreen-custom-property-name}: $default-flyout-width-widescreen;
32
- #{$layout-flyout-width-name}: var(#{$layout-flyout-width-desktop-custom-property-name});
33
- #{$layout-menu-collapsed-width-name}: $layout-menu-collapsed-width;
34
- #{$layout-menu-max-width-name}: $menu-max-width;
35
- #{$layout-aside-max-width-name}: $aside-max-width;
36
-
37
- @include widescreen {
38
- #{$layout-gap-scalable-custom-property-name}: $layout-widescreen-gap;
28
+ #{tokens.$layout-gap-custom-property-name}: tokens.$layout-gap;
29
+ #{tokens.$layout-gap-scalable-custom-property-name}: tokens.$layout-gap;
30
+ #{tokens.$layout-flyout-width-desktop-custom-property-name}: $default-flyout-width-desktop;
31
+ #{tokens.$layout-flyout-width-widescreen-custom-property-name}: $default-flyout-width-widescreen;
32
+ #{tokens.$layout-flyout-width-name}: var(
33
+ #{tokens.$layout-flyout-width-desktop-custom-property-name}
34
+ );
35
+ #{tokens.$layout-menu-collapsed-width-name}: $layout-menu-collapsed-width;
36
+ #{tokens.$layout-menu-max-width-name}: $menu-max-width;
37
+ #{tokens.$layout-aside-max-width-name}: $aside-max-width;
38
+
39
+ @include mixins.widescreen {
40
+ #{tokens.$layout-gap-scalable-custom-property-name}: tokens.$layout-widescreen-gap;
39
41
  // sets widescreen custom prop
40
- #{$layout-flyout-width-name}: var(#{$layout-flyout-width-widescreen-custom-property-name});
42
+ #{tokens.$layout-flyout-width-name}: var(
43
+ #{tokens.$layout-flyout-width-widescreen-custom-property-name}
44
+ );
41
45
  }
42
46
  }
43
47
 
44
48
  .layout-padding {
45
- padding-inline: var(#{$layout-gap-custom-property-name}) !important;
49
+ padding-inline: var(#{tokens.$layout-gap-custom-property-name}) !important;
46
50
  }
47
51
 
48
52
  .layout-margin {
49
- margin-inline: var(#{$layout-gap-scalable-custom-property-name}) !important;
53
+ margin-inline: var(#{tokens.$layout-gap-scalable-custom-property-name}) !important;
50
54
  }
51
55
 
52
- @include tablet {
56
+ @include mixins.tablet {
53
57
  .layout-padding-tablet {
54
- padding-inline: var(#{$layout-gap-custom-property-name}) !important;
58
+ padding-inline: var(#{tokens.$layout-gap-custom-property-name}) !important;
55
59
  }
56
60
 
57
61
  .layout-margin-tablet {
58
- margin-inline: var(#{$layout-gap-scalable-custom-property-name}) !important;
62
+ margin-inline: var(#{tokens.$layout-gap-scalable-custom-property-name}) !important;
59
63
  }
60
64
  }
61
65
 
@@ -118,9 +122,9 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
118
122
  }
119
123
 
120
124
  &.layout-flyout-active .layout-body {
121
- @include desktop {
125
+ @include mixins.desktop {
122
126
  grid-template: minmax(auto, max-content) auto auto 1fr auto auto / minmax(0, 1fr) var(
123
- #{$layout-flyout-width-name}
127
+ #{tokens.$layout-flyout-width-name}
124
128
  );
125
129
  grid-template-areas: 'header header' 'hero flyout' 'menu flyout' 'main flyout' 'aside flyout' 'footer footer';
126
130
  }
@@ -132,7 +136,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
132
136
  grid-template: minmax(auto, max-content) auto auto 1fr auto auto / minmax(0, 1fr);
133
137
  grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
134
138
 
135
- @include tablet {
139
+ @include mixins.tablet {
136
140
  grid-template:
137
141
  minmax(auto, max-content) auto var(--atlas-contained-height) auto auto /
138
142
  minmax(0, 1fr) minmax(0, 2fr);
@@ -144,7 +148,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
144
148
  'footer footer';
145
149
  }
146
150
 
147
- @include desktop {
151
+ @include mixins.desktop {
148
152
  grid-template:
149
153
  minmax(auto, max-content) auto var(--atlas-contained-height) auto /
150
154
  minmax(0, 275px)
@@ -159,10 +163,10 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
159
163
  }
160
164
 
161
165
  &.layout-menu-collapsed .layout-body {
162
- @include tablet {
166
+ @include mixins.tablet {
163
167
  grid-template:
164
168
  minmax(auto, max-content) auto var(--atlas-contained-height) auto auto / var(
165
- #{$layout-menu-collapsed-width-name}
169
+ #{tokens.$layout-menu-collapsed-width-name}
166
170
  )
167
171
  minmax(0, 1fr);
168
172
  grid-template-areas:
@@ -173,10 +177,10 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
173
177
  'footer footer';
174
178
  }
175
179
 
176
- @include desktop {
180
+ @include mixins.desktop {
177
181
  grid-template:
178
182
  minmax(auto, max-content) auto var(--atlas-contained-height) auto /
179
- var(#{$layout-menu-collapsed-width-name})
183
+ var(#{tokens.$layout-menu-collapsed-width-name})
180
184
  #{$spacer-width}
181
185
  minmax(0, 1fr)
182
186
  minmax(0, 275px);
@@ -189,10 +193,10 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
189
193
  }
190
194
 
191
195
  &.layout-flyout-active .layout-body {
192
- @include desktop {
196
+ @include mixins.desktop {
193
197
  grid-template:
194
198
  auto auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr)
195
- var(#{$layout-flyout-width-name});
199
+ var(#{tokens.$layout-flyout-width-name});
196
200
  grid-template-areas:
197
201
  'header header header header'
198
202
  'hero hero hero flyout'
@@ -202,12 +206,14 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
202
206
  }
203
207
 
204
208
  &.layout-flyout-active.layout-menu-collapsed .layout-body {
205
- @include desktop {
209
+ @include mixins.desktop {
206
210
  grid-template:
207
- auto auto var(--atlas-contained-height) auto / var(#{$layout-menu-collapsed-width-name})
211
+ auto auto var(--atlas-contained-height) auto / var(
212
+ #{tokens.$layout-menu-collapsed-width-name}
213
+ )
208
214
  minmax(0, 1fr)
209
215
  minmax(0, 275px)
210
- var(#{$layout-flyout-width-name});
216
+ var(#{tokens.$layout-flyout-width-name});
211
217
  grid-template-areas:
212
218
  'header header header header'
213
219
  'hero hero hero flyout'
@@ -226,7 +232,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
226
232
  grid-template: minmax(auto, max-content) auto auto 1fr auto / minmax(0, 1fr);
227
233
  grid-template-areas: 'header' 'hero' 'menu' 'main' 'footer';
228
234
 
229
- @include tablet {
235
+ @include mixins.tablet {
230
236
  grid-template:
231
237
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
232
238
  minmax(0, 2fr);
@@ -237,7 +243,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
237
243
  'footer footer';
238
244
  }
239
245
 
240
- @include desktop {
246
+ @include mixins.desktop {
241
247
  grid-template:
242
248
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
243
249
  minmax(0, 5fr);
@@ -250,10 +256,10 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
250
256
  }
251
257
 
252
258
  &.layout-menu-collapsed .layout-body {
253
- @include tablet {
259
+ @include mixins.tablet {
254
260
  grid-template:
255
261
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / var(
256
- #{$layout-menu-collapsed-width-name}
262
+ #{tokens.$layout-menu-collapsed-width-name}
257
263
  )
258
264
  minmax(0, 1fr);
259
265
  grid-template-areas:
@@ -263,10 +269,10 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
263
269
  'footer footer';
264
270
  }
265
271
 
266
- @include desktop {
272
+ @include mixins.desktop {
267
273
  grid-template:
268
274
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / var(
269
- #{$layout-menu-collapsed-width-name}
275
+ #{tokens.$layout-menu-collapsed-width-name}
270
276
  )
271
277
  minmax(0, 2fr) minmax(0, 1fr);
272
278
  grid-template-areas:
@@ -278,13 +284,13 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
278
284
  }
279
285
 
280
286
  &.layout-flyout-active .layout-body {
281
- @include desktop {
287
+ @include mixins.desktop {
282
288
  grid-template:
283
289
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
284
290
  0,
285
291
  4fr
286
292
  )
287
- var(#{$layout-flyout-width-name});
293
+ var(#{tokens.$layout-flyout-width-name});
288
294
  grid-template-areas:
289
295
  'header header header'
290
296
  'hero hero flyout'
@@ -294,11 +300,13 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
294
300
  }
295
301
 
296
302
  &.layout-flyout-active.layout-menu-collapsed .layout-body {
297
- @include desktop {
303
+ @include mixins.desktop {
298
304
  grid-template:
299
- auto auto var(--atlas-contained-height) auto / var(#{$layout-menu-collapsed-width-name})
305
+ auto auto var(--atlas-contained-height) auto / var(
306
+ #{tokens.$layout-menu-collapsed-width-name}
307
+ )
300
308
  minmax(0, 1fr)
301
- var(#{$layout-flyout-width-name});
309
+ var(#{tokens.$layout-flyout-width-name});
302
310
  grid-template-areas:
303
311
  'header header header'
304
312
  'hero hero flyout'
@@ -317,7 +325,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
317
325
  grid-template: minmax(auto, max-content) auto auto 1fr auto / minmax(0, 1fr);
318
326
  grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
319
327
 
320
- @include tablet {
328
+ @include mixins.tablet {
321
329
  grid-template:
322
330
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 5fr)
323
331
  minmax(0, 1fr);
@@ -328,7 +336,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
328
336
  'footer footer';
329
337
  }
330
338
 
331
- @include desktop {
339
+ @include mixins.desktop {
332
340
  grid-template:
333
341
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 5fr)
334
342
  minmax(0, 1fr);
@@ -339,7 +347,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
339
347
  'footer footer';
340
348
  }
341
349
 
342
- @include widescreen {
350
+ @include mixins.widescreen {
343
351
  grid-template: minmax(auto, max-content) auto var(--atlas-contained-height) auto / auto #{$three-quarters-widescreen} #{$quarter-widescreen} auto;
344
352
  grid-template-areas:
345
353
  'header header header header'
@@ -350,33 +358,19 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
350
358
  }
351
359
 
352
360
  &.layout-flyout-active .layout-body {
353
- @include desktop {
361
+ @include mixins.desktop {
354
362
  grid-template:
355
363
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 4fr) minmax(
356
364
  0,
357
365
  1fr
358
366
  )
359
- var(#{$layout-flyout-width-name});
367
+ var(#{tokens.$layout-flyout-width-name});
360
368
  grid-template-areas:
361
369
  'header header header'
362
370
  'hero hero flyout'
363
371
  'main aside flyout'
364
372
  'footer footer footer';
365
373
  }
366
-
367
- // @include widescreen {
368
- // grid-template:
369
- // minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 4fr) minmax(
370
- // 0,
371
- // 1fr
372
- // )
373
- // var(#{$layout-flyout-width-name});
374
- // grid-template-areas:
375
- // 'header header header'
376
- // 'hero hero flyout'
377
- // 'main aside flyout'
378
- // 'footer footer footer';
379
- // }
380
374
  }
381
375
  }
382
376
 
@@ -390,7 +384,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
390
384
  grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
391
385
 
392
386
  // note that to make some extra room this layout is not constrained by the widescreen breakpoint like others
393
- @include tablet {
387
+ @include mixins.tablet {
394
388
  grid-template:
395
389
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
396
390
  minmax(0, 1fr);
@@ -403,13 +397,13 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
403
397
  }
404
398
 
405
399
  &.layout-flyout-active .layout-body {
406
- @include desktop {
400
+ @include mixins.desktop {
407
401
  grid-template:
408
402
  minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
409
403
  0,
410
404
  1fr
411
405
  )
412
- var(#{$layout-flyout-width-name});
406
+ var(#{tokens.$layout-flyout-width-name});
413
407
  grid-template-areas:
414
408
  'header header header'
415
409
  'hero hero flyout'
@@ -428,7 +422,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
428
422
 
429
423
  // hide flyout when it's inactive
430
424
 
431
- @include desktop {
425
+ @include mixins.desktop {
432
426
  .layout.layout-flyout-active {
433
427
  .layout-body-flyout {
434
428
  display: block;
@@ -436,7 +430,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
436
430
  }
437
431
  }
438
432
 
439
- @include tablet {
433
+ @include mixins.tablet {
440
434
  .layout.layout-constrained {
441
435
  &.layout-twin,
442
436
  &.layout-sidecar-left,
@@ -464,7 +458,7 @@ $spacer-width: calc(275px - var(#{$layout-menu-collapsed-width-name})) !default;
464
458
  }
465
459
 
466
460
  // Because the holy grail has two rows (containing menu main, menu aside) on tablet, we cannot apply height constraints at that size
467
- @include desktop {
461
+ @include mixins.desktop {
468
462
  .layout.layout-constrained.layout-holy-grail {
469
463
  --atlas-contained-height: calc(
470
464
  var(--window-inner-height) - var(--atlas-header-height) - var(--atlas-footer-height) - 1px
@@ -1,17 +1,17 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
4
  /*
5
5
  * For use on <button> elements to emulate the appearance of standard <a> tags.
6
6
  */
7
7
 
8
8
  .link-button {
9
- @include transparent-effects;
9
+ @include mixins.transparent-effects;
10
10
 
11
11
  display: inline-block;
12
12
  padding: 0;
13
13
  border: none;
14
- color: $hyperlink;
14
+ color: tokens.$hyperlink;
15
15
  cursor: pointer;
16
16
 
17
17
  &:active,
@@ -22,16 +22,16 @@
22
22
  &.is-focused,
23
23
  &:hover,
24
24
  &.is-hovered {
25
- color: $primary-hover;
25
+ color: tokens.$primary-hover;
26
26
  text-decoration: underline !important;
27
27
  }
28
28
 
29
- @include focus-visible {
30
- color: $primary-hover;
29
+ @include mixins.focus-visible {
30
+ color: tokens.$primary-hover;
31
31
  text-decoration: underline !important;
32
32
  }
33
33
 
34
34
  &:visited {
35
- color: $visited;
35
+ color: tokens.$visited;
36
36
  }
37
37
  }
@@ -1,5 +1,5 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
4
  /* stylelint-disable selector-max-compound-selectors */
5
5
 
@@ -14,12 +14,12 @@ $list-top-spacing: 1rem !default;
14
14
  */
15
15
 
16
16
  .markdown {
17
- @include code-block;
17
+ @include mixins.code-block;
18
18
  }
19
19
  }
20
20
 
21
21
  .markdown {
22
- // @include responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
22
+ // @include mixins.responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
23
23
  font-size: $markdown-paragraph-size;
24
24
  line-height: 1.75;
25
25
 
@@ -28,7 +28,7 @@ $list-top-spacing: 1rem !default;
28
28
  :not(a):not(pre) > code {
29
29
  padding: 0.1em 0.2em;
30
30
  border-radius: 3px;
31
- background-color: $inline-code;
31
+ background-color: tokens.$inline-code;
32
32
  word-wrap: break-word;
33
33
  font-smooth: auto;
34
34
  font-size: 0.85em;
@@ -91,7 +91,7 @@ $list-top-spacing: 1rem !default;
91
91
  }
92
92
 
93
93
  h1 {
94
- @include responsive-font-size($font-size-1);
94
+ @include mixins.responsive-font-size(tokens.$font-size-1);
95
95
 
96
96
  margin-block-start: none;
97
97
  margin-block-end: 0.75rem;
@@ -105,27 +105,27 @@ $list-top-spacing: 1rem !default;
105
105
  }
106
106
 
107
107
  h2 {
108
- @include responsive-font-size($font-size-2);
108
+ @include mixins.responsive-font-size(tokens.$font-size-2);
109
109
 
110
110
  margin-block-start: 2rem;
111
111
  }
112
112
 
113
113
  h3 {
114
- @include responsive-font-size($font-size-3);
114
+ @include mixins.responsive-font-size(tokens.$font-size-3);
115
115
 
116
116
  margin-block-start: 1.875rem;
117
117
  margin-block-end: 1.125rem;
118
118
  }
119
119
 
120
120
  h4 {
121
- @include responsive-font-size($font-size-4);
121
+ @include mixins.responsive-font-size(tokens.$font-size-4);
122
122
 
123
123
  margin-block-start: 2.25rem;
124
124
  margin-block-end: 0.375rem;
125
125
  }
126
126
 
127
127
  h5 {
128
- @include responsive-font-size($font-size-5, false, 1.1rem);
128
+ @include mixins.responsive-font-size(tokens.$font-size-5, false, 1.1rem);
129
129
 
130
130
  margin-block-start: 2.25rem;
131
131
  margin-block-end: 0.375rem;
@@ -133,7 +133,7 @@ $list-top-spacing: 1rem !default;
133
133
  }
134
134
 
135
135
  h6 {
136
- @include responsive-font-size($font-size-6, false, 1.05rem);
136
+ @include mixins.responsive-font-size(tokens.$font-size-6, false, 1.05rem);
137
137
 
138
138
  margin-block-start: 2.25rem;
139
139
  margin-block-end: 0.375rem;
@@ -151,11 +151,11 @@ $list-top-spacing: 1rem !default;
151
151
  padding: 0 0.8em;
152
152
  border-width: 0 0 0 3px;
153
153
  border-style: solid;
154
- border-color: $border;
154
+ border-color: tokens.$border;
155
155
 
156
156
  footer {
157
- color: $text-subtle;
158
- font-size: $font-size-8;
157
+ color: tokens.$text-subtle;
158
+ font-size: tokens.$font-size-8;
159
159
  }
160
160
  }
161
161
  }
@@ -1,5 +1,4 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
3
2
 
4
3
  .media {
5
4
  display: flex;
@@ -7,7 +6,7 @@
7
6
 
8
7
  + .media,
9
8
  .media {
10
- border-block-start: 1px solid $border;
9
+ border-block-start: 1px solid tokens.$border;
11
10
  margin-block-start: 1rem;
12
11
  padding-block-start: 1rem;
13
12
  }
@@ -1,22 +1,21 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
3
2
 
4
- $message-font-size-xs: $font-size-9 !default;
5
- $message-font-size-sm: $font-size-8 !default;
6
- $message-font-size-md: $font-size-7 !default;
3
+ $message-font-size-xs: tokens.$font-size-9 !default;
4
+ $message-font-size-sm: tokens.$font-size-8 !default;
5
+ $message-font-size-md: tokens.$font-size-7 !default;
7
6
 
8
- $message-background-color: $body-background !default;
9
- $message-gap-size: $spacer-4 !default;
10
- $message-spacer-md: $spacer-3 !default;
11
- $message-spacer-lg: $spacer-5 !default;
7
+ $message-background-color: tokens.$body-background !default;
8
+ $message-gap-size: tokens.$spacer-4 !default;
9
+ $message-spacer-md: tokens.$spacer-3 !default;
10
+ $message-spacer-lg: tokens.$spacer-5 !default;
12
11
 
13
12
  $message-sender-width: 85% !default;
14
- $message-sender-background-color: $primary-background !default;
13
+ $message-sender-background-color: tokens.$primary-background !default;
15
14
 
16
- $message-border-radius: $border-radius-lg !default;
17
- $message-border: $border-width solid $border !default;
15
+ $message-border-radius: tokens.$border-radius-lg !default;
16
+ $message-border: tokens.$border-width solid tokens.$border !default;
18
17
 
19
- $message-content-padding: $spacer-5 !default;
18
+ $message-content-padding: tokens.$spacer-5 !default;
20
19
  $message-content-padding-inline-sm: 1rem !default;
21
20
  $message-content-padding-block-sm: 0.75rem !default;
22
21
  $message-content-padding-block-sm-sender: 0.5rem !default;
@@ -29,7 +28,7 @@ $message-content-padding-block-sm-sender: 0.5rem !default;
29
28
  grid-template-columns: max-content minmax(0, 1fr);
30
29
  gap: $message-gap-size;
31
30
  font-size: $message-font-size-md;
32
- line-height: $line-height-normal;
31
+ line-height: tokens.$line-height-normal;
33
32
  word-wrap: break-word;
34
33
 
35
34
  .message-time {
@@ -1,20 +1,20 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
- $notification-background: $secondary-background !default;
5
- $notification-padding: $spacer-5 !default;
4
+ $notification-background: tokens.$secondary-background !default;
5
+ $notification-padding: tokens.$spacer-5 !default;
6
6
 
7
- $notification-font-size: $font-size-7 !default;
8
- $notification-color: $text !default;
7
+ $notification-font-size: tokens.$font-size-7 !default;
8
+ $notification-color: tokens.$text !default;
9
9
 
10
- $notification-border-color: $control-border !default;
11
- $notification-border-width: $border-width !default;
12
- $notification-border-radius: $border-radius !default;
10
+ $notification-border-color: tokens.$control-border !default;
11
+ $notification-border-width: tokens.$border-width !default;
12
+ $notification-border-radius: tokens.$border-radius !default;
13
13
 
14
14
  $notification-icon-inline-spacing: 0.375em !default;
15
15
  $notification-icon-block-spacing: 0.2em !default;
16
16
 
17
- $notification-dismiss-margin: $spacer-2 !default;
17
+ $notification-dismiss-margin: tokens.$spacer-2 !default;
18
18
 
19
19
  .notification {
20
20
  display: grid;
@@ -24,18 +24,18 @@ $notification-dismiss-margin: $spacer-2 !default;
24
24
  grid-template-areas: 'notification-content dismiss';
25
25
  border: $notification-border-width solid $notification-border-color;
26
26
  border-radius: $notification-border-radius;
27
- outline-color: $text;
27
+ outline-color: tokens.$text;
28
28
  background-color: $notification-background;
29
29
  color: $notification-color;
30
30
  font-size: $notification-font-size;
31
- line-height: $line-height-normal;
31
+ line-height: tokens.$line-height-normal;
32
32
  word-wrap: break-word;
33
33
  word-break: break-word;
34
34
 
35
- @each $name, $color-set in $colors {
36
- $base: nth($color-set, $color-index-base);
37
- $dark: nth($color-set, $color-index-dark);
38
- $background: nth($color-set, $color-index-background);
35
+ @each $name, $color-set in tokens.$colors {
36
+ $base: nth($color-set, tokens.$color-index-base);
37
+ $dark: nth($color-set, tokens.$color-index-dark);
38
+ $background: nth($color-set, tokens.$color-index-background);
39
39
 
40
40
  &.notification-#{$name} {
41
41
  border-color: $dark;
@@ -56,7 +56,7 @@ $notification-dismiss-margin: $spacer-2 !default;
56
56
  }
57
57
 
58
58
  &::before {
59
- @include loader;
59
+ @include mixins.loader;
60
60
 
61
61
  position: absolute;
62
62
  inset-block-start: $notification-padding;
@@ -71,14 +71,14 @@ $notification-dismiss-margin: $spacer-2 !default;
71
71
  .notification-title,
72
72
  a:not(.button) {
73
73
  color: currentColor;
74
- font-weight: $weight-semibold;
74
+ font-weight: tokens.$weight-semibold;
75
75
  }
76
76
 
77
77
  a:not(.button) {
78
78
  text-decoration: underline;
79
79
 
80
80
  .theme-high-contrast & {
81
- color: $hyperlink;
81
+ color: tokens.$hyperlink;
82
82
  }
83
83
 
84
84
  &:hover {
@@ -90,7 +90,7 @@ $notification-dismiss-margin: $spacer-2 !default;
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: flex-start;
93
- margin-block-end: $layout-1;
93
+ margin-block-end: tokens.$layout-1;
94
94
 
95
95
  .icon {
96
96
  flex-shrink: 0;
@@ -102,7 +102,7 @@ $notification-dismiss-margin: $spacer-2 !default;
102
102
  }
103
103
 
104
104
  .notification-dismiss {
105
- @include dismiss-square;
105
+ @include mixins.dismiss-square;
106
106
 
107
107
  grid-area: dismiss;
108
108
  margin-inline-start: $notification-dismiss-margin;