Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use entypo namespace #2

Open
staaky opened this issue Dec 6, 2015 · 0 comments
Open

use entypo namespace #2

staaky opened this issue Dec 6, 2015 · 0 comments

Comments

@staaky
Copy link

staaky commented Dec 6, 2015

Thanks for making this! Here's a couple suggestions to make things play nicer with Sass.

I ended up switching the .icon- prefix to .entypo- so the libary can be used alongside other libraries like font-awesome. I also extended your font definition to include .entypo so it ends up being:

.entypo, [class^="entypo-"], [class*=" entypo-"]

This allows easy switching between icon libraries in Sass, without having to define extra classes in the markup:

// entypo
.icon-user { @extend .entypo, .entypo-user }

// font-awesome
.icon-user { @extend .fa, .fa-user }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant