From 12d8e0f66bf07446bbf71a8b3485a0d6da8a0000 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 15 Dec 2022 00:45:48 +0800 Subject: [PATCH] [opt] css --- source/css/_layout/md.styl | 9 +++++---- source/css/_layout/tag-plugins/quot.styl | 8 +++----- source/css/_layout/widgets/search.styl | 1 + 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index 4f8bd80..633b69b 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -31,19 +31,20 @@ h1.article-title h1,h2,h3,h4,h5,h6 text-align: center >h2:not([class]) - align-self: center - border-bottom-style: dashed - border-bottom-color: $color-accent + border-bottom: none >:first-child:not(h1) margin-top: 0 h1:not(:first-child) margin-top: 2em h2:first-child margin-top: 0 + h2 + margin-bottom: 1rem + h3,h4,h5,h6 + margin-bottom: .5rem h2,h3,h4,h5,h6 color: var(--text-p0) padding-top: 1rem - margin-bottom: .5rem line-height: 1.8 &:hover a.headerlink:before diff --git a/source/css/_layout/tag-plugins/quot.styl b/source/css/_layout/tag-plugins/quot.styl index c627811..69ef813 100644 --- a/source/css/_layout/tag-plugins/quot.styl +++ b/source/css/_layout/tag-plugins/quot.styl @@ -9,13 +9,11 @@ align-items: center border-bottom: none font-weight: 700 - &:first-child - margin-top: 1.5rem + padding: 16px 24px a.headerlink:before content: '' - padding: 16px 24px 8px 24px @media screen and (max-width: $device-mobile) - padding: 16px 20px 8px + padding: 12px 20px line-height: 1.2 .md-text .tag-plugin.quot .content @@ -50,7 +48,7 @@ border-left: 6px solid $color-accent &:after right: 0 - bottom: 0 + bottom: 8px border-right: 6px solid $color-accent border-bottom: 6px solid $color-accent h1.content[type=text] diff --git a/source/css/_layout/widgets/search.styl b/source/css/_layout/widgets/search.styl index b7795d8..5eb80e0 100644 --- a/source/css/_layout/widgets/search.styl +++ b/source/css/_layout/widgets/search.styl @@ -15,6 +15,7 @@ padding: 0.5rem line-height: 1 box-sizing: border-box + font-family: $ff-body border-radius: $border-block background-color: var(--card) color: var(--text-p0)