Skip to content

Commit

Permalink
fix: consistent between ToC and section
Browse files Browse the repository at this point in the history
  • Loading branch information
ntk148v committed Aug 31, 2023
1 parent 511e57d commit 29d3aac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ h6 {

/* nested counters */
h2::before {
@apply text-muted;
content: counter(h2) ". ";
@apply text-muted mr-2 -ml-3;
content: counter(h2);
}

h3::before {
@apply text-muted;
content: counter(h2) "." counter(h3) ". ";
@apply text-muted mr-2 -ml-3;
content: counter(h2) "." counter(h3);
}

h4::before {
@apply text-muted;
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
@apply text-muted mr-2 -ml-3;
content: counter(h2) "." counter(h3) "." counter(h4);
}

[id] {
Expand Down

0 comments on commit 29d3aac

Please sign in to comment.