From 74fe409bbcfc0b71566284f88f4dd9ff3c7f1e5e Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Sat, 28 Feb 2026 04:32:27 +0100 Subject: [PATCH] style: add CSS grid overrides for full-width and minimal page frames --- quartz/styles/base.scss | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 59f9a9c04..604ff8f56 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -309,6 +309,48 @@ a { } } +// ============================================================================ +// Page Frame Overrides +// ============================================================================ + +// Full-width frame: no sidebars, center content spans full width +.page[data-frame="full-width"] > #quartz-body { + grid-template-columns: auto; + grid-template-rows: auto auto auto; + grid-template-areas: + "grid-header" + "grid-center" + "grid-footer"; + + @media all and ($tablet) { + grid-template-columns: auto; + } + + & .center.full-width { + max-width: 100%; + min-width: 100%; + } +} + +// Minimal frame: no sidebars, no header/footer chrome, body content only + footer +.page[data-frame="minimal"] > #quartz-body { + grid-template-columns: auto; + grid-template-rows: auto auto; + grid-template-areas: + "grid-center" + "grid-footer"; + + @media all and ($tablet) { + grid-template-columns: auto; + } + + & .center.minimal { + max-width: 100%; + min-width: 100%; + margin: 0; + } +} + .footnotes { margin-top: 2rem; border-top: 1px solid var(--lightgray);