Separate masthead from article chrome
This commit is contained in:
parent
d20d5cc839
commit
fc1a10488a
2 changed files with 23 additions and 13 deletions
|
|
@ -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: [],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue