apply accent color to auto generated title numbers

This commit is contained in:
T2hhbmEK 2023-01-22 05:12:45 +08:00
parent 3a6d8a070c
commit dbafb88314
No known key found for this signature in database
GPG Key ID: D412878779B8898C

View File

@ -146,16 +146,19 @@ h4 {
}
article[autonumbering] h2:before {
color: $accent;
counter-increment: h2;
content: counter(h2) " "
}
article[autonumbering] h3:before {
color: $accent;
counter-increment: h3;
content: counter(h2) "." counter(h3) " "
}
article[autonumbering] h4:before {
color: $accent;
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) " "
}
@ -165,6 +168,7 @@ article[autonumbering] .table-of-contents ul {
}
article[autonumbering] .table-of-contents li a:before {
color: $accent;
content: counters(item, ".") " ";
counter-increment: item
}