From 5e31c08831352d9cc3c82c05c722f0f3d531aeea Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 20 Oct 2022 17:38:05 +0800 Subject: [PATCH] style: optimize home page style --- layout/_partial/home-article-meta-info.ejs | 2 +- source/css/layout/home-content.styl | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/layout/_partial/home-article-meta-info.ejs b/layout/_partial/home-article-meta-info.ejs index d1eb770..fe3b8b6 100644 --- a/layout/_partial/home-article-meta-info.ejs +++ b/layout/_partial/home-article-meta-info.ejs @@ -39,5 +39,5 @@ const target_date = post.date !== post.updated ? post.updated : post.date <% } %> - <%- __('read_more') %>  + <%- __('read_more') %>  diff --git a/source/css/layout/home-content.styl b/source/css/layout/home-content.styl index be1a2cf..10a5075 100644 --- a/source/css/layout/home-content.styl +++ b/source/css/layout/home-content.styl @@ -59,7 +59,6 @@ color var(--text-color-4) font-size 0.92rem - .home-article-meta-info { letter-spacing 0.5px @@ -90,6 +89,12 @@ } + .read-more { + display flex + align-items center + } + + hr { flex 1 height 1px @@ -98,6 +103,7 @@ border none } + a { color var(--text-color-4)