@microsoft/atlas-css 5.0.0-test.1 → 5.0.0-test.2

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 (100) hide show
  1. package/dist/class-names.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.css.map +1 -1
  4. package/dist/tokens.json +1 -1
  5. package/dist/tokens.ts +14 -24
  6. package/package.json +2 -2
  7. package/src/atomics/aspect-ratio.scss +2 -2
  8. package/src/atomics/background.scss +2 -2
  9. package/src/atomics/border.scss +26 -26
  10. package/src/atomics/colors.scss +53 -53
  11. package/src/atomics/display.scss +9 -9
  12. package/src/atomics/flex.scss +3 -3
  13. package/src/atomics/gap.scss +14 -14
  14. package/src/atomics/height.scss +2 -2
  15. package/src/atomics/image.scss +2 -2
  16. package/src/atomics/line-clamp.scss +6 -6
  17. package/src/atomics/list.scss +2 -2
  18. package/src/atomics/overflow.scss +3 -3
  19. package/src/atomics/position.scss +6 -6
  20. package/src/atomics/shadow.scss +6 -6
  21. package/src/atomics/spacing-auto.scss +5 -5
  22. package/src/atomics/spacing.scss +14 -14
  23. package/src/atomics/typography.scss +39 -39
  24. package/src/atomics/visually-hidden.scss +3 -3
  25. package/src/atomics/width.scss +4 -4
  26. package/src/components/accordion.scss +18 -17
  27. package/src/components/badge.scss +21 -21
  28. package/src/components/banner.scss +18 -18
  29. package/src/components/breadcrumbs.scss +4 -4
  30. package/src/components/button-reset.scss +3 -3
  31. package/src/components/button.scss +54 -54
  32. package/src/components/buttons.scss +9 -9
  33. package/src/components/card.scss +30 -30
  34. package/src/components/code-block.scss +18 -18
  35. package/src/components/form/checkbox.scss +18 -18
  36. package/src/components/form/form.scss +15 -15
  37. package/src/components/form/help.scss +6 -6
  38. package/src/components/form/input.scss +26 -26
  39. package/src/components/form/label.scss +5 -5
  40. package/src/components/form/radio.scss +18 -18
  41. package/src/components/form/select.scss +28 -26
  42. package/src/components/form/textarea.scss +27 -27
  43. package/src/components/gradient-card.scss +8 -7
  44. package/src/components/gradient.scss +10 -10
  45. package/src/components/hero.scss +31 -31
  46. package/src/components/icon.scss +2 -2
  47. package/src/components/image.scss +4 -4
  48. package/src/components/index.scss +0 -1
  49. package/src/components/layout.scss +206 -96
  50. package/src/components/link-button.scss +8 -8
  51. package/src/components/markdown.scss +15 -15
  52. package/src/components/media.scss +3 -3
  53. package/src/components/message.scss +14 -14
  54. package/src/components/notification.scss +21 -21
  55. package/src/components/pagination.scss +28 -28
  56. package/src/components/persona.scss +14 -14
  57. package/src/components/popover.scss +15 -15
  58. package/src/components/progress-bar.scss +13 -13
  59. package/src/components/scroll.scss +2 -2
  60. package/src/components/segmented-control.scss +31 -31
  61. package/src/components/site-header.scss +37 -37
  62. package/src/components/steps.scss +6 -6
  63. package/src/components/stretched-link.scss +3 -3
  64. package/src/components/table.scss +18 -18
  65. package/src/components/tag.scss +37 -37
  66. package/src/components/timeline.scss +16 -16
  67. package/src/components/toggle.scss +17 -17
  68. package/src/core/animations.scss +4 -4
  69. package/src/core/bare-elements.scss +6 -6
  70. package/src/core/focus.scss +6 -6
  71. package/src/core/font-stack.scss +8 -8
  72. package/src/core/minireset.scss +2 -2
  73. package/src/core/normalize.scss +2 -2
  74. package/src/core/themes.scss +20 -20
  75. package/src/mixins/center.scss +1 -1
  76. package/src/mixins/chevron.scss +5 -5
  77. package/src/mixins/code-block.scss +9 -9
  78. package/src/mixins/colors.scss +1 -1
  79. package/src/mixins/control.scss +5 -5
  80. package/src/mixins/dismiss.scss +4 -4
  81. package/src/mixins/focus.scss +5 -5
  82. package/src/mixins/font-size.scss +4 -4
  83. package/src/mixins/force-colors.scss +1 -1
  84. package/src/mixins/gradient.scss +1 -1
  85. package/src/mixins/layout-gap.scss +5 -5
  86. package/src/mixins/line-clamp.scss +1 -1
  87. package/src/mixins/loader.scss +3 -3
  88. package/src/mixins/media-queries.scss +5 -5
  89. package/src/mixins/overlay.scss +1 -1
  90. package/src/mixins/transparency.scss +1 -1
  91. package/src/mixins/unselectable.scss +1 -1
  92. package/src/mixins/visually-hidden.scss +1 -1
  93. package/src/tokens/breakpoints.scss +1 -1
  94. package/src/tokens/colors.scss +2 -2
  95. package/src/tokens/layout.scss +3 -5
  96. package/src/tokens/shadow.scss +9 -8
  97. package/src/tokens/themes.scss +473 -473
  98. package/src/tokens/typography.scss +1 -5
  99. package/tokens/index.js +4 -1
  100. package/src/components/reading-width.scss +0 -10
@@ -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,21 +14,21 @@ $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
- line-height: 1.75;
24
+ line-height: 1.6;
25
25
 
26
26
  // Inline code
27
27
 
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,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
  .media {
5
5
  display: flex;
@@ -7,7 +7,7 @@
7
7
 
8
8
  + .media,
9
9
  .media {
10
- border-block-start: 1px solid $border;
10
+ border-block-start: 1px solid tokens.$border;
11
11
  margin-block-start: 1rem;
12
12
  padding-block-start: 1rem;
13
13
  }
@@ -1,22 +1,22 @@
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
- $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;
4
+ $message-font-size-xs: tokens.$font-size-9 !default;
5
+ $message-font-size-sm: tokens.$font-size-8 !default;
6
+ $message-font-size-md: tokens.$font-size-7 !default;
7
7
 
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;
8
+ $message-background-color: tokens.$body-background !default;
9
+ $message-gap-size: tokens.$spacer-4 !default;
10
+ $message-spacer-md: tokens.$spacer-3 !default;
11
+ $message-spacer-lg: tokens.$spacer-5 !default;
12
12
 
13
13
  $message-sender-width: 85% !default;
14
- $message-sender-background-color: $primary-background !default;
14
+ $message-sender-background-color: tokens.$primary-background !default;
15
15
 
16
- $message-border-radius: $border-radius-lg !default;
17
- $message-border: $border-width solid $border !default;
16
+ $message-border-radius: tokens.$border-radius-lg !default;
17
+ $message-border: tokens.$border-width solid tokens.$border !default;
18
18
 
19
- $message-content-padding: $spacer-5 !default;
19
+ $message-content-padding: tokens.$spacer-5 !default;
20
20
  $message-content-padding-inline-sm: 1rem !default;
21
21
  $message-content-padding-block-sm: 0.75rem !default;
22
22
  $message-content-padding-block-sm-sender: 0.5rem !default;
@@ -29,7 +29,7 @@ $message-content-padding-block-sm-sender: 0.5rem !default;
29
29
  grid-template-columns: max-content minmax(0, 1fr);
30
30
  gap: $message-gap-size;
31
31
  font-size: $message-font-size-md;
32
- line-height: $line-height-normal;
32
+ line-height: tokens.$line-height-normal;
33
33
  word-wrap: break-word;
34
34
 
35
35
  .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;
@@ -1,34 +1,34 @@
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
- $font-size-lg: $font-size-6 !default;
5
- $font-size-sm: $font-size-8 !default;
4
+ $font-size-lg: tokens.$font-size-6 !default;
5
+ $font-size-sm: tokens.$font-size-8 !default;
6
6
 
7
- $pagination-color: $text !default;
8
- $pagination-border-color: $border !default;
7
+ $pagination-color: tokens.$text !default;
8
+ $pagination-border-color: tokens.$border !default;
9
9
  $pagination-margin: 0.25rem !default;
10
10
 
11
- $pagination-hover-color: $primary-hover !default;
12
- $pagination-hover-border-color: $primary-hover !default;
11
+ $pagination-hover-color: tokens.$primary-hover !default;
12
+ $pagination-hover-border-color: tokens.$primary-hover !default;
13
13
 
14
- $pagination-focus-color: $primary-active !default;
15
- $pagination-focus-border-color: $primary-active !default;
14
+ $pagination-focus-color: tokens.$primary-active !default;
15
+ $pagination-focus-border-color: tokens.$primary-active !default;
16
16
 
17
- $pagination-active-color: $primary-active !default;
18
- $pagination-active-border-color: $primary-active !default;
17
+ $pagination-active-color: tokens.$primary-active !default;
18
+ $pagination-active-border-color: tokens.$primary-active !default;
19
19
 
20
- $pagination-disabled-color: $secondary-dark !default;
21
- $pagination-disabled-background-color: $secondary !default;
22
- $pagination-disabled-border-color: $secondary !default;
20
+ $pagination-disabled-color: tokens.$secondary-dark !default;
21
+ $pagination-disabled-background-color: tokens.$secondary !default;
22
+ $pagination-disabled-border-color: tokens.$secondary !default;
23
23
 
24
- $pagination-current-color: $text-invert !default;
25
- $pagination-current-background-color: $primary !default;
26
- $pagination-current-background-color-hover: $primary-hover !default;
27
- $pagination-current-border-color: $text-invert !default;
24
+ $pagination-current-color: tokens.$text-invert !default;
25
+ $pagination-current-background-color: tokens.$primary !default;
26
+ $pagination-current-background-color-hover: tokens.$primary-hover !default;
27
+ $pagination-current-border-color: tokens.$text-invert !default;
28
28
 
29
- $pagination-ellipsis-color: $secondary !default;
29
+ $pagination-ellipsis-color: tokens.$secondary !default;
30
30
 
31
- $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
31
+ $pagination-shadow-inset: inset 0 1px 2px tokens.$box-shadow-color-light;
32
32
 
33
33
  .pagination {
34
34
  flex-wrap: wrap;
@@ -65,14 +65,14 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
65
65
  }
66
66
  }
67
67
 
68
- @include forced-colors {
68
+ @include mixins.forced-colors {
69
69
  &::after {
70
70
  display: block;
71
71
  position: absolute;
72
72
  width: 0.375em;
73
73
  height: 0.375em;
74
74
  border: 1px solid LinkText;
75
- border-radius: $border-radius-rounded;
75
+ border-radius: tokens.$border-radius-rounded;
76
76
  background-color: LinkText;
77
77
  content: '';
78
78
  inset-block-start: 0.25em;
@@ -98,9 +98,9 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
98
98
  .pagination-next,
99
99
  .pagination-link,
100
100
  .pagination-ellipsis {
101
- @include control;
102
- @include unselectable;
103
- @include transparent-effects;
101
+ @include mixins.control;
102
+ @include mixins.unselectable;
103
+ @include mixins.transparent-effects;
104
104
 
105
105
  justify-content: center;
106
106
  font-size: 1em;
@@ -132,7 +132,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
132
132
  }
133
133
 
134
134
  .pagination-center {
135
- @include orientation-landscape {
135
+ @include mixins.orientation-landscape {
136
136
  .pagination-previous {
137
137
  order: 1;
138
138
  }
@@ -148,7 +148,7 @@ $pagination-shadow-inset: inset 0 1px 2px $box-shadow-color-light;
148
148
  }
149
149
  }
150
150
 
151
- @include tablet {
151
+ @include mixins.tablet {
152
152
  .pagination-list {
153
153
  flex-grow: 0;
154
154
  flex-shrink: 1;
@@ -1,27 +1,27 @@
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
- $persona-font-size-sm: $font-size-9 !default;
5
- $persona-font-size-md: $font-size-8 !default;
6
- $persona-font-size-lg: $font-size-7 !default;
4
+ $persona-font-size-sm: tokens.$font-size-9 !default;
5
+ $persona-font-size-md: tokens.$font-size-8 !default;
6
+ $persona-font-size-lg: tokens.$font-size-7 !default;
7
7
 
8
- $persona-avatar-background-color: $alternate-background-medium !default;
9
- $persona-avatar-font-color: $text-invert !default;
10
- $persona-avatar-border-radius: $border-radius-rounded;
8
+ $persona-avatar-background-color: tokens.$alternate-background-medium !default;
9
+ $persona-avatar-font-color: tokens.$text-invert !default;
10
+ $persona-avatar-border-radius: tokens.$border-radius-rounded;
11
11
 
12
- $persona-details-font-color: $text-subtle !default;
13
- $persona-name-font-size: $font-size-7 !default;
14
- $persona-name-font-color: $text !default;
15
- $persona-name-font-weight: $weight-semibold !default;
12
+ $persona-details-font-color: tokens.$text-subtle !default;
13
+ $persona-name-font-size: tokens.$font-size-7 !default;
14
+ $persona-name-font-color: tokens.$text !default;
15
+ $persona-name-font-weight: tokens.$weight-semibold !default;
16
16
 
17
- $persona-gap-size: $layout-1 !default;
17
+ $persona-gap-size: tokens.$layout-1 !default;
18
18
 
19
19
  .persona {
20
20
  display: flex;
21
21
  position: relative;
22
22
  gap: $persona-gap-size;
23
23
  font-size: $persona-font-size-md;
24
- line-height: $line-height-normal;
24
+ line-height: tokens.$line-height-normal;
25
25
 
26
26
  .persona-avatar {
27
27
  flex-shrink: 0;
@@ -1,15 +1,15 @@
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 max-nesting-depth, selector-max-specificity */
5
5
 
6
- $popover-background-color: $body-background !default;
7
- $popover-border: $border-width solid $border !default;
8
- $popover-border-radius: $border-radius !default;
9
- $popover-shadow: $box-shadow-heavy !default;
6
+ $popover-background-color: tokens.$body-background !default;
7
+ $popover-border: tokens.$border-width solid tokens.$border !default;
8
+ $popover-border-radius: tokens.$border-radius !default;
9
+ $popover-shadow: tokens.$box-shadow-heavy !default;
10
10
  $popover-width: 224px !default;
11
11
 
12
- $popover-chevron-color: $border !default;
12
+ $popover-chevron-color: tokens.$border !default;
13
13
 
14
14
  .popover {
15
15
  display: inline-block;
@@ -26,7 +26,7 @@ $popover-chevron-color: $border !default;
26
26
  .popover-content {
27
27
  position: absolute;
28
28
  width: $popover-width;
29
- padding: $spacer-5;
29
+ padding: tokens.$spacer-5;
30
30
  transform: none;
31
31
  inset-inline-start: 0;
32
32
  border: $popover-border;
@@ -36,13 +36,13 @@ $popover-chevron-color: $border !default;
36
36
 
37
37
  // hide popover until after position is calculated, then show
38
38
  visibility: hidden;
39
- z-index: $zindex-popover;
39
+ z-index: tokens.$zindex-popover;
40
40
  }
41
41
 
42
42
  &.popover-top {
43
43
  .popover-content {
44
44
  inset-block-end: 100%;
45
- margin-block-end: $spacer-3;
45
+ margin-block-end: tokens.$spacer-3;
46
46
  }
47
47
  }
48
48
 
@@ -52,12 +52,12 @@ $popover-chevron-color: $border !default;
52
52
  overflow: visible;
53
53
 
54
54
  &::before {
55
- @include chevron-up;
55
+ @include mixins.chevron-up;
56
56
 
57
57
  position: absolute;
58
58
  inset-inline-start: var(--caret-left, 50%);
59
59
  inset-inline-end: auto;
60
- inset-block-start: calc($chevron-arrow-size / -1.75);
60
+ inset-block-start: calc(mixins.$chevron-arrow-size / -1.75);
61
61
  border-color: $popover-chevron-color;
62
62
  background-color: $popover-background-color;
63
63
  z-index: 2;
@@ -76,17 +76,17 @@ $popover-chevron-color: $border !default;
76
76
  &.popover-caret.popover-caret-bottom {
77
77
  .popover-content {
78
78
  margin-block-start: 0;
79
- margin-block-end: $spacer-3;
79
+ margin-block-end: tokens.$spacer-3;
80
80
  overflow: visible;
81
81
 
82
82
  &::before {
83
- @include chevron-down;
83
+ @include mixins.chevron-down;
84
84
 
85
85
  position: absolute;
86
86
  inset-inline-start: var(--caret-left, 50%);
87
87
  inset-inline-end: auto;
88
88
  inset-block-start: auto;
89
- inset-block-end: calc($chevron-arrow-size / -1.75);
89
+ inset-block-end: calc(mixins.$chevron-arrow-size / -1.75);
90
90
  border-color: $popover-chevron-color;
91
91
  background-color: $popover-background-color;
92
92
  z-index: 2;
@@ -1,14 +1,14 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
3
-
4
- $progress-bar-background-color: $secondary-background-glow-high-contrast !default;
5
- $progress-bar-value-background-color: $primary !default;
6
- $progress-bar-value-background-color-warning: $warning !default;
7
- $progress-bar-value-background-color-danger: $danger !default;
8
- $progress-bar-value-background-color-success: $success !default;
9
- $progress-bar-height: $spacer-2 !default;
10
- $progress-bar-height-sm: $spacer-1 !default;
11
- $progress-bar-border-radius: $border-radius-rounded !default;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+
4
+ $progress-bar-background-color: tokens.$secondary-background-glow-high-contrast !default;
5
+ $progress-bar-value-background-color: tokens.$primary !default;
6
+ $progress-bar-value-background-color-warning: tokens.$warning !default;
7
+ $progress-bar-value-background-color-danger: tokens.$danger !default;
8
+ $progress-bar-value-background-color-success: tokens.$success !default;
9
+ $progress-bar-height: tokens.$spacer-2 !default;
10
+ $progress-bar-height-sm: tokens.$spacer-1 !default;
11
+ $progress-bar-border-radius: tokens.$border-radius-rounded !default;
12
12
  $progress-bar-indeterminate-animation-duration: 2s !default;
13
13
 
14
14
  .progress-bar {
@@ -101,12 +101,12 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
101
101
  background-color: transparent;
102
102
  }
103
103
 
104
- @include prefers-reduced-motion {
104
+ @include mixins.prefers-reduced-motion {
105
105
  animation-duration: 0s;
106
106
  }
107
107
  }
108
108
 
109
- @include forced-colors {
109
+ @include mixins.forced-colors {
110
110
  background-color: CanvasText !important;
111
111
 
112
112
  &::-webkit-progress-bar {
@@ -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
  .scroll-horizontal {
5
5
  overflow-x: auto;
@@ -1,29 +1,29 @@
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
  $sc-padding-sm: 0.5em 1em !default;
5
5
  $sc-padding: 0.75em 1.25em !default;
6
6
  $sc-padding-lg: 1em 1.5em !default;
7
7
 
8
- $sc-font-color: $primary !default;
9
- $sc-border: $border-width solid $border !default;
10
- $sc-border-radius-rounded: $border-radius-rounded;
11
- $sc-hover-background-color: $primary-background !default;
12
- $sc-hover-border: $border-width solid $border !default;
13
- $sc-hover-border-color: $primary-hover !default;
14
- $sc-active-hover-background-color: $primary-hover !default;
15
- $sc-active-hover-border-color: $primary-hover !default;
16
- $sc-active-background-color: $primary !default;
17
- $sc-active-border-color: $primary !default;
18
- $sc-active-color: $text-invert !default;
8
+ $sc-font-color: tokens.$primary !default;
9
+ $sc-border: tokens.$border-width solid tokens.$border !default;
10
+ $sc-border-radius-rounded: tokens.$border-radius-rounded;
11
+ $sc-hover-background-color: tokens.$primary-background !default;
12
+ $sc-hover-border: tokens.$border-width solid tokens.$border !default;
13
+ $sc-hover-border-color: tokens.$primary-hover !default;
14
+ $sc-active-hover-background-color: tokens.$primary-hover !default;
15
+ $sc-active-hover-border-color: tokens.$primary-hover !default;
16
+ $sc-active-background-color: tokens.$primary !default;
17
+ $sc-active-border-color: tokens.$primary !default;
18
+ $sc-active-color: tokens.$text-invert !default;
19
19
 
20
20
  .segmented-controls {
21
21
  display: grid;
22
22
  justify-content: center;
23
23
  width: 100%;
24
- grid-gap: $spacer-3;
24
+ grid-gap: tokens.$spacer-3;
25
25
  grid-template-columns: max-content auto max-content;
26
- font-size: $font-size-7;
26
+ font-size: tokens.$font-size-7;
27
27
  white-space: nowrap;
28
28
 
29
29
  .segmented-control-previous,
@@ -35,13 +35,13 @@ $sc-active-color: $text-invert !default;
35
35
  border-radius: $sc-border-radius-rounded;
36
36
  background-color: $sc-active-background-color;
37
37
  color: $sc-active-color;
38
- font-weight: $weight-semibold;
38
+ font-weight: tokens.$weight-semibold;
39
39
  cursor: pointer;
40
40
 
41
41
  &:hover {
42
42
  background-color: $sc-active-hover-background-color;
43
43
 
44
- @include forced-colors {
44
+ @include mixins.forced-colors {
45
45
  border-color: Highlight;
46
46
  background-color: Highlight;
47
47
  color: HighlightText;
@@ -49,9 +49,9 @@ $sc-active-color: $text-invert !default;
49
49
  }
50
50
  }
51
51
 
52
- @include focus-visible() {
53
- outline-color: $text-invert;
54
- outline-offset: -$focus-outline-offset;
52
+ @include mixins.focus-visible() {
53
+ outline-color: tokens.$text-invert;
54
+ outline-offset: -(tokens.$focus-outline-offset);
55
55
  }
56
56
  }
57
57
 
@@ -75,21 +75,21 @@ $sc-active-color: $text-invert !default;
75
75
  border-radius: $sc-border-radius-rounded;
76
76
  background-color: transparent;
77
77
  color: $sc-font-color;
78
- font-weight: $weight-semibold;
78
+ font-weight: tokens.$weight-semibold;
79
79
  cursor: pointer;
80
80
  appearance: none;
81
81
  vertical-align: top;
82
82
 
83
- @include focus-visible() {
84
- outline-color: $text-invert;
85
- outline-offset: -$focus-outline-offset;
83
+ @include mixins.focus-visible() {
84
+ outline-color: tokens.$text-invert;
85
+ outline-offset: -(tokens.$focus-outline-offset);
86
86
  }
87
87
 
88
88
  &:hover {
89
89
  background-color: $sc-hover-background-color;
90
- z-index: $zindex-hover;
90
+ z-index: tokens.$zindex-hover;
91
91
 
92
- @include forced-colors {
92
+ @include mixins.forced-colors {
93
93
  background-color: Highlight !important;
94
94
  color: HighlightText !important;
95
95
  forced-color-adjust: none;
@@ -99,14 +99,14 @@ $sc-active-color: $text-invert !default;
99
99
  &[aria-selected='true'] {
100
100
  background-color: $sc-active-background-color;
101
101
  color: $sc-active-color;
102
- z-index: $zindex-active;
102
+ z-index: tokens.$zindex-active;
103
103
 
104
104
  &:hover {
105
105
  background-color: $sc-active-hover-background-color;
106
- z-index: $zindex-hover;
106
+ z-index: tokens.$zindex-hover;
107
107
  }
108
108
 
109
- @include forced-colors {
109
+ @include mixins.forced-colors {
110
110
  background-color: SelectedItem;
111
111
  color: SelectedItemText;
112
112
  forced-color-adjust: none;
@@ -114,7 +114,7 @@ $sc-active-color: $text-invert !default;
114
114
  }
115
115
  }
116
116
 
117
- @include tablet {
117
+ @include mixins.tablet {
118
118
  .segmented-control,
119
119
  .segmented-previous,
120
120
  .segmented-next {
@@ -122,7 +122,7 @@ $sc-active-color: $text-invert !default;
122
122
  }
123
123
  }
124
124
 
125
- @include desktop {
125
+ @include mixins.desktop {
126
126
  .segmented-control,
127
127
  .segmented-previous,
128
128
  .segmented-next {