From 94631e3a50d562923259cf1b87e41ecf10bf2377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Thu, 28 Apr 2022 00:01:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#2=20=E5=A2=9E=E5=BC=BA=E6=96=87?= =?UTF-8?q?=E5=AD=97=E6=A0=87=E9=A2=98=E5=8C=BA=E5=88=AB=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_components/highlight.less | 4 +- source/css/_components/publication.less | 62 +++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/source/css/_components/highlight.less b/source/css/_components/highlight.less index 11bb2448..eb7c6e7d 100644 --- a/source/css/_components/highlight.less +++ b/source/css/_components/highlight.less @@ -8,10 +8,10 @@ pre, padding : 40px 10px 10px; overflow : auto; color : #ccc !important; - font-size : 12px !important; + font-size : 14px !important; text-shadow : none; border-radius: 4px; - line-height : 1; + line-height : 1.5; } .highlight { diff --git a/source/css/_components/publication.less b/source/css/_components/publication.less index c35c0cc8..acb4edd9 100644 --- a/source/css/_components/publication.less +++ b/source/css/_components/publication.less @@ -90,4 +90,66 @@ display: none; } } + + h4:before, + h5:before, + h6:before { + display: inline-block; + width : 1em; + content: '#'; + } + + h1 { + font-size: 2.5em; + } + + h2 { + font-size : 1.7em; + position : relative; + padding-bottom: 10px; + + &::before { + content : ''; + width : 100%; + padding : 0px 20px; + border-bottom: 1px solid @theme-bg2-color; + position : absolute; + bottom : -1px; + left : -20px; + box-sizing : unset; + } + + &::after { + transition : all 0.35s ease-out; + content : ''; + position : absolute; + background-color: #AFB42B; + width : 1em; + height : 5px; + bottom : -3px; + left : 0; + border-radius : 10px; + } + + &:hover::after { + width: 2em; + } + } + + + h3 { + font-size: 1.3em; + } + + h4 { + font-size: 1.15em; + } + + h5 { + font-size: 1em; + } + + h6 { + font-size: 0.9em; + } } \ No newline at end of file