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