Added transition to the sidebar

This commit is contained in:
Neshura 2022-12-09 21:38:23 +01:00
parent 989b9e5ae9
commit e767db6017
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A
2 changed files with 28 additions and 12 deletions

View file

@ -174,15 +174,16 @@
.sidebarList {
overflow-y: scroll;
overflow-x: hidden;
scrollbar-width: none;
height: 100%;
display: flex;
flex-direction: column;
padding: 2rem;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: flex-start;
background-color: var(--background_grey_opaque);
padding: 2rem;
}
.sidebar::-webkit-scrollbar {
@ -190,15 +191,28 @@
background: transparent;
}
.sl_wrapper {
height: 100%;
overflow: hidden;
transition-property: width, visibility;
transition-timing-function: ease-in-out, linear;
transition-duration: 0.3s, 0s;
}
.sl_active {
display: flex;
visibility: visible;
width: 97%;
transition-delay: 0s, 0s;
}
.sl_inactive {
display: none;
visibility: hidden;
width: 0;
transition-delay: 0s, 0.3s;
}
.navElem {
white-space:nowrap;
font-size: 14pt;
width: auto;
border-radius: 5px;