Remove content div wrappers. Use grid template columns for main to support stretch and breakout classes.

This commit is contained in:
Fredrik Jonsson 2023-11-10 14:52:09 +01:00
commit 4bb4c9dec1
3 changed files with 169 additions and 172 deletions

View file

@ -44,6 +44,10 @@
width: fit-content;
}
&--gutter {
padding-inline: var(--gutters);
}
&--inverted {
@extend %link-inverted;
background: var(--color-border);
@ -51,7 +55,7 @@
// Make sure headings etc. also gets inverted.
* {
color: inherit;
color: var(--color-text-bg);
}
}

View file

@ -23,6 +23,10 @@
grid-column: span 2;
}
&--gutter {
padding-inline: var(--gutters);
}
&--inverted {
@extend %link-inverted;
background: var(--color-border);

View file

@ -1,12 +0,0 @@
// Stretch content to the page edge.
//
// Requeried: Set max-page-width to a larger value than max-content-width.
.stretch,
%stretch {
width: 100%;
.main & {
max-width: none;
}
}