From aafc8dd9b5e0385d08eca8fa9a5b84f9ce1f0f37 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: Fri, 25 May 2018 11:22:24 -0500 Subject: [PATCH] Table and alert fixes --- .vuepress/scss/_layout.scss | 5 +++-- .vuepress/scss/pages/_page.scss | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.vuepress/scss/_layout.scss b/.vuepress/scss/_layout.scss index 8462df8..7909c84 100644 --- a/.vuepress/scss/_layout.scss +++ b/.vuepress/scss/_layout.scss @@ -74,7 +74,7 @@ h1, h2, h3, h4, h5 { } .alert { - top: 4rem; left: 0; + bottom: 0; left: 0; background-color: $yellow; line-height: 1.33; @@ -82,9 +82,10 @@ h1, h2, h3, h4, h5 { padding-right: env(safe-area-inset-right); padding-bottom: 1rem; padding-left: env(safe-area-inset-left); - position: absolute; + position: fixed; text-align: center; width: 100%; + z-index: 1; > div:first-of-type { position: relative; diff --git a/.vuepress/scss/pages/_page.scss b/.vuepress/scss/pages/_page.scss index f3e8ecd..06f6d7f 100644 --- a/.vuepress/scss/pages/_page.scss +++ b/.vuepress/scss/pages/_page.scss @@ -272,6 +272,12 @@ z-index: 1; } + &:not(*:root) { + &::after { + z-index: -1; + } + } + &::after { width: calc(100% + 2px); height: calc(100% + 2px); top: -1px; left: -1px;