fix: header width and clamping

This commit is contained in:
Christel Westerberg
2024-11-28 13:58:40 +01:00
parent baecfdbfb4
commit bdccce1d70
3 changed files with 48 additions and 26 deletions

View File

@@ -21,11 +21,15 @@
margin: var(--Spacing-x5) auto 0;
/* simulates padding on viewport smaller than --max-width-navigation */
width: min(
calc(100dvw - (var(--Spacing-x2) * 2)),
calc(100dvw - (var(--Layout-Desktop-Margin-Margin-min) * 2)),
var(--max-width-navigation)
);
}
.content {
margin: var(--Spacing-x3) 0 0;
}
.summary {
position: static;
display: grid;