Last active
August 29, 2015 14:16
-
-
Save dunn/86e820caaabfba80dae4 to your computer and use it in GitHub Desktop.
inline 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
@mixin inline($separator, $sep) { | |
ul, li { | |
/* http://www.alistapart.com/articles/taminglists/ */ | |
display: inline; | |
margin: 0; | |
padding-left: 0; | |
} | |
li + li { | |
// old IE doesn't recognize ::before, so this keeps items at least a little separate | |
padding-left: $sep/2; | |
&::before { | |
font-style: normal; | |
content: $separator; | |
padding-right: $sep/2; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment