Tighten section navigation
This commit is contained in:
parent
9c314ad842
commit
e673a81169
2 changed files with 30 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ const documentationExplorer = Component.ConditionalRender({
|
|||
component: Component.DesktopOnly(
|
||||
Component.Explorer({
|
||||
title: "Documentation",
|
||||
folderDefaultState: "open",
|
||||
folderDefaultState: "collapsed",
|
||||
folderClickBehavior: "link",
|
||||
useSavedState: false,
|
||||
filterFn: (node) => node.slug.startsWith("Documentation"),
|
||||
|
|
@ -20,7 +20,7 @@ const gameDesignExplorer = Component.ConditionalRender({
|
|||
component: Component.DesktopOnly(
|
||||
Component.Explorer({
|
||||
title: "Game Design",
|
||||
folderDefaultState: "open",
|
||||
folderDefaultState: "collapsed",
|
||||
folderClickBehavior: "link",
|
||||
useSavedState: false,
|
||||
filterFn: (node) => node.slug.startsWith("Game-Design"),
|
||||
|
|
@ -34,7 +34,7 @@ const loreExplorer = Component.ConditionalRender({
|
|||
component: Component.DesktopOnly(
|
||||
Component.Explorer({
|
||||
title: "Lore",
|
||||
folderDefaultState: "open",
|
||||
folderDefaultState: "collapsed",
|
||||
folderClickBehavior: "link",
|
||||
useSavedState: false,
|
||||
filterFn: (node) => node.slug.startsWith("Lore"),
|
||||
|
|
@ -66,10 +66,6 @@ export const defaultContentPageLayout: PageLayout = {
|
|||
],
|
||||
left: sectionExplorers,
|
||||
right: [
|
||||
Component.ConditionalRender({
|
||||
component: Component.DesktopOnly(Component.TableOfContents()),
|
||||
condition: (page) => page.fileData.slug !== "index",
|
||||
}),
|
||||
Component.ConditionalRender({
|
||||
component: Component.Backlinks(),
|
||||
condition: (page) => page.fileData.slug !== "index",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,33 @@ body {
|
|||
height: calc(100vh - 8.2rem);
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.page > #quartz-body .explorer-content,
|
||||
.page > #quartz-body .explorer-content > .explorer-ul {
|
||||
scrollbar-color: var(--secondary) transparent;
|
||||
scrollbar-width: thin;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track,
|
||||
&::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
min-height: 2rem;
|
||||
border-radius: 999px;
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-button {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.delvehold-masthead {
|
||||
|
|
|
|||
Loading…
Reference in a new issue