From d9a95aa91b3dec7df7bde52233483ca2770b7376 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 6 Sep 2019 11:56:50 +0100 Subject: [PATCH] add h1 count --- local.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/local.css b/local.css index 60983c69a..2586672b7 100644 --- a/local.css +++ b/local.css @@ -42,6 +42,10 @@ ol{ } /* Counter Headings */ body { +counter-reset : h1; + } + +h1 { counter-reset : h2; } @@ -61,6 +65,11 @@ h5 { counter-reset : h6; } +#content h1:before { +content : counter(h1,decimal) ". "; +counter-increment : h1; + } + #content h2:before { content : counter(h2,decimal) ". "; counter-increment : h2; @@ -86,7 +95,7 @@ content : counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) ". counter-increment : h6; } -h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before { +h1.nocount:before, h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before { content : ""; counter-increment : none; } -- 2.30.2