From bd2bc077ab5345be74f38bc24b8a425170c2ce2d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 26 Jan 2022 18:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96recent=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/sidebar/widgets/recent.ejs | 18 +++++------------- source/css/_layout/sidebar/sidebar.styl | 20 ++++++++++++++++++-- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/layout/_partial/sidebar/widgets/recent.ejs b/layout/_partial/sidebar/widgets/recent.ejs index 450427c..9e351df 100644 --- a/layout/_partial/sidebar/widgets/recent.ejs +++ b/layout/_partial/sidebar/widgets/recent.ejs @@ -27,29 +27,21 @@ function layoutDiv() { } el += '
'; arr.sort("updated", -1).limit(item.limit).each(function(post) { - el += '
' - el += ''; - el += ''; el += ''; }); el += '
'; diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl index 75f20db..dc6194f 100644 --- a/source/css/_layout/sidebar/sidebar.styl +++ b/source/css/_layout/sidebar/sidebar.styl @@ -164,7 +164,9 @@ nav.menu background: var(--site-bg) padding-top: 2px z-index 1 - line-height: 2.4 + line-height: 2 + color: var(--text-p4) + font-size: $fs-14 &:empty display: none .cap-action @@ -190,7 +192,21 @@ nav.menu text-decoration: underline .widget-header+.widget-body margin-top: 0 - .widget-wrap#recent .widget-body, .widget-wrap#related .widget-body + + .widget-wrap .widget-body + .more-item + margin: .5rem 0 + .cap + margin-bottom: .25rem + .widget-wrap#recent .widget-body + a + line-height: 1.2 + font-weight: 500 + color: var(--text-p2) + font-size: $fs-13 + &:hover + color: $color-hover + .widget-wrap#related .widget-body >a padding 0.5rem display: block