fix: preserve docs anchor offset

This commit is contained in:
Wenjunyun123
2026-05-09 15:28:46 +08:00
parent 15f62e3e93
commit d633369b57
+2 -2
View File
@@ -339,5 +339,5 @@ a.body-link:hover { background-size: 100% 6px; color: var(--ink); }
.ticker-track { gap: 1.5rem; padding-right: 1.5rem; }
}
/* Anchor scroll-margin so deep links land below the sticky nav. */
[id] { scroll-margin-top: 5rem; }
/* Anchor fallback; page-level scroll-mt utilities should be able to override it. */
:where([id]) { scroll-margin-top: 5rem; }