feat: TOC highlight and scroll sync (#216)

This commit is contained in:
foxton9 authored and saicaca committed 2024-12-06 19:20:57 +08:00
1 parent b604cdf18c
commit e816120045
5 files changed
+241 -2

No files matched your search

+1
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))
})