Fix stack cover: shared sticky line, z-index, show body only on stack.

All folders stick at --stack-reveal; higher layers paint over lower ones.
Bodies hidden until panel aligns on the stack line (no vertical list).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-20 23:23:59 -04:00
co-authored by Cursor
parent cfe1cf3922
commit 7b54b47443
14 changed files with 715 additions and 754 deletions
+4 -4
View File
@@ -20,9 +20,9 @@ function fontIndexFromScale(scale) {
}
const THEME_COLORS = {
light: '#f6f3ee',
dim: '#c9c3b8',
dark: '#10100f',
light: '#e8e4dc',
dim: '#b8b2a6',
dark: '#080807',
};
function applyTheme(theme) {
@@ -83,7 +83,7 @@ function initPreferences() {
}
function initScrollSpy() {
const sections = document.querySelectorAll('section[id]');
const sections = document.querySelectorAll('.clause-anchor[id]');
const links = document.querySelectorAll('.toc nav a');
if (!sections.length || !links.length) return;