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 @@