Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
List style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Dec 29, 2021
1 parent d1ac980 commit 1cb9a1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/post_list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul style="list-style-type: none;">
<ul class="no-bullets">
{% for post in site.posts %}
{% if post.nolist %}
{% unless include.all %}{% continue %}{% endunless %}
Expand Down
1 change: 0 additions & 1 deletion _sass/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ ol {
counter-reset: post;
}

ul li,
ol li {
margin-left: 30px;
}
Expand Down
8 changes: 7 additions & 1 deletion _sass/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ li {
}

/* Fix for list item bullets messing up the vertical rhythm. */
li {
ul li {
list-style-type: "";
padding-inline-start: 1ch;
margin-left: 18px;
}

.no-bullets li {
list-style-type: none;
padding-inline-start: 0;
}

em, i {
Expand Down

0 comments on commit 1cb9a1a

Please sign in to comment.