#Just an Idea on how to style lists
Last active
August 2, 2016 07:08
-
-
Save dewwwald/0e4b9d25de5cd9070935 to your computer and use it in GitHub Desktop.
Just an Idea on how to style lists Styling lists is a mission.
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
$list-icon-size: .4; | |
ul { | |
font-size: inherit; | |
li { | |
list-style: none; | |
vertical-align: baseline; | |
&:before { | |
content: "√"; | |
display: inline; | |
vertical-align: bottom; | |
font-size: #{$list-icon-size}em; // some smaller fs | |
line-height: #{1/$list-icon-size}em; // has to be | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment