feat: TOC highlight and scroll sync (#216)

This commit is contained in:
foxton9
2024-12-06 12:46:10 +08:00
committed by saicaca
parent b604cdf18c
commit e816120045
5 changed files with 241 additions and 2 deletions

View File

@@ -93,4 +93,5 @@ define({
--toc-btn-hover: oklch(0.92 0.015 var(--hue)) oklch(0.22 0.02 var(--hue))
--toc-btn-active: oklch(0.90 0.015 var(--hue)) oklch(0.25 0.02 var(--hue))
--toc-width: calc((100vw - var(--page-width)) / 2 - 1rem)
--toc-item-active: oklch(0.70 0.13 var(--hue)) oklch(0.35 0.07 var(--hue))
})