aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/static/css
diff options
context:
space:
mode:
authorJocelyn Delalande <jocelyn@crapouillou.net>2018-01-26 16:17:43 +0100
committerJocelyn Delalande <jocelyn@crapouillou.net>2018-01-26 16:18:26 +0100
commit434ee8b85251ee14cb0535cbb92b9b28b84f0b8d (patch)
treea650c6bc02e2f349024707c97744c2c896935a0c /ihatemoney/static/css
parentb93ea4830d5290def99d597f17292a8aa5d4c090 (diff)
downloadihatemoney-mirror-434ee8b85251ee14cb0535cbb92b9b28b84f0b8d.zip
ihatemoney-mirror-434ee8b85251ee14cb0535cbb92b9b28b84f0b8d.tar.gz
ihatemoney-mirror-434ee8b85251ee14cb0535cbb92b9b28b84f0b8d.tar.bz2
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 :-).
Diffstat (limited to 'ihatemoney/static/css')
-rw-r--r--ihatemoney/static/css/main.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css
index 4b35b37..94ca4bd 100644
--- a/ihatemoney/static/css/main.css
+++ b/ihatemoney/static/css/main.css
@@ -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;
}
}