From f86d82aa00ca36fed099627cf2d9b2d59c3b4360 Mon Sep 17 00:00:00 2001 From: Pigges Date: Wed, 17 Jan 2024 18:48:17 +0100 Subject: [PATCH] make toc a floating element --- src/components/TableOfContents.astro | 25 ++++++++++++++++----- src/components/TableOfContentsHeading.astro | 2 +- src/layouts/Collections.astro | 9 ++++---- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index 3a6d396..d634610 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -24,21 +24,25 @@ console.log(edit); \ No newline at end of file diff --git a/src/components/TableOfContentsHeading.astro b/src/components/TableOfContentsHeading.astro index 4e10d4d..57bd301 100644 --- a/src/components/TableOfContentsHeading.astro +++ b/src/components/TableOfContentsHeading.astro @@ -39,7 +39,7 @@ const { heading } = Astro.props; } li ul { - /* list-style: none; */ + list-style: none; padding-inline-start: 1rem; /* border-left: 1px solid var(--secondary-background); */ } diff --git a/src/layouts/Collections.astro b/src/layouts/Collections.astro index 51d54fd..d9f518a 100644 --- a/src/layouts/Collections.astro +++ b/src/layouts/Collections.astro @@ -50,7 +50,7 @@ const isActive = (href: string)=>{
-