mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 06:24:22 +02:00
fix(explorer): mobile explorer toggle (#1823)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
2718ab9019
commit
ca08ec1ae7
@ -266,7 +266,7 @@ document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const hiddenUntilDoneLoading = document.querySelector("#mobile-explorer")
|
const hiddenUntilDoneLoading = document.querySelector(".mobile-explorer")
|
||||||
hiddenUntilDoneLoading?.classList.remove("hide-until-loaded")
|
hiddenUntilDoneLoading?.classList.remove("hide-until-loaded")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -212,8 +212,8 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg {
|
|||||||
flex: 0 0 34px;
|
flex: 0 0 34px;
|
||||||
|
|
||||||
& > .explorer-content {
|
& > .explorer-content {
|
||||||
transform: translateX(-100vw);
|
transform: translateX(0);
|
||||||
visibility: hidden;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,8 +221,8 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg {
|
|||||||
flex: 0 0 34px;
|
flex: 0 0 34px;
|
||||||
|
|
||||||
& > .explorer-content {
|
& > .explorer-content {
|
||||||
transform: translateX(0);
|
transform: translateX(-100vw);
|
||||||
visibility: visible;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg {
|
|||||||
background-color: var(--light);
|
background-color: var(--light);
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transform: translateX(-100vw);
|
transform: translateX(0);
|
||||||
transition:
|
transition:
|
||||||
transform 200ms ease,
|
transform 200ms ease,
|
||||||
visibility 200ms ease;
|
visibility 200ms ease;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user