From 6879d8e3d3144086737542049d282a832240ebc8 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 11 Sep 2017 23:15:13 +0800 Subject: feat: config to show more post meta word count and read time --- src/css/_partial/_post/_header.scss | 13 ++++++++++--- src/css/_variables.scss | 7 ++----- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/css/_partial/_post/_header.scss b/src/css/_partial/_post/_header.scss index c9ac667..90dc15d 100644 --- a/src/css/_partial/_post/_header.scss +++ b/src/css/_partial/_post/_header.scss @@ -13,15 +13,15 @@ } .post-meta { + font-size: 14px; + color: $post-meta-font-color; + .post-time { font-size: 15px; - color: $post-time-font-color; } .post-category { display: inline; - font-size: 14px; - color: $post-category-font-color; &::before { content: '·'; @@ -35,5 +35,12 @@ } } } + + .more-meta { + &::before { + content: '·'; + } + } + } } diff --git a/src/css/_variables.scss b/src/css/_variables.scss index 07b78e5..47dd63e 100644 --- a/src/css/_variables.scss +++ b/src/css/_variables.scss @@ -128,11 +128,8 @@ $post-title-font-weight: 400 !default; // Margin top of the post meta (post time). $post-meta-margin-top: 5px !default; -// Font color of the post time. -$post-time-font-color: $dark-gray !default; - -// Font color of the post category -$post-category-font-color: $dark-gray !default; +// Font color of the post meta. +$post-meta-font-color: $dark-gray !default; // Border bottom of the read more link when hover it. $post-readMore-border-bottom: 1px solid $theme-color !default; -- cgit v1.2.3