1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Fix scrollbars on WebKit

This commit is contained in:
Unrud 2020-03-08 19:43:04 +01:00
parent 64d6b52bc6
commit 8fb12bbc49
3 changed files with 23 additions and 15 deletions

View file

@ -25,7 +25,6 @@ nav {
left: 0;
background-color: #E4E9F6;
z-index: 1;
scrollbar-width: initial;
transition: width ease .2s;
max-height: initial !important;
margin: 0;
@ -39,10 +38,6 @@ html.nav-opened {
width: 100vw;
}
nav::-webkit-scrollbar {
display: initial;
}
main, .navContainer {
position: relative;
}

View file

@ -26,7 +26,7 @@ nav .level4 > a::after {
display: none !important;
}
@media screen and (max-width: 50em) {
@media all and (max-width: 50em) {
nav, .navButtonContainer {
display: none;
}

View file

@ -244,23 +244,36 @@ nav {
top: 0;
height: 100vh;
overflow-y: auto;
scrollbar-width: none;
}
.navContainer {
padding: 10px 0;
}
nav::-webkit-scrollbar {
display: none;
}
@media not all and (max-width: 50em) {
/* Use media query because any change to ::-webkit-scrollbar makes it
* impossible to restore system scrollbars */
nav:hover {
scrollbar-width: initial;
}
nav {
scrollbar-width: none;
}
nav:hover::-webkit-scrollbar {
display: initial;
nav:hover, nav:focus-within {
scrollbar-width: initial;
}
nav::-webkit-scrollbar {
display: none;
background-color: #D2D7E3;
}
nav::-webkit-scrollbar-thumb {
background-color: #424247;
}
nav:hover::-webkit-scrollbar, nav:focus-within::-webkit-scrollbar {
display: initial;
}
}
nav .level2 {