feat: improve ToC UX (#613)
Some checks failed
Build Site / Check and Build for Pull Requests (push) Has been cancelled
Build Site / Build and Deploy on Main Push (push) Has been cancelled

This commit is contained in:
Óscar 2026-01-17 13:23:53 +01:00 committed by GitHub
parent 53a871428f
commit 1476bd2384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}
}
}