feat: improve ToC UX

This commit is contained in:
welpo 2026-01-17 13:19:16 +01:00
parent 53a871428f
commit d4b5014988
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
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);
}
}
}