Created
December 3, 2016 02:02
-
-
Save sarahmonster/19ecbafa8919129e33a5cf9e5a67bd94 to your computer and use it in GitHub Desktop.
Typographically more-correct lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul, ol { | |
margin: 0 0 1.5em 0; | |
padding: 0; | |
} | |
ul { | |
list-style: disc; | |
} | |
ol { | |
list-style: decimal; | |
} | |
.entry-content ul li { | |
list-style: none; | |
position: relative; | |
} | |
.entry-content ul li::before { | |
content: '\2022'; | |
font-size: 0.75em; | |
line-height: 2; | |
position: absolute; | |
right: 100.5%; | |
} | |
li > ul, | |
li > ol { | |
margin-bottom: 0; | |
margin-left: 1em; | |
} | |
dt { | |
font-weight: bold; | |
} | |
dd { | |
margin: 0 1.5em 1.5em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment