Update style

This commit is contained in:
pancakes 2024-04-24 01:29:43 +10:00
parent a4bc493535
commit 6158727e28

View file

@ -163,6 +163,54 @@ h6 {
font-size: x-small; 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 { a {
padding-left: 0.15em; padding-left: 0.15em;
padding-right: 0.15em; padding-right: 0.15em;