Skip to content

Commit

Permalink
fix: increase the margin of toc-num
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Feb 28, 2020
1 parent 9093207 commit 8d9bad0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions assets/scss/base/_data-attributes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,21 @@
li {
&::before {
counter-increment: item;
margin-right: 0.5em;
}
}
}
}
// First level
.contents > ol > li {
&::before {
content: counters(item, ".") ". ";
content: counters(item, ".") ".";
}
}
// Sub level
.contents li > ol > li {
&::before {
content: counters(item, ".") " ";
content: counters(item, ".");
}
}
}

0 comments on commit 8d9bad0

Please sign in to comment.