✨ feat: improve ToC UX (#613)

This commit is contained in:
zloy_linux committed 2026-01-19 13:35:52 +07:00
1 parent 64f8035715
commit a97fb625f3
2 files changed
+2 -16

No files matched your search

@@ -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);
}
}
}