@microsoft/atlas-css 3.48.0 → 3.50.0
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/package.json +1 -1
- package/src/atomics/overflow.scss +8 -0
- package/src/components/layout.scss +32 -12
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
max-inline-size: 100vw;
|
|
11
|
-
overflow-x: hidden;
|
|
12
11
|
|
|
13
12
|
// --layout-gutter by default, see tokens/layout.scss
|
|
14
13
|
#{$layout-gap-custom-property-name}: $layout-gap;
|
|
@@ -72,18 +71,18 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
72
71
|
.layout,
|
|
73
72
|
.layout.layout-single {
|
|
74
73
|
.layout-body {
|
|
75
|
-
grid-template: auto auto auto 1fr auto auto / 1fr;
|
|
74
|
+
grid-template: auto auto auto 1fr auto auto / minmax(0, 1fr);
|
|
76
75
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
.layout.layout-holy-grail {
|
|
81
80
|
.layout-body {
|
|
82
|
-
grid-template: auto auto auto 1fr auto auto / 1fr;
|
|
81
|
+
grid-template: auto auto auto 1fr auto auto / minmax(0, 1fr);
|
|
83
82
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
|
|
84
83
|
|
|
85
84
|
@include tablet {
|
|
86
|
-
grid-template: auto auto 1fr auto auto / 1fr 2fr;
|
|
85
|
+
grid-template: auto auto 1fr auto auto / minmax(0, 1fr) minmax(0, 2fr);
|
|
87
86
|
grid-template-areas:
|
|
88
87
|
'header header'
|
|
89
88
|
'hero hero'
|
|
@@ -93,7 +92,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
@include desktop {
|
|
96
|
-
grid-template: auto auto 1fr auto / 1fr 2fr 1fr;
|
|
95
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
|
|
97
96
|
grid-template-areas:
|
|
98
97
|
'header header header'
|
|
99
98
|
'hero hero hero'
|
|
@@ -118,11 +117,11 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
.layout-body {
|
|
121
|
-
grid-template: auto auto auto 1fr auto / 1fr;
|
|
120
|
+
grid-template: auto auto auto 1fr auto / minmax(0, 1fr);
|
|
122
121
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'footer';
|
|
123
122
|
|
|
124
123
|
@include tablet {
|
|
125
|
-
grid-template: auto auto 1fr auto / 1fr 2fr;
|
|
124
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 2fr);
|
|
126
125
|
grid-template-areas:
|
|
127
126
|
'header header'
|
|
128
127
|
'hero hero'
|
|
@@ -131,7 +130,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
@include desktop {
|
|
134
|
-
grid-template: auto auto 1fr auto / 1fr 3fr;
|
|
133
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 3fr);
|
|
135
134
|
grid-template-areas:
|
|
136
135
|
'header header'
|
|
137
136
|
'hero hero'
|
|
@@ -156,11 +155,11 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
.layout-body {
|
|
159
|
-
grid-template: auto auto auto 1fr auto / 1fr;
|
|
158
|
+
grid-template: auto auto auto 1fr auto / minmax(0, 1fr);
|
|
160
159
|
grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
|
|
161
160
|
|
|
162
161
|
@include tablet {
|
|
163
|
-
grid-template: auto auto 1fr auto / 2fr 1fr;
|
|
162
|
+
grid-template: auto auto 1fr auto / minmax(0, 2fr) minmax(0, 1fr);
|
|
164
163
|
grid-template-areas:
|
|
165
164
|
'header header'
|
|
166
165
|
'hero hero'
|
|
@@ -169,11 +168,11 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
@include desktop {
|
|
172
|
-
grid-template: auto auto 1fr auto / 3fr 1fr;
|
|
171
|
+
grid-template: auto auto 1fr auto / minmax(0, 3fr) minmax(0, 1fr);
|
|
173
172
|
grid-template-areas:
|
|
174
173
|
'header header'
|
|
175
174
|
'hero hero'
|
|
176
|
-
'main aside
|
|
175
|
+
'main aside'
|
|
177
176
|
'footer footer';
|
|
178
177
|
}
|
|
179
178
|
|
|
@@ -187,3 +186,24 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
188
|
}
|
|
189
|
+
|
|
190
|
+
.layout.layout-twin {
|
|
191
|
+
.layout-body-menu {
|
|
192
|
+
display: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.layout-body {
|
|
196
|
+
grid-template: auto auto auto 1fr auto / minmax(0, 1fr);
|
|
197
|
+
grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
|
|
198
|
+
|
|
199
|
+
// note that to make some extra room this layout is not constrained by the widescreen breakpoint like others
|
|
200
|
+
@include tablet {
|
|
201
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 1fr);
|
|
202
|
+
grid-template-areas:
|
|
203
|
+
'header header'
|
|
204
|
+
'hero hero'
|
|
205
|
+
'main aside '
|
|
206
|
+
'footer footer';
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|