docs-site: fix toc
This commit is contained in:
@@ -156,11 +156,11 @@
|
|||||||
{#if tocOpen}
|
{#if tocOpen}
|
||||||
<ul class="toc-menu">
|
<ul class="toc-menu">
|
||||||
<li>
|
<li>
|
||||||
<a href={`#${data.toc[0].id}`} onclick={scrollToTop}
|
<a href={`#${headings[0].id}`} onclick={scrollToTop}
|
||||||
>{data.toc[0].content}</a
|
>{headings[0].content}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{@render tocLinks(headings)}
|
{@render tocLinks(headings[0].children)}
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -234,6 +234,7 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
.toc-title {
|
.toc-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user