Skip to content

Commit

Permalink
fix: do not override the list-style of nested ol/ul
Browse files Browse the repository at this point in the history
Without this fix, an `ol` in a `ul` would be `disc`, and a `ul` in an
`ol` would be `decimal`.
  • Loading branch information
lukehsiao committed Aug 6, 2024
1 parent abbd462 commit c5097dc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,18 @@ a {
}

ul {
& li {
list-style: disc;
list-style: disc;

ol {
list-style: decimal;
}
}

ol {
& li {
list-style: decimal;
list-style: decimal;

ul {
list-style: disc;
}
}

Expand Down Expand Up @@ -199,4 +203,4 @@ img {
@import "object/project/title";
@import "object/utility/align";
@import "object/utility/display";
@import "fontawesome/fontawesome";
@import "fontawesome/fontawesome";

0 comments on commit c5097dc

Please sign in to comment.