Well, finally, numbering sucks

master
Quentin Duchemin 2022-11-07 02:10:34 +01:00
parent 67e24debdb
commit c233ec48cb
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 0 additions and 41 deletions

View File

@ -29,45 +29,4 @@ p:not(.title,.subtitle) {
/* New font is "smaller" in feeling */
.navbar-dropdown {
font-size: 1rem;
}
/* Add counter to title */
body {
counter-reset: h2
}
h2 {
counter-reset: h3
}
h3 {
counter-reset: h4
}
h4 {
counter-reset: h5
}
article h2:before {
counter-increment: h2;
content: counter(h2) ". "
}
article h3:before {
counter-increment: h3;
content: counter(h2) "." counter(h3) ". "
}
article h4:before {
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". "
}
article .toc__menu ul {
counter-reset: item
}
article .toc__menu li a:before {
content: counters(item, ".") ". ";
counter-increment: item
}