Skip to content

Commit

Permalink
fix: fix display format when lists nested
Browse files Browse the repository at this point in the history
  • Loading branch information
Keldos-Li committed Nov 8, 2023
1 parent 3b9f7d3 commit ae6f2df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scss/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
ol {
counter-reset: liist;
list-style: none;
li {
> li {
counter-increment: liist;
position: relative;
}
li::before {
> li::before {
content: "(" counter(liist, lower-alpha) ")";
position: absolute;
left: -1.8em;
Expand All @@ -32,11 +32,11 @@
counter-reset: liiist;
list-style: none;
margin: 0;
li {
> li {
counter-increment: liiist;
position: relative;
}
li::before {
> li::before {
content: counter(liiist, lower-roman) ".";
align-self: flex-end;
position: absolute;
Expand Down

0 comments on commit ae6f2df

Please sign in to comment.