From ecf6ba62a62e274d116098443c4580e2bbac0a12 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: Wed, 6 Jun 2018 15:05:18 -0500 Subject: [PATCH] Minor CSS fixes --- content/.vuepress/components/GithubFeed.vue | 1 + .../.vuepress/scss/pages/_documentation.scss | 52 ++++++++++++++++--- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/content/.vuepress/components/GithubFeed.vue b/content/.vuepress/components/GithubFeed.vue index dcaee09..ca4e82f 100644 --- a/content/.vuepress/components/GithubFeed.vue +++ b/content/.vuepress/components/GithubFeed.vue @@ -265,6 +265,7 @@ export default { display: inline-block; font-weight: 700; margin-bottom: 0.5rem; + width: 100%; } > p:first-of-type { diff --git a/content/.vuepress/scss/pages/_documentation.scss b/content/.vuepress/scss/pages/_documentation.scss index 5cd983e..7ef0916 100644 --- a/content/.vuepress/scss/pages/_documentation.scss +++ b/content/.vuepress/scss/pages/_documentation.scss @@ -10,10 +10,29 @@ - .blog-post__title { - display: inline-block; + .blog-posts { + list-style-type: none; + } + + .blog-post { position: relative; + &::before { + top: 8px; left: -1.2rem; + + content: "\00B7"; + font-size: 3.5rem; + line-height: 0; + position: absolute; + } + } + + + + .blog-post__title { + display: inline-block; // position is set elsewhere + line-height: 1.33; + &::after { content: ""; display: block; @@ -29,17 +48,38 @@ .blog-post__meta__author { &::before { content: "by"; - left: -1.2rem; + + @media (min-width: 901px) { + left: -1.2rem; + } + + @media (max-width: 900px) { + left: -1rem; + } } } .blog-post__meta__date { - margin-right: 1.4rem; - margin-left: 3.1rem; + @media (min-width: 901px) { + margin-right: 1.4rem; + margin-left: 3.1rem; + } + + @media (max-width: 900px) { + margin-right: 1.2rem; + margin-left: 2.6rem; + } &::before { content: "posted"; - left: -3.1rem; + + @media (min-width: 901px) { + left: -3.1rem; + } + + @media (max-width: 900px) { + left: -2.6rem; + } } }