Update sass reset and componets to use modern css and internal mixins to replace typey.

This commit is contained in:
Fredrik Jonsson 2023-01-25 10:05:44 +01:00
commit 3fdb351a8a

View file

@ -2,10 +2,10 @@
.layout {
&__page {
max-width: $max-content-width;
max-width: var(--max-page-width);
@include respond-to(s) {
margin: 0 auto;
margin-inline: auto;
min-height: 100vh;
}
}
@ -19,9 +19,28 @@
&__page-top,
&__page-bottom,
&__cookieconsent {
padding: 0 $zen-gutters;
padding-inline: var(--gutters);
min-width: 0; // With display grid defaults to auto, making <pre> overflow.
}
@if $max-page-width > $max-content-width {
&__main {
padding-inline: 0;
}
&__navigation > *,
&__main > * {
max-width: var(--max-content-width);
&:not(.stretch) {
padding-inline: var(--gutters);
}
@include respond-to(s) {
margin-inline: auto;
}
}
}
}
@supports (display: grid) {