mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
style(mobile): improve sidebar animation
This commit is contained in:
parent
8568e4b898
commit
cd0df29307
@ -1177,20 +1177,26 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: var(--launcher-pane-size);
|
||||
z-index: -1000;
|
||||
}
|
||||
|
||||
#mobile-sidebar-container.show {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
z-index: 1000;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 250ms ease-in-out;
|
||||
backdrop-filter: blur(20px);
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
transition: background-color 250ms ease-in-out;
|
||||
}
|
||||
|
||||
#mobile-sidebar-wrapper {
|
||||
width: 85vw;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 250ms ease-in-out;
|
||||
background: var(--main-background-color);
|
||||
}
|
||||
|
||||
#mobile-sidebar-container.show {
|
||||
#mobile-sidebar-container.show #mobile-sidebar-wrapper {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user