diff --git a/src/.vuepress/components/BetaBanner.vue b/src/.vuepress/components/BetaBanner.vue new file mode 100644 index 0000000000..672389ee41 --- /dev/null +++ b/src/.vuepress/components/BetaBanner.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/.vuepress/styles/index.styl b/src/.vuepress/styles/index.styl index 1ed44dd2bd..0785548d63 100644 --- a/src/.vuepress/styles/index.styl +++ b/src/.vuepress/styles/index.styl @@ -125,6 +125,21 @@ } } +.beta-banner + position fixed + z-index 20 + top $navbarHeight + left 0 + right 0 + height 3rem + display flex + align-items center + justify-content center + background-color #fffedb + box-sizing border-box + border-bottom 1px solid $borderColor + font-weight bold + .scrimba, .vueschool { background-color: #e7ecf3; diff --git a/src/.vuepress/theme/components/Home.vue b/src/.vuepress/theme/components/Home.vue index cbc857dfdd..551850caf1 100644 --- a/src/.vuepress/theme/components/Home.vue +++ b/src/.vuepress/theme/components/Home.vue @@ -144,7 +144,7 @@ export default { @import '@theme/styles/_settings.scss'; .hero { - padding: 100px 40px 30px; + padding: calc(100px + 3rem) 40px 30px; // add $betaBannerHeight .inner { max-width: 1260px; diff --git a/src/.vuepress/theme/components/Sidebar.vue b/src/.vuepress/theme/components/Sidebar.vue index e70e33367a..2ee765aae0 100644 --- a/src/.vuepress/theme/components/Sidebar.vue +++ b/src/.vuepress/theme/components/Sidebar.vue @@ -4,10 +4,7 @@ - + @@ -45,7 +42,7 @@ export default { font-size 1.1em padding 0.5rem 0 0.5rem 1.5rem & > .sidebar-links - padding 1.5rem 0 + padding calc(1.5rem + 3rem) 0 // add $betaBannerHeight & > li > a.sidebar-link font-size 1.1em line-height 1.7 diff --git a/src/.vuepress/theme/layouts/Layout.vue b/src/.vuepress/theme/layouts/Layout.vue index 3298070997..290494052b 100644 --- a/src/.vuepress/theme/layouts/Layout.vue +++ b/src/.vuepress/theme/layouts/Layout.vue @@ -5,20 +5,12 @@ @touchstart="onTouchStart" @touchend="onTouchEnd" > - - -