feat: improve ToC UX (#613)

This commit is contained in:
2026-01-19 13:35:52 +07:00
parent 64f8035715
commit a97fb625f3
2 changed files with 2 additions and 16 deletions

View File

@@ -87,29 +87,16 @@
&:checked {
+ .overlay,
+ .overlay + #toc-button + .toc-content {
+ #toc-button + .toc-content {
display: block;
}
+ .overlay + #toc-button svg {
+ #toc-button svg {
fill: var(--primary-color); // Show the ToC icon as toggled.
}
}
}
.overlay {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 40%;
z-index: 1; // Lower than the Table of Contents
background: var(--background-color);
}
}
}