This commit is contained in:
Vanessa 2022-11-05 20:55:34 +08:00
parent 1ef416ff00
commit 71a0de7b47
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@
height: 100vh;
width: 80vw;
z-index: 220;
transition: var(--b3-transition);
transition: top .15s cubic-bezier(0, 0, .2, 1) 0ms, left .15s cubic-bezier(0, 0, .2, 1) 0ms, right .15s cubic-bezier(0, 0, .2, 1) 0ms;
&--left {
left: -100vw;
@ -131,7 +131,7 @@
&--all {
width: 100vw;
right: 0;
top: -100vh;
top: -150vh;
}
}

View file

@ -5,6 +5,6 @@ export const closePanel = () => {
const modelElement = document.getElementById("model");
menuElement.style.right = "-100vw";
sidebarElement.style.left = "-100vw";
modelElement.style.top = "-100vh";
modelElement.style.top = "-150vh";
scrimElement.classList.add("fn__none");
};