Created
July 31, 2015 15:19
-
-
Save dscamahorn/08d42ba6851146610773 to your computer and use it in GitHub Desktop.
Use :before to style bullets for unordered 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 { | |
margin-left: 30px; | |
margin-bottom: 30px; | |
margin-top: 10px; | |
color: #000; | |
list-style: none; | |
line-height: 22px; | |
ul { | |
margin-bottom: 0; | |
} | |
&:last-child { | |
margin-bottom: 0; | |
} | |
} | |
p + ul { | |
margin-top: -20px; | |
} | |
li { | |
margin-bottom: 10px; | |
position: relative; | |
li { | |
margin-bottom: 5px; | |
} | |
} | |
ul li:before { | |
content:''; | |
display: block; | |
position: absolute; | |
width: 6px; | |
height:6px; | |
border-radius:6px; | |
left: -15px; | |
top: .5em; | |
background-color: #333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment