From fc1a10488a7e0cf34f5b5816a7cd29bb38978995 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 25 Aug 2026 22:42:29 +0200 Subject: [PATCH] Separate masthead from article chrome --- site/quartz.layout.ts | 10 +--------- site/quartz/styles/custom.scss | 26 ++++++++++++++++++++++---- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/site/quartz.layout.ts b/site/quartz.layout.ts index ee9fb87..f17ad54 100644 --- a/site/quartz.layout.ts +++ b/site/quartz.layout.ts @@ -59,18 +59,10 @@ export const sharedPageComponents: SharedLayout = { export const defaultContentPageLayout: PageLayout = { beforeBody: [ - Component.ConditionalRender({ - component: Component.Breadcrumbs({ rootName: "DELVE/HOLD" }), - condition: (page) => page.fileData.slug !== "index", - }), Component.ConditionalRender({ component: Component.ArticleTitle(), condition: (page) => page.fileData.slug !== "index", }), - Component.ConditionalRender({ - component: Component.ContentMeta(), - condition: (page) => page.fileData.slug !== "index", - }), ], left: sectionExplorers, right: [ @@ -86,7 +78,7 @@ export const defaultContentPageLayout: PageLayout = { } export const defaultListPageLayout: PageLayout = { - beforeBody: [Component.Breadcrumbs({ rootName: "DELVE/HOLD" }), Component.ArticleTitle(), Component.ContentMeta()], + beforeBody: [Component.ArticleTitle()], left: sectionExplorers, right: [], } diff --git a/site/quartz/styles/custom.scss b/site/quartz/styles/custom.scss index 54faaa4..42d025d 100644 --- a/site/quartz/styles/custom.scss +++ b/site/quartz/styles/custom.scss @@ -11,16 +11,34 @@ body { } .page > #quartz-body .page-header { + display: contents; +} + +.page > #quartz-body .page-header > header { position: sticky; z-index: 20; top: 0; width: 100vw; - margin-top: 0; - margin-left: calc(50% - 50vw); box-sizing: border-box; + margin: 0 0 2.5rem calc(50% - 50vw); padding: 1.35rem max(1rem, env(safe-area-inset-left)); - background: rgba(5, 5, 5, 0.92); - backdrop-filter: blur(12px); + background: #050505; +} + +.page > #quartz-body .page-header > .popover-hint { + margin-bottom: 1rem; + + &:empty { + display: none; + } +} + +@media all and ($desktop) { + .page > #quartz-body .sidebar { + top: 8.2rem; + height: calc(100vh - 8.2rem); + padding-top: 2rem; + } } .delvehold-masthead {