From cd376356583be500278fa7674586a028a8bcb89f 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: Thu, 24 May 2018 11:45:15 -0500 Subject: [PATCH] Fixed Vue rendering issues due to custom HTML tags --- .vuepress/scss/pages/_documentation.scss | 72 ++++++++++++------------ .vuepress/theme/Layout.vue | 33 ++++++----- 2 files changed, 52 insertions(+), 53 deletions(-) diff --git a/.vuepress/scss/pages/_documentation.scss b/.vuepress/scss/pages/_documentation.scss index b748cf8..5cd983e 100644 --- a/.vuepress/scss/pages/_documentation.scss +++ b/.vuepress/scss/pages/_documentation.scss @@ -8,45 +8,15 @@ padding-top: 2rem; } - .blog-post { - a { - display: inline-block; - position: relative; - &::after { - content: ""; - display: block; - } - } - author { - &::before { - content: "by"; - left: -1.2rem; - } - } + .blog-post__title { + display: inline-block; + position: relative; - date { - margin-right: 1.4rem; - margin-left: 3.1rem; - - &::before { - content: "posted"; - left: -3.1rem; - } - } - - author, - date { - display: inline-block; - position: relative; - - &::before { - color: rgba($black, 0.5); - font-style: italic; - position: absolute; - vertical-align: bottom; - } + &::after { + content: ""; + display: block; } } @@ -55,4 +25,34 @@ line-height: 1; margin-bottom: 1rem; } + + .blog-post__meta__author { + &::before { + content: "by"; + left: -1.2rem; + } + } + + .blog-post__meta__date { + margin-right: 1.4rem; + margin-left: 3.1rem; + + &::before { + content: "posted"; + left: -3.1rem; + } + } + + .blog-post__meta__author, + .blog-post__meta__date { + display: inline-block; + position: relative; + + &::before { + color: rgba($black, 0.5); + font-style: italic; + position: absolute; + vertical-align: bottom; + } + } } diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index ad8333a..724dba0 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -149,42 +149,42 @@ @@ -296,8 +296,7 @@ export default { - // Toggle beta message - if ( + if ( // Toggle beta message localStorage.getItem("hide lbry alert") && localStorage.getItem("hide lbry alert") === "true" // cannot set Booleans for some reason ) {