Display sidebar scroll-bar only if required

This fix a regression from #316 (scrollbar was displayed all the time).

Note that the padding-bottom value is totally empiric, but proved OK on my Fx
and Chrome instances + some responsive tests. There might be finer solutions,
feel free :-).
This commit is contained in:
Jocelyn Delalande 2018-01-26 16:17:43 +01:00
parent b93ea4830d
commit 434ee8b852

View file

@ -74,12 +74,13 @@ body {
background-repeat: no-repeat;
height: 100%;
color: black;
overflow-y: scroll;
overflow-y: auto;
}
@media (min-width: 768px) {
.sidebar {
position: fixed;
padding-bottom: 4.5rem;
}
}