mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 02:11:35 +01:00
Change position of toc
This commit is contained in:
@@ -27,7 +27,9 @@ const { Content, headings } = await render(article);
|
|||||||
modDate={article.data.modDate}
|
modDate={article.data.modDate}
|
||||||
{slug}
|
{slug}
|
||||||
>
|
>
|
||||||
<details class="toc sticky top-0 z-20">
|
<details
|
||||||
|
class="toc sticky top-10 z-10 -translate-y-px border border-neutral-300 bg-white dark:border-neutral-600 dark:bg-neutral-800"
|
||||||
|
>
|
||||||
<summary
|
<summary
|
||||||
title="Table of contents"
|
title="Table of contents"
|
||||||
class="mx-auto flex w-fit cursor-pointer list-none border-b-2 border-transparent px-2 py-2.5 hover:border-neutral-300 hover:bg-neutral-200 hover:dark:border-neutral-600 hover:dark:bg-neutral-700"
|
class="mx-auto flex w-fit cursor-pointer list-none border-b-2 border-transparent px-2 py-2.5 hover:border-neutral-300 hover:bg-neutral-200 hover:dark:border-neutral-600 hover:dark:bg-neutral-700"
|
||||||
@@ -44,7 +46,7 @@ const { Content, headings } = await render(article);
|
|||||||
</svg>
|
</svg>
|
||||||
</summary>
|
</summary>
|
||||||
<div
|
<div
|
||||||
class="not-prose max-h-[calc(100vh-4rem)] overflow-y-scroll border border-neutral-300 bg-white p-2 dark:border-neutral-600 dark:bg-neutral-800"
|
class="not-prose max-h-[calc(100vh-4rem)] overflow-y-scroll bg-white p-2"
|
||||||
>
|
>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<strong class="text-sm">Table of Contents</strong>
|
<strong class="text-sm">Table of Contents</strong>
|
||||||
|
|||||||
Reference in New Issue
Block a user