From 2656b6e0500ff18622523b640d6720cc12b6ff04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 10 Dec 2017 15:58:36 +0100 Subject: [PATCH] avoid vh because its not what you think on mobile devices --- src/c3nav/site/static/site/css/c3nav.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/c3nav/site/static/site/css/c3nav.css b/src/c3nav/site/static/site/css/c3nav.css index 706152be..a345b2e5 100644 --- a/src/c3nav/site/static/site/css/c3nav.css +++ b/src/c3nav/site/static/site/css/c3nav.css @@ -2,7 +2,11 @@ body { font-weight: normal; display: flex; flex-direction: column; - min-height: 100vh; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; } header { @@ -587,8 +591,8 @@ main:not([data-view=route-result]) #route-summary { position: fixed; top: 0; left: 0; - width: 100vw; - height: 100vh; + bottom: 0; + right: 0; background-color: rgba(0, 0, 0, 0.3); z-index: 2; display: flex;