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;