Last active
June 13, 2019 15:54
-
-
Save aaronsummers/b106dc56efb35d2bdb6b55c4c49d62da to your computer and use it in GitHub Desktop.
My base list styles
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
ol, ul { | |
li { | |
margin-bottom: 1em; | |
} | |
padding-left: 1.4em; | |
} | |
ol li { | |
list-style: decimal-leading-zero; | |
> ol > li { | |
list-style: lower-alpha; | |
> ol > li { | |
list-style: lower-roman; | |
} | |
} | |
} | |
ul { | |
li { | |
&:before { | |
content: ""; | |
position: absolute; | |
left: 0; | |
top: .5em; | |
transform: translateY(-50%); | |
// do whatever here | |
background: #222; | |
width: 4px; | |
height: 4px; | |
border-radius: 50%; | |
} | |
list-style: none; | |
position: relative; | |
padding-left: 1.8rem; | |
} | |
padding: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment