From: Luke Kenneth Casson Leighton Date: Sun, 2 Feb 2020 13:14:50 +0000 (+0000) Subject: add counter headings back in X-Git-Tag: convert-csv-opcode-to-binary~3594 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9bb63f83913a577cce89567de95d018543a4126c;p=libreriscv.git add counter headings back in --- diff --git a/local.css b/local.css index f9c655215..b39e0ac22 100644 --- a/local.css +++ b/local.css @@ -39,3 +39,64 @@ code { } +/* Counter Headings */ +body { +counter-reset : h1; + } + +h1 { +counter-reset : h2; + } + +h2 { +counter-reset : h3; + } + +h3 { +counter-reset : h4; + } + +h4 { +counter-reset : h5; + } + +h5 { +counter-reset : h6; + } + +#content h1:before { +content : counter(h1,decimal) ". "; +counter-increment : h1; + } + +#content h2:before { +content : counter(h1,decimal) "." counter(h2,decimal) ". "; +counter-increment : h2; + } + +#content h3:before { +content : counter(h1,decimal) "." counter(h2,decimal) "." counter(h3,decimal) ". "; +counter-increment : h3; + } + +#content h4:before { +content : counter(h1,decimal) "." counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) ". "; +counter-increment : h4; + } + +#content h5:before { +content : counter(h1,decimal) "." counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) "." counter(h5,decimal) ". "; +counter-increment : h5; + } + +#content h6:before { +content : counter(h1,decimal) "." counter(h2,decimal) "." counter(h3,decimal) "." counter(h4,decimal) "." counter(h5,decimal) "." counter(h6,decimal) ". "; +counter-increment : h6; + } + +h1.nocount:before, h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before { +content : ""; +counter-increment : none; + } + +