From e32be7d5776cb17530f6ee2ac25afefe4088b285 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Mon, 11 Apr 2022 11:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g2-center.css | 10 +++++++++- g2-left.css | 18 ++++++++++++++++++ zj.css | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/g2-center.css b/g2-center.css index 90539af..3cac276 100644 --- a/g2-center.css +++ b/g2-center.css @@ -294,7 +294,7 @@ h6 code { /* h1标题样式 */ h1 { - margin-top: 2.2rem; + margin-top: 2.5rem; text-align: center; padding-bottom: .2em; font-size: 2.25em; @@ -302,6 +302,14 @@ h1 { /* border-bottom: 1px solid #eee; */ } +h1:after { + content: ''; + display: block; + margin: 0.2em auto 0; + width: 4em; + height: 2px; + border-bottom: 2px solid var(--main-6); +} /* h2标题样式 */ diff --git a/g2-left.css b/g2-left.css index 1eaaa7a..c2dd752 100644 --- a/g2-left.css +++ b/g2-left.css @@ -302,6 +302,24 @@ h1 { /* border-bottom: 1px solid #eee; */ } +h1:after { + content: ''; + display: block; + margin: 0.2em auto 0 0; + width: 4em; + height: 2px; + border-bottom: 2px solid var(--main-6); +} + +h1[title]:after { + content: ''; + display: block; + margin: 0.2em auto 0; + width: 4em; + height: 2px; + border-bottom: 2px solid var(--main-6); +} + /* h2标题样式 */ diff --git a/zj.css b/zj.css index dac6ca1..6659cf0 100644 --- a/zj.css +++ b/zj.css @@ -184,7 +184,7 @@ h3 a { } h1 { - text-align: left; + text-align: center; padding-bottom: 0.3em; font-size: 2.2em; line-height: 1.2;