small fixes for the previous pushes

This commit is contained in:
Xanazf 2024-10-18 00:00:00 +03:00
parent f110669e31
commit 33d3ce46c4
Signed by: Xanazf
GPG key ID: 4E4A5AD1FB748427
5 changed files with 16 additions and 4 deletions

View file

@ -56,7 +56,6 @@ const NavComponent: Component<NavProps> = props => {
createEffect(() => {
if (open()) {
window.addEventListener("click", handleClickOutside);
document.body.style.overflow = "hidden";
document.body.classList.add("overflow-nav");
document.body.classList.add("dim-content-nav");
} else {

View file

@ -53,7 +53,6 @@ const TableOfContents: Component<TOCProps> = props => {
document.body.classList.add("dim-content-toc");
} else {
window.removeEventListener("click", handleClickOutside);
document.body.style.overflow = "auto";
document.body.classList.remove("overflow-toc");
document.body.classList.remove("dim-content-toc");
}

View file

@ -156,6 +156,11 @@
}
@media (min-width: 85rem) {
.dim-content-nav .docslayout-root {
filter: brightness(100%) !important;
pointer-events: initial !important;
}
.nav-wrapper-mobile {
display: none;
}

View file

@ -84,6 +84,11 @@
}
@media (min-width: 65rem) {
.dim-content-toc .docslayout-root {
filter: unset !important;
pointer-events: initial !important;
}
.toc-wrapper {
width: 19rem;
flex-shrink: 0;

View file

@ -56,8 +56,12 @@ html.dark {
all: unset;
}
.overflow-nav,
.overflow-toc {
body {
overflow: auto;
}
body.overflow-nav,
body.overflow-toc {
overflow: hidden;
}