From b19e8713e059d81ec3f73adc54e706f5f3db8648 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 9 May 2020 01:45:53 -0700 Subject: [PATCH] Center post titles and word counters. --- themes/vanilla/assets/scss/style.scss | 14 +++++++++----- themes/vanilla/layouts/partials/post.html | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/themes/vanilla/assets/scss/style.scss b/themes/vanilla/assets/scss/style.scss index 56edf92..70e1816 100755 --- a/themes/vanilla/assets/scss/style.scss +++ b/themes/vanilla/assets/scss/style.scss @@ -181,18 +181,22 @@ ul.post-list { padding: 0.5rem; } + p { + margin: 0; + } + a.post-title { border-bottom: none; font-size: 1.3rem; font-weight: bold; font-family: $font-heading; - text-align: left; + text-align: center; display: block; } - - p { - margin-bottom: 0; - margin-top: 0.2rem; + + p.post-wordcount { + text-align: center; + margin-bottom: 0.6rem; } } diff --git a/themes/vanilla/layouts/partials/post.html b/themes/vanilla/layouts/partials/post.html index a83f2a9..8bf96f4 100644 --- a/themes/vanilla/layouts/partials/post.html +++ b/themes/vanilla/layouts/partials/post.html @@ -1,5 +1,5 @@
  • {{ .Title }} -

    {{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.

    -

    {{ .Summary }} . . .

    +

    {{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.

    +

    {{ .Summary }} . . .