From e28ffbdb2edaa187e27534421073af205aab7c91 Mon Sep 17 00:00:00 2001 From: blinkfox Date: Thu, 19 Jul 2018 11:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=98=BE=E7=A4=BA=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E9=99=84=E6=9C=89=E7=AB=A0=E8=8A=82=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.css | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/vue.css b/vue.css index 673959d..28a6fbb 100644 --- a/vue.css +++ b/vue.css @@ -369,16 +369,21 @@ h2 { font-size: 1.75rem; line-height: 1.225; margin: 35px 0px 15px 0px; + counter-increment: h1-counter; + counter-reset: h2-counter; } h3 { font-size: 1.4rem; line-height: 1.43; margin: 20px 0px 7px 0px; + counter-increment: h2-counter; + counter-reset: h3-counter; } h4 { font-size: 1.2rem; + counter-increment: h3-counter; } h5 { @@ -390,6 +395,33 @@ h6 { color: #777; } +h2::before { + content: counter(h1-counter); + left: -2rem; + font-size: 1.75rem; +} + +h3::before { + content: counter(h1-counter)"."counter(h2-counter); + left: -2.4rem; + font-size: 1.4rem; +} + +h4::before { + content: counter(h1-counter)"."counter(h2-counter)"."counter(h3-counter); + left: -2.8rem; + font-size: 1.2rem; +} + +h1::before, +h2::before, +h3::before, +h4::before { + color: #42B983; + position: absolute; + font-weight: 400; +} + p, blockquote, ul,