hide sidebar scrollbar when cursor is out

This commit is contained in:
Simon Vieille 2021-06-22 12:37:42 +02:00
parent 270aafca1b
commit 7e7e7a03dc

View file

@ -70,8 +70,8 @@ body {
top: 0;
bottom: 0;
left: 0;
z-index: 100; /* Behind the navbar */
padding: 71px 0 0; /* Height of navbar */
z-index: 100;
padding: 71px 0 0;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}
@ -81,7 +81,11 @@ body {
height: calc(100vh - 71px);
padding-top: .5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
overflow-y: hidden;
&:hover {
overflow-y: auto;
}
}
@supports ((position: -webkit-sticky) or (position: sticky)) {