From d79764d0834e96c82654d06aaeab3eaebb3b4599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Tue, 8 May 2018 14:07:47 -0500 Subject: [PATCH] Workaround for flex layout to behave --- .vuepress/scss/_layout.scss | 14 ++- .vuepress/theme/Layout.vue | 176 ++++++++++++++++++------------------ 2 files changed, 98 insertions(+), 92 deletions(-) diff --git a/.vuepress/scss/_layout.scss b/.vuepress/scss/_layout.scss index efbb36a..fafc909 100644 --- a/.vuepress/scss/_layout.scss +++ b/.vuepress/scss/_layout.scss @@ -8,11 +8,9 @@ html { } body { - min-width: 320px; min-height: 100vh; + min-width: 320px; color: $black; - display: flex; - flex-direction: column; @include font-sans; font-size: 12px; overflow-x: hidden; @@ -21,8 +19,14 @@ body { } main { - flex: 1; - padding-top: 4rem !important; // override Vue + display: flex; + flex-direction: column; + min-height: 100vh; + padding-top: 4rem; + + > div:first-of-type { + flex: 1; + } } .inner-wrap { diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index b48d756..be44002 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -1,7 +1,5 @@