From 6158727e28139649d827c253ea1a386288e6a5d8 Mon Sep 17 00:00:00 2001 From: pancakes Date: Wed, 24 Apr 2024 01:29:43 +1000 Subject: [PATCH] Update style --- src/routes/style.css | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/routes/style.css b/src/routes/style.css index afcb583..970c1b7 100644 --- a/src/routes/style.css +++ b/src/routes/style.css @@ -163,6 +163,54 @@ h6 { font-size: x-small; } +article { + counter-reset: h2 0; +} + +article h2 { + counter-increment: h2 1; + counter-reset: h3 0; +} + +article h2::before { + content: counter(h2) ". "; +} + +article h3 { + counter-increment: h3 1; + counter-reset: h4 0; +} + +article h3::before { + content: counter(h2) "." counter(h3) ". "; +} + +article h4 { + counter-increment: h4 1; + counter-reset: h5 0; +} + +article h4::before { + content: counter(h2) "." counter(h3) "." counter(h4) ". "; +} + +article h5 { + counter-increment: h5 1; + counter-reset: h6 0; +} + +article h5::before { + content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "; +} + +article h6 { + counter-increment: h6 1; +} + +article h6::before { + content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "; +} + a { padding-left: 0.15em; padding-right: 0.15em;