Update sass reset and componets to use modern css and internal mixins to replace typey.
This commit is contained in:
parent
4b4234df6f
commit
3fdb351a8a
1 changed files with 285 additions and 361 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue