From 544c8a3a147c97ae331f732281abe8ff2e216fc9 Mon Sep 17 00:00:00 2001 From: radishzzz Date: Wed, 28 May 2025 15:03:59 +0100 Subject: [PATCH] style: update toc style on mobile --- src/components/Widgets/TOC.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Widgets/TOC.astro b/src/components/Widgets/TOC.astro index bddf33d..97c9c93 100644 --- a/src/components/Widgets/TOC.astro +++ b/src/components/Widgets/TOC.astro @@ -96,7 +96,7 @@ const filteredHeadings = headings.filter(heading => --at-apply: 'ml-4 font-semibold 2xl:hidden'; } .toc-list { - --at-apply: 'mb-2.7 mt-1 list-none pl-0 space-y-1.1 2xl:(mb-1 space-y-1)'; + --at-apply: 'mb-2.5 mt-1 list-none pl-0 space-y-1.1 2xl:(mb-1 space-y-1)'; } .toc-link-h2, .toc-link-h3, .toc-link-h4 { --at-apply: 'text-balance text-sm font-normal no-underline 2xl:(text-3.2 c-secondary/60 transition-colors transition-font-weight ease-out hover:c-secondary hover:font-medium)'; @@ -107,7 +107,7 @@ const filteredHeadings = headings.filter(heading => --at-apply: 'grid rows-[0fr] transition-all duration-350 ease-in-out'; } .accordion-content { - --at-apply: 'max-h-59.5 overflow-hidden pl-4 pr-6 2xl:(max-h-[calc(100vh-26.75rem)] pl-1)'; + --at-apply: 'max-h-59.3 overflow-hidden pl-4 pr-6 2xl:(max-h-[calc(100vh-26.75rem)] pl-1)'; } /* When toggle is checked, expand the wrapper to show content */