1
1
@use ' sass:math' ;
2
2
3
+ $twelveth-widescreen : math .div ($breakpoint-widescreen , 12 );
4
+ $sixth-widescreen : math .div ($breakpoint-widescreen , 6 );
3
5
$quarter-widescreen : math .div ($breakpoint-widescreen , 4 );
4
6
$half-widescreen : math .div ($breakpoint-widescreen , 2 );
5
7
$three-quarters-widescreen : math .div ($breakpoint-widescreen , 4 ) * 3 ;
@@ -54,6 +56,11 @@ $default-flyout-width-widescreen: 480px;
54
56
display : grid ;
55
57
width : 100% ;
56
58
max-width : 100% ;
59
+
60
+ // use a min function to get the smallest of the text-wrap-mode:
61
+ // either 1/12 of the viewport width or 1/12 of $breakpoint-widescreen;
62
+ // assign to variable $column-gap
63
+ // use css min function not math.min;
57
64
}
58
65
59
66
// grid-area values
@@ -136,6 +143,7 @@ $default-flyout-width-widescreen: 480px;
136
143
}
137
144
138
145
@include desktop {
146
+ column-gap : math .div (100vw , 12 ); // addition
139
147
grid-template :
140
148
minmax (auto , max-content ) auto var (--atlas-contained-height ) auto / minmax (0 , 1fr ) minmax (
141
149
0 ,
@@ -150,17 +158,21 @@ $default-flyout-width-widescreen: 480px;
150
158
}
151
159
152
160
@include widescreen {
153
- grid-template : minmax (auto , max-content ) auto var (--atlas-contained-height ) auto / auto #{$quarter-widescreen } #{$half-widescreen } #{$quarter-widescreen } auto ;
161
+ column-gap : 0 ; // reset the column gap set on desktop // addition
162
+ grid-template :
163
+ minmax (auto , max-content ) auto var (--atlas-contained-height )
164
+ auto / auto #{$sixth-widescreen } #{$twelveth-widescreen } #{$half-widescreen } #{$twelveth-widescreen } #{$sixth-widescreen } auto ; // addition
154
165
grid-template-areas :
155
- ' header header header header header'
156
- ' hero hero hero hero hero'
157
- ' . menu main aside .'
158
- ' footer footer footer footer footer' ;
166
+ ' header header header header header header header '
167
+ ' hero hero hero hero hero hero hero '
168
+ ' . menu . main . aside .'
169
+ ' footer footer footer footer footer footer footer ' ;
159
170
}
160
171
}
161
172
162
173
& .layout-flyout-active .layout-body {
163
174
@include desktop {
175
+ column-gap : 36px ; // addition
164
176
grid-template :
165
177
auto auto var (--atlas-contained-height ) auto / minmax (0 , 1fr ) minmax (0 , 2fr ) minmax (0 , 1fr )
166
178
var (#{$layout-flyout-width-name } );
@@ -172,6 +184,7 @@ $default-flyout-width-widescreen: 480px;
172
184
}
173
185
174
186
@include widescreen {
187
+ column-gap : 48px ; // addition
175
188
grid-template :
176
189
auto auto var (--atlas-contained-height ) auto / minmax (0 , 1fr ) minmax (0 , 2fr ) minmax (0 , 1fr )
177
190
var (#{$layout-flyout-width-name } );
@@ -216,7 +229,9 @@ $default-flyout-width-widescreen: 480px;
216
229
}
217
230
218
231
@include widescreen {
219
- grid-template : minmax (auto , max-content ) auto var (--atlas-contained-height ) auto / auto #{$quarter-widescreen } #{$three-quarters-widescreen } auto ;
232
+ grid-template :
233
+ minmax (auto , max-content ) auto var (--atlas-contained-height )
234
+ auto / auto #{$quarter-widescreen } #{$three-quarters-widescreen } auto ;
220
235
grid-template-areas :
221
236
' header header header header'
222
237
' hero hero hero hero'
@@ -288,7 +303,9 @@ $default-flyout-width-widescreen: 480px;
288
303
}
289
304
290
305
@include widescreen {
291
- grid-template : minmax (auto , max-content ) auto var (--atlas-contained-height ) auto / auto #{$three-quarters-widescreen } #{$quarter-widescreen } auto ;
306
+ grid-template :
307
+ minmax (auto , max-content ) auto var (--atlas-contained-height )
308
+ auto / auto #{$three-quarters-widescreen } #{$quarter-widescreen } auto ;
292
309
grid-template-areas :
293
310
' header header header header'
294
311
' hero hero hero hero'
0 commit comments