From 727b9758674b7e514d561a6d19b7c3c00e690ea0 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 30 Jan 2019 17:43:09 +0000 Subject: [PATCH] fixed mobile background layout --- components/ContentPage.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/ContentPage.vue b/components/ContentPage.vue index 162e748..eea0cb8 100644 --- a/components/ContentPage.vue +++ b/components/ContentPage.vue @@ -38,15 +38,16 @@ $z-index-bottom: 5; $z-index-top: 10; .content-page { - position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: $site-menu__header-width 0 0 0; + overflow-y: auto; @media (min-width: $bp__layout) { padding: 0 0 0 $site-menu__header-width; + overflow-y: hidden; } background-color: $color__neutral-100; @@ -59,13 +60,13 @@ $z-index-top: 10; height: 100%; width: 100%; - overflow-y: auto; - overflow-x: hidden; - @media (min-width: $bp__layout) { position: absolute; top: 0; right: 0; + + overflow-y: auto; + overflow-x: hidden; } }