From 7fbb3b21f9e7aafc9f12d2199bc959bbe198e4d5 Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Wed, 4 Sep 2019 20:47:40 +0100 Subject: [PATCH] Restyle main layout --- app/src/frontend/styles/layout.css | 34 +++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/app/src/frontend/styles/layout.css b/app/src/frontend/styles/layout.css index cf7e2fb4..fc55f957 100644 --- a/app/src/frontend/styles/layout.css +++ b/app/src/frontend/styles/layout.css @@ -1,20 +1,34 @@ /** * Main Layout */ - main { + +html, body, #root { + height: 100%; +} + +body { + margin: 0; +} + +#root { + display: flex; + flex-direction: column; + overflow: hidden; +} + +main { position: relative; - min-height: 35rem; + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; } -@media (min-width: 768px){ + +@media(min-width: 768px) { main { - position: absolute; - top: 79px; /* matches 79px .main-header */ - bottom: 0; - left: 0; - right: 0; - min-height: auto; + flex-direction: row; } -} + } /** * Text pages */