Skip to content

Commit

Permalink
Fixed list paragraph styles
Browse files Browse the repository at this point in the history
  • Loading branch information
EzequielBruni committed Sep 13, 2020
1 parent 8ea4f7d commit e8c64d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@
list-style: circle;
padding-left: 1.5em;

li {
p:last-child {
margin: 0 !important;
}
}
}

// More complex styling for ordered lists, so I can style the numbers however I like. Based on a snippet by Roger Johansson. - https://www.456bereastreet.com
Expand All @@ -148,6 +153,10 @@

list-style:none; /* Disable the normal item numbering */

p:last-child {
margin: 0 !important;
}

}
ol > li:before {
content:counter(li); /* Use the counter as content */
Expand All @@ -162,6 +171,7 @@
padding: .15em;

background-color: $light-background;
font-family: $monospace-font;
}

ol ol li:last-child {margin-bottom:0;}
Expand Down

0 comments on commit e8c64d1

Please sign in to comment.