Skip to content

Instantly share code, notes, and snippets.

@sarahmonster
Created December 3, 2016 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarahmonster/19ecbafa8919129e33a5cf9e5a67bd94 to your computer and use it in GitHub Desktop.
Save sarahmonster/19ecbafa8919129e33a5cf9e5a67bd94 to your computer and use it in GitHub Desktop.
Typographically more-correct lists
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