Created
April 7, 2014 18:23
-
-
Save akrawchyk/10026901 to your computer and use it in GitHub Desktop.
Using SASS maps to generate entypo icon font classes
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
$entypo-icons: ( | |
search : \1f50d, | |
flag : \2691 | |
// ... | |
); | |
@each $icon, $code in $entypo-icons { | |
.entypo-#{$icon}:before { | |
content: '#{$code}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment