@microsoft/atlas-css 5.0.0-test.0 → 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.
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens.json +1 -1
- package/dist/tokens.ts +4 -16
- package/package.json +2 -2
- package/src/atomics/aspect-ratio.scss +3 -0
- package/src/atomics/background.scss +3 -0
- package/src/atomics/border.scss +27 -24
- package/src/atomics/colors.scss +54 -51
- package/src/atomics/display.scss +10 -7
- package/src/atomics/flex.scss +3 -1
- package/src/atomics/gap.scss +15 -12
- package/src/atomics/height.scss +3 -0
- package/src/atomics/image.scss +3 -0
- package/src/atomics/index.scss +19 -19
- package/src/atomics/line-clamp.scss +7 -4
- package/src/atomics/list.scss +3 -0
- package/src/atomics/overflow.scss +4 -1
- package/src/atomics/position.scss +7 -4
- package/src/atomics/shadow.scss +7 -4
- package/src/atomics/spacing-auto.scss +6 -3
- package/src/atomics/spacing.scss +15 -12
- package/src/atomics/typography.scss +40 -37
- package/src/atomics/visually-hidden.scss +4 -1
- package/src/atomics/width.scss +4 -2
- package/src/components/accordion.scss +20 -16
- package/src/components/badge.scss +22 -19
- package/src/components/banner.scss +19 -16
- package/src/components/breadcrumbs.scss +5 -2
- package/src/components/button-reset.scss +4 -1
- package/src/components/button.scss +54 -52
- package/src/components/buttons.scss +14 -11
- package/src/components/card.scss +31 -28
- package/src/components/code-block.scss +19 -15
- package/src/components/form/checkbox.scss +19 -16
- package/src/components/form/form.scss +16 -12
- package/src/components/form/help.scss +7 -4
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +27 -24
- package/src/components/form/label.scss +6 -3
- package/src/components/form/radio.scss +19 -16
- package/src/components/form/select.scss +29 -24
- package/src/components/form/textarea.scss +28 -25
- package/src/components/gradient-card.scss +9 -5
- package/src/components/gradient.scss +11 -8
- package/src/components/hero.scss +32 -29
- package/src/components/icon.scss +3 -0
- package/src/components/image.scss +5 -2
- package/src/components/index.scss +34 -35
- package/src/components/layout.scss +108 -94
- package/src/components/link-button.scss +9 -6
- package/src/components/markdown.scss +16 -13
- package/src/components/media.scss +4 -1
- package/src/components/message.scss +15 -12
- package/src/components/notification.scss +22 -19
- package/src/components/pagination.scss +29 -26
- package/src/components/persona.scss +15 -12
- package/src/components/popover.scss +16 -13
- package/src/components/progress-bar.scss +13 -10
- package/src/components/scroll.scss +3 -0
- package/src/components/segmented-control.scss +32 -29
- package/src/components/site-header.scss +37 -33
- package/src/components/steps.scss +7 -4
- package/src/components/stretched-link.scss +4 -1
- package/src/components/table.scss +21 -18
- package/src/components/tag.scss +38 -35
- package/src/components/timeline.scss +16 -14
- package/src/components/toggle.scss +18 -15
- package/src/core/animations.scss +5 -2
- package/src/core/bare-elements.scss +7 -4
- package/src/core/focus.scss +7 -4
- package/src/core/font-stack.scss +9 -6
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +3 -0
- package/src/core/normalize.scss +3 -0
- package/src/core/themes.scss +20 -18
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +2 -0
- package/src/mixins/chevron.scss +6 -3
- package/src/mixins/code-block.scss +10 -8
- package/src/mixins/colors.scss +2 -0
- package/src/mixins/control.scss +6 -4
- package/src/mixins/dismiss.scss +5 -2
- package/src/mixins/focus.scss +6 -4
- package/src/mixins/font-size.scss +4 -3
- package/src/mixins/force-colors.scss +2 -0
- package/src/mixins/gradient.scss +2 -0
- package/src/mixins/index.scss +18 -18
- package/src/mixins/layout-gap.scss +6 -3
- package/src/mixins/line-clamp.scss +2 -0
- package/src/mixins/loader.scss +4 -2
- package/src/mixins/media-queries.scss +6 -4
- package/src/mixins/overlay.scss +2 -0
- package/src/mixins/transparency.scss +2 -0
- package/src/mixins/unselectable.scss +2 -0
- package/src/mixins/visually-hidden.scss +2 -0
- package/src/tokens/breakpoints.scss +1 -1
- package/src/tokens/colors.scss +3 -1
- package/src/tokens/direction.scss +0 -14
- package/src/tokens/index.scss +18 -18
- package/src/tokens/layout.scss +3 -1
- package/src/tokens/shadow.scss +10 -7
- package/src/tokens/themes.scss +474 -471
- package/src/tokens/typography.scss +1 -4
- package/tokens/index.js +33 -4
- package/src/components/reading-width.scss +0 -3
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@import './layout.scss';
|
|
1
|
+
@forward './accordion.scss';
|
|
2
|
+
@forward './badge.scss';
|
|
3
|
+
@forward './banner.scss';
|
|
4
|
+
@forward './breadcrumbs.scss';
|
|
5
|
+
@forward './button.scss';
|
|
6
|
+
@forward './buttons.scss';
|
|
7
|
+
@forward './card.scss';
|
|
8
|
+
@forward './button-reset.scss';
|
|
9
|
+
@forward './form/index.scss';
|
|
10
|
+
@forward './hero.scss';
|
|
11
|
+
@forward './gradient.scss';
|
|
12
|
+
@forward './gradient-card.scss';
|
|
13
|
+
@forward './link-button.scss';
|
|
14
|
+
@forward './code-block.scss';
|
|
15
|
+
@forward './markdown.scss'; // must be ordered after code-block
|
|
16
|
+
@forward './media.scss';
|
|
17
|
+
@forward './message.scss';
|
|
18
|
+
@forward './notification.scss';
|
|
19
|
+
@forward './icon.scss';
|
|
20
|
+
@forward './image.scss';
|
|
21
|
+
@forward './persona.scss';
|
|
22
|
+
@forward './popover.scss';
|
|
23
|
+
@forward './pagination.scss';
|
|
24
|
+
@forward './progress-bar.scss';
|
|
25
|
+
@forward './table.scss';
|
|
26
|
+
@forward './tag.scss';
|
|
27
|
+
@forward './toggle.scss';
|
|
28
|
+
@forward './scroll.scss';
|
|
29
|
+
@forward './site-header.scss';
|
|
30
|
+
@forward './steps.scss';
|
|
31
|
+
@forward './stretched-link.scss';
|
|
32
|
+
@forward './segmented-control.scss';
|
|
33
|
+
@forward './timeline.scss';
|
|
34
|
+
@forward './layout.scss';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use '../tokens/index.scss' as tokens;
|
|
3
|
+
@use '../mixins/index.scss' as mixins;
|
|
2
4
|
|
|
3
|
-
$quarter-widescreen: math.div(
|
|
4
|
-
$half-widescreen: math.div(
|
|
5
|
-
$three-quarters-widescreen: math.div(
|
|
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;
|
|
6
8
|
$default-flyout-width-desktop: 320px;
|
|
7
9
|
$default-flyout-width-widescreen: 480px;
|
|
8
10
|
$default-aside-min-width: 300px;
|
|
9
|
-
$eighth-widescreen: math.div(
|
|
10
|
-
$five-eighths-widescreen: math.div(
|
|
11
|
+
$eighth-widescreen: math.div(tokens.$breakpoint-widescreen, 8); // 225px
|
|
12
|
+
$five-eighths-widescreen: math.div(tokens.$breakpoint-widescreen, 8) * 5; // 1125px
|
|
11
13
|
$layout-menu-collapsed-width: 96px !default;
|
|
12
14
|
|
|
13
15
|
:root {
|
|
@@ -23,38 +25,42 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
23
25
|
max-inline-size: 100vw;
|
|
24
26
|
|
|
25
27
|
// --layout-gutter by default, see tokens/layout.scss
|
|
26
|
-
#{
|
|
27
|
-
#{
|
|
28
|
-
#{
|
|
29
|
-
#{
|
|
30
|
-
#{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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-collapsed-width-widescreen-spacer-width-name}: calc(
|
|
37
|
+
$quarter-widescreen - var(#{tokens.$layout-menu-collapsed-width-name})
|
|
34
38
|
);
|
|
35
39
|
|
|
36
|
-
@include widescreen {
|
|
37
|
-
#{
|
|
40
|
+
@include mixins.widescreen {
|
|
41
|
+
#{tokens.$layout-gap-scalable-custom-property-name}: tokens.$layout-widescreen-gap;
|
|
38
42
|
// sets widescreen custom prop
|
|
39
|
-
#{
|
|
43
|
+
#{tokens.$layout-flyout-width-name}: var(
|
|
44
|
+
#{tokens.$layout-flyout-width-widescreen-custom-property-name}
|
|
45
|
+
);
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
.layout-padding {
|
|
44
|
-
padding-inline: var(#{
|
|
50
|
+
padding-inline: var(#{tokens.$layout-gap-custom-property-name}) !important;
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
.layout-margin {
|
|
48
|
-
margin-inline: var(#{
|
|
54
|
+
margin-inline: var(#{tokens.$layout-gap-scalable-custom-property-name}) !important;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
|
-
@include tablet {
|
|
57
|
+
@include mixins.tablet {
|
|
52
58
|
.layout-padding-tablet {
|
|
53
|
-
padding-inline: var(#{
|
|
59
|
+
padding-inline: var(#{tokens.$layout-gap-custom-property-name}) !important;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
.layout-margin-tablet {
|
|
57
|
-
margin-inline: var(#{
|
|
63
|
+
margin-inline: var(#{tokens.$layout-gap-scalable-custom-property-name}) !important;
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
|
|
@@ -117,9 +123,9 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
&.layout-flyout-active .layout-body {
|
|
120
|
-
@include desktop {
|
|
126
|
+
@include mixins.desktop {
|
|
121
127
|
grid-template: minmax(auto, max-content) auto auto 1fr auto auto / minmax(0, 1fr) var(
|
|
122
|
-
#{
|
|
128
|
+
#{tokens.$layout-flyout-width-name}
|
|
123
129
|
);
|
|
124
130
|
grid-template-areas: 'header header' 'hero flyout' 'menu flyout' 'main flyout' 'aside flyout' 'footer footer';
|
|
125
131
|
}
|
|
@@ -131,10 +137,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
131
137
|
grid-template: minmax(auto, max-content) auto auto 1fr auto auto / minmax(0, 1fr);
|
|
132
138
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
|
|
133
139
|
|
|
134
|
-
@include tablet {
|
|
140
|
+
@include mixins.tablet {
|
|
135
141
|
grid-template:
|
|
136
|
-
minmax(auto, max-content) auto var(--atlas-contained-height) auto auto /
|
|
137
|
-
minmax(0,
|
|
142
|
+
minmax(auto, max-content) auto var(--atlas-contained-height) auto auto / minmax(0, 1fr)
|
|
143
|
+
minmax(0, 2fr);
|
|
138
144
|
grid-template-areas:
|
|
139
145
|
'header header'
|
|
140
146
|
'hero hero'
|
|
@@ -143,11 +149,11 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
143
149
|
'footer footer';
|
|
144
150
|
}
|
|
145
151
|
|
|
146
|
-
@include desktop {
|
|
152
|
+
@include mixins.desktop {
|
|
147
153
|
grid-template:
|
|
148
154
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
|
|
149
155
|
0,
|
|
150
|
-
|
|
156
|
+
2fr
|
|
151
157
|
)
|
|
152
158
|
minmax(0, 1fr);
|
|
153
159
|
grid-template-areas:
|
|
@@ -157,7 +163,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
157
163
|
'footer footer footer';
|
|
158
164
|
}
|
|
159
165
|
|
|
160
|
-
@include widescreen {
|
|
166
|
+
@include mixins.widescreen {
|
|
161
167
|
grid-template: minmax(auto, max-content) auto var(--atlas-contained-height) auto / auto #{$quarter-widescreen} #{$half-widescreen} #{$quarter-widescreen} auto;
|
|
162
168
|
grid-template-areas:
|
|
163
169
|
'header header header header header'
|
|
@@ -168,10 +174,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
168
174
|
}
|
|
169
175
|
|
|
170
176
|
&.layout-menu-collapsed .layout-body {
|
|
171
|
-
@include tablet {
|
|
177
|
+
@include mixins.tablet {
|
|
172
178
|
grid-template:
|
|
173
179
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto auto / var(
|
|
174
|
-
#{
|
|
180
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
175
181
|
)
|
|
176
182
|
minmax(0, 1fr);
|
|
177
183
|
grid-template-areas:
|
|
@@ -182,10 +188,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
182
188
|
'footer footer';
|
|
183
189
|
}
|
|
184
190
|
|
|
185
|
-
@include desktop {
|
|
191
|
+
@include mixins.desktop {
|
|
186
192
|
grid-template:
|
|
187
193
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / var(
|
|
188
|
-
#{
|
|
194
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
189
195
|
)
|
|
190
196
|
minmax(0, 4fr)
|
|
191
197
|
minmax(0, 23fr) minmax(0, 10fr);
|
|
@@ -196,12 +202,12 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
196
202
|
'footer footer footer footer';
|
|
197
203
|
}
|
|
198
204
|
|
|
199
|
-
@include widescreen {
|
|
205
|
+
@include mixins.widescreen {
|
|
200
206
|
grid-template:
|
|
201
207
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, auto) var(
|
|
202
|
-
#{
|
|
208
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
203
209
|
)
|
|
204
|
-
minmax(0, var(#{
|
|
210
|
+
minmax(0, var(#{tokens.$layout-menu-collapsed-width-widescreen-spacer-width-name}))
|
|
205
211
|
$half-widescreen minmax(0, #{$quarter-widescreen}) minmax(0, auto);
|
|
206
212
|
grid-template-areas:
|
|
207
213
|
'header header header header header header'
|
|
@@ -212,10 +218,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
&.layout-flyout-active .layout-body {
|
|
215
|
-
@include desktop {
|
|
221
|
+
@include mixins.desktop {
|
|
216
222
|
grid-template:
|
|
217
|
-
auto auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(0,
|
|
218
|
-
var(#{
|
|
223
|
+
auto auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr)
|
|
224
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
219
225
|
grid-template-areas:
|
|
220
226
|
'header header header header'
|
|
221
227
|
'hero hero hero flyout'
|
|
@@ -223,10 +229,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
223
229
|
'footer footer footer footer';
|
|
224
230
|
}
|
|
225
231
|
|
|
226
|
-
@include widescreen {
|
|
232
|
+
@include mixins.widescreen {
|
|
227
233
|
grid-template:
|
|
228
|
-
auto auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(0,
|
|
229
|
-
var(#{
|
|
234
|
+
auto auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr)
|
|
235
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
230
236
|
grid-template-areas:
|
|
231
237
|
'header header header header'
|
|
232
238
|
'hero hero hero flyout'
|
|
@@ -236,11 +242,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
236
242
|
}
|
|
237
243
|
|
|
238
244
|
&.layout-flyout-active.layout-menu-collapsed .layout-body {
|
|
239
|
-
@include desktop {
|
|
245
|
+
@include mixins.desktop {
|
|
240
246
|
grid-template:
|
|
241
|
-
auto auto var(--atlas-contained-height) auto / var(
|
|
242
|
-
|
|
243
|
-
|
|
247
|
+
auto auto var(--atlas-contained-height) auto / var(
|
|
248
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
249
|
+
)
|
|
250
|
+
minmax(0, 2fr) minmax(0, 1fr)
|
|
251
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
244
252
|
grid-template-areas:
|
|
245
253
|
'header header header header'
|
|
246
254
|
'hero hero hero flyout'
|
|
@@ -248,11 +256,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
248
256
|
'footer footer footer footer';
|
|
249
257
|
}
|
|
250
258
|
|
|
251
|
-
@include widescreen {
|
|
259
|
+
@include mixins.widescreen {
|
|
252
260
|
grid-template:
|
|
253
|
-
auto auto var(--atlas-contained-height) auto / var(
|
|
254
|
-
|
|
255
|
-
|
|
261
|
+
auto auto var(--atlas-contained-height) auto / var(
|
|
262
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
263
|
+
)
|
|
264
|
+
minmax(0, 2fr) minmax(0, 1fr)
|
|
265
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
256
266
|
grid-template-areas:
|
|
257
267
|
'header header header header'
|
|
258
268
|
'hero hero hero flyout'
|
|
@@ -271,10 +281,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
271
281
|
grid-template: minmax(auto, max-content) auto auto 1fr auto / minmax(0, 1fr);
|
|
272
282
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'footer';
|
|
273
283
|
|
|
274
|
-
@include tablet {
|
|
284
|
+
@include mixins.tablet {
|
|
275
285
|
grid-template:
|
|
276
286
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
|
|
277
|
-
minmax(0,
|
|
287
|
+
minmax(0, 2fr);
|
|
278
288
|
grid-template-areas:
|
|
279
289
|
'header header'
|
|
280
290
|
'hero hero'
|
|
@@ -282,10 +292,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
282
292
|
'footer footer';
|
|
283
293
|
}
|
|
284
294
|
|
|
285
|
-
@include desktop {
|
|
295
|
+
@include mixins.desktop {
|
|
286
296
|
grid-template:
|
|
287
297
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
|
|
288
|
-
minmax(0,
|
|
298
|
+
minmax(0, 3fr);
|
|
289
299
|
grid-template-areas:
|
|
290
300
|
'header header'
|
|
291
301
|
'hero hero'
|
|
@@ -293,7 +303,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
293
303
|
'footer footer';
|
|
294
304
|
}
|
|
295
305
|
|
|
296
|
-
@include widescreen {
|
|
306
|
+
@include mixins.widescreen {
|
|
297
307
|
grid-template: minmax(auto, max-content) auto var(--atlas-contained-height) auto / auto #{$quarter-widescreen} #{$three-quarters-widescreen} auto;
|
|
298
308
|
grid-template-areas:
|
|
299
309
|
'header header header header'
|
|
@@ -304,10 +314,10 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
304
314
|
}
|
|
305
315
|
|
|
306
316
|
&.layout-menu-collapsed .layout-body {
|
|
307
|
-
@include tablet {
|
|
317
|
+
@include mixins.tablet {
|
|
308
318
|
grid-template:
|
|
309
319
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / var(
|
|
310
|
-
#{
|
|
320
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
311
321
|
)
|
|
312
322
|
minmax(0, 1fr);
|
|
313
323
|
grid-template-areas:
|
|
@@ -317,13 +327,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
317
327
|
'footer footer';
|
|
318
328
|
}
|
|
319
329
|
|
|
320
|
-
@include desktop {
|
|
330
|
+
@include mixins.desktop {
|
|
321
331
|
grid-template:
|
|
322
332
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / var(
|
|
323
|
-
#{
|
|
333
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
324
334
|
)
|
|
325
|
-
minmax(0,
|
|
326
|
-
minmax(0,
|
|
335
|
+
minmax(0, 4fr)
|
|
336
|
+
minmax(0, 23fr) minmax(0, 10fr);
|
|
327
337
|
grid-template-areas:
|
|
328
338
|
'header header header header'
|
|
329
339
|
'hero hero hero hero'
|
|
@@ -331,12 +341,12 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
331
341
|
'footer footer footer footer';
|
|
332
342
|
}
|
|
333
343
|
|
|
334
|
-
@include widescreen {
|
|
344
|
+
@include mixins.widescreen {
|
|
335
345
|
grid-template:
|
|
336
346
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, auto) var(
|
|
337
|
-
#{
|
|
347
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
338
348
|
)
|
|
339
|
-
minmax(0, var(#{
|
|
349
|
+
minmax(0, var(#{tokens.$layout-menu-collapsed-width-widescreen-spacer-width-name}))
|
|
340
350
|
#{$three-quarters-widescreen} minmax(0, auto);
|
|
341
351
|
grid-template-areas:
|
|
342
352
|
'header header header header header'
|
|
@@ -347,13 +357,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
347
357
|
}
|
|
348
358
|
|
|
349
359
|
&.layout-flyout-active .layout-body {
|
|
350
|
-
@include desktop {
|
|
360
|
+
@include mixins.desktop {
|
|
351
361
|
grid-template:
|
|
352
362
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
|
|
353
363
|
0,
|
|
354
|
-
|
|
364
|
+
3fr
|
|
355
365
|
)
|
|
356
|
-
var(#{
|
|
366
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
357
367
|
grid-template-areas:
|
|
358
368
|
'header header header'
|
|
359
369
|
'hero hero flyout'
|
|
@@ -361,13 +371,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
361
371
|
'footer footer footer';
|
|
362
372
|
}
|
|
363
373
|
|
|
364
|
-
@include widescreen {
|
|
374
|
+
@include mixins.widescreen {
|
|
365
375
|
grid-template:
|
|
366
376
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
|
|
367
377
|
0,
|
|
368
|
-
|
|
378
|
+
3fr
|
|
369
379
|
)
|
|
370
|
-
var(#{
|
|
380
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
371
381
|
grid-template-areas:
|
|
372
382
|
'header header header'
|
|
373
383
|
'hero hero flyout'
|
|
@@ -377,11 +387,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
377
387
|
}
|
|
378
388
|
|
|
379
389
|
&.layout-flyout-active.layout-menu-collapsed .layout-body {
|
|
380
|
-
@include desktop {
|
|
390
|
+
@include mixins.desktop {
|
|
381
391
|
grid-template:
|
|
382
|
-
auto auto var(--atlas-contained-height) auto / var(
|
|
392
|
+
auto auto var(--atlas-contained-height) auto / var(
|
|
393
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
394
|
+
)
|
|
383
395
|
minmax(0, 1fr)
|
|
384
|
-
var(#{
|
|
396
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
385
397
|
grid-template-areas:
|
|
386
398
|
'header header header'
|
|
387
399
|
'hero hero flyout'
|
|
@@ -389,12 +401,14 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
389
401
|
'footer footer footer';
|
|
390
402
|
}
|
|
391
403
|
|
|
392
|
-
@include widescreen {
|
|
404
|
+
@include mixins.widescreen {
|
|
393
405
|
grid-template:
|
|
394
|
-
auto auto var(--atlas-contained-height) auto / var(
|
|
395
|
-
|
|
406
|
+
auto auto var(--atlas-contained-height) auto / var(
|
|
407
|
+
#{tokens.$layout-menu-collapsed-width-name}
|
|
408
|
+
)
|
|
409
|
+
minmax(0, var(#{tokens.$layout-menu-collapsed-width-widescreen-spacer-width-name}))
|
|
396
410
|
minmax(0, 1fr)
|
|
397
|
-
var(#{
|
|
411
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
398
412
|
grid-template-areas:
|
|
399
413
|
'header header header header'
|
|
400
414
|
'hero hero hero flyout'
|
|
@@ -413,9 +427,9 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
413
427
|
grid-template: minmax(auto, max-content) auto auto 1fr auto / minmax(0, 1fr);
|
|
414
428
|
grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
|
|
415
429
|
|
|
416
|
-
@include tablet {
|
|
430
|
+
@include mixins.tablet {
|
|
417
431
|
grid-template:
|
|
418
|
-
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0,
|
|
432
|
+
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 2fr)
|
|
419
433
|
minmax(0, 1fr);
|
|
420
434
|
grid-template-areas:
|
|
421
435
|
'header header'
|
|
@@ -424,9 +438,9 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
424
438
|
'footer footer';
|
|
425
439
|
}
|
|
426
440
|
|
|
427
|
-
@include desktop {
|
|
441
|
+
@include mixins.desktop {
|
|
428
442
|
grid-template:
|
|
429
|
-
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0,
|
|
443
|
+
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 3fr)
|
|
430
444
|
minmax(0, 1fr);
|
|
431
445
|
grid-template-areas:
|
|
432
446
|
'header header'
|
|
@@ -435,7 +449,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
435
449
|
'footer footer';
|
|
436
450
|
}
|
|
437
451
|
|
|
438
|
-
@include widescreen {
|
|
452
|
+
@include mixins.widescreen {
|
|
439
453
|
grid-template: minmax(auto, max-content) auto var(--atlas-contained-height) auto / auto #{$three-quarters-widescreen} #{$quarter-widescreen} auto;
|
|
440
454
|
grid-template-areas:
|
|
441
455
|
'header header header header'
|
|
@@ -446,13 +460,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
446
460
|
}
|
|
447
461
|
|
|
448
462
|
&.layout-flyout-active .layout-body {
|
|
449
|
-
@include desktop {
|
|
463
|
+
@include mixins.desktop {
|
|
450
464
|
grid-template:
|
|
451
|
-
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0,
|
|
465
|
+
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 3fr) minmax(
|
|
452
466
|
0,
|
|
453
467
|
1fr
|
|
454
468
|
)
|
|
455
|
-
var(#{
|
|
469
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
456
470
|
grid-template-areas:
|
|
457
471
|
'header header header'
|
|
458
472
|
'hero hero flyout'
|
|
@@ -460,13 +474,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
460
474
|
'footer footer footer';
|
|
461
475
|
}
|
|
462
476
|
|
|
463
|
-
@include widescreen {
|
|
477
|
+
@include mixins.widescreen {
|
|
464
478
|
grid-template:
|
|
465
|
-
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0,
|
|
479
|
+
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 3fr) minmax(
|
|
466
480
|
0,
|
|
467
481
|
1fr
|
|
468
482
|
)
|
|
469
|
-
var(#{
|
|
483
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
470
484
|
grid-template-areas:
|
|
471
485
|
'header header header'
|
|
472
486
|
'hero hero flyout'
|
|
@@ -486,7 +500,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
486
500
|
grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
|
|
487
501
|
|
|
488
502
|
// note that to make some extra room this layout is not constrained by the widescreen breakpoint like others
|
|
489
|
-
@include tablet {
|
|
503
|
+
@include mixins.tablet {
|
|
490
504
|
grid-template:
|
|
491
505
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr)
|
|
492
506
|
minmax(0, 1fr);
|
|
@@ -499,13 +513,13 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
499
513
|
}
|
|
500
514
|
|
|
501
515
|
&.layout-flyout-active .layout-body {
|
|
502
|
-
@include desktop {
|
|
516
|
+
@include mixins.desktop {
|
|
503
517
|
grid-template:
|
|
504
518
|
minmax(auto, max-content) auto var(--atlas-contained-height) auto / minmax(0, 1fr) minmax(
|
|
505
519
|
0,
|
|
506
520
|
1fr
|
|
507
521
|
)
|
|
508
|
-
var(#{
|
|
522
|
+
var(#{tokens.$layout-flyout-width-name});
|
|
509
523
|
grid-template-areas:
|
|
510
524
|
'header header header'
|
|
511
525
|
'hero hero flyout'
|
|
@@ -524,7 +538,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
524
538
|
|
|
525
539
|
// hide flyout when it's inactive
|
|
526
540
|
|
|
527
|
-
@include desktop {
|
|
541
|
+
@include mixins.desktop {
|
|
528
542
|
.layout.layout-flyout-active {
|
|
529
543
|
.layout-body-flyout {
|
|
530
544
|
display: block;
|
|
@@ -532,7 +546,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
532
546
|
}
|
|
533
547
|
}
|
|
534
548
|
|
|
535
|
-
@include tablet {
|
|
549
|
+
@include mixins.tablet {
|
|
536
550
|
.layout.layout-constrained {
|
|
537
551
|
&.layout-twin,
|
|
538
552
|
&.layout-sidecar-left,
|
|
@@ -560,7 +574,7 @@ $layout-menu-collapsed-width: 96px !default;
|
|
|
560
574
|
}
|
|
561
575
|
|
|
562
576
|
// Because the holy grail has two rows (containing menu main, menu aside) on tablet, we cannot apply height constraints at that size
|
|
563
|
-
@include desktop {
|
|
577
|
+
@include mixins.desktop {
|
|
564
578
|
.layout.layout-constrained.layout-holy-grail {
|
|
565
579
|
--atlas-contained-height: calc(
|
|
566
580
|
var(--window-inner-height) - var(--atlas-header-height) - var(--atlas-footer-height) - 1px
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
@use '../tokens/index.scss' as tokens;
|
|
2
|
+
@use '../mixins/index.scss' as mixins;
|
|
3
|
+
|
|
1
4
|
/*
|
|
2
5
|
* For use on <button> elements to emulate the appearance of standard <a> tags.
|
|
3
6
|
*/
|
|
4
7
|
|
|
5
8
|
.link-button {
|
|
6
|
-
@include transparent-effects;
|
|
9
|
+
@include mixins.transparent-effects;
|
|
7
10
|
|
|
8
11
|
display: inline-block;
|
|
9
12
|
padding: 0;
|
|
10
13
|
border: none;
|
|
11
|
-
color:
|
|
14
|
+
color: tokens.$hyperlink;
|
|
12
15
|
cursor: pointer;
|
|
13
16
|
|
|
14
17
|
&:active,
|
|
@@ -19,16 +22,16 @@
|
|
|
19
22
|
&.is-focused,
|
|
20
23
|
&:hover,
|
|
21
24
|
&.is-hovered {
|
|
22
|
-
color:
|
|
25
|
+
color: tokens.$primary-hover;
|
|
23
26
|
text-decoration: underline !important;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
@include focus-visible {
|
|
27
|
-
color:
|
|
29
|
+
@include mixins.focus-visible {
|
|
30
|
+
color: tokens.$primary-hover;
|
|
28
31
|
text-decoration: underline !important;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
&:visited {
|
|
32
|
-
color:
|
|
35
|
+
color: tokens.$visited;
|
|
33
36
|
}
|
|
34
37
|
}
|