ContentSidebar now uses grid; adjusted sizing
This commit is contained in:
@@ -71,6 +71,8 @@
|
|||||||
|
|
||||||
{#if tocEntries.length > 0}
|
{#if tocEntries.length > 0}
|
||||||
<div class="{type ? "toc-container-side" : "toc-container"} blurred-background">
|
<div class="{type ? "toc-container-side" : "toc-container"} blurred-background">
|
||||||
|
<p class="toc-header">on this page</p>
|
||||||
|
|
||||||
<ul class="toc-list">
|
<ul class="toc-list">
|
||||||
{#each tocEntries as entry}
|
{#each tocEntries as entry}
|
||||||
{@render tocEntryLine({ entry })}
|
{@render tocEntryLine({ entry })}
|
||||||
@@ -122,6 +124,14 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toc-header {
|
||||||
|
margin: 0 var(--padding-indent-base);
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-highlight);
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
}
|
||||||
|
|
||||||
.toc-list a {
|
.toc-list a {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
max-width: var(--page-width);
|
max-width: var(--page-width);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto minmax(300px, 24vw);
|
grid-template-columns: auto 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-sidebar-main-container {
|
.content-sidebar-main-container {
|
||||||
|
|||||||
Reference in New Issue
Block a user