geordanr/xwing-miniatures-font

Create SASS Mixins for Icons

Opened this issue · 5 comments

Hi Guys

I'm thinking of using this repo for the icons in my app but it seems to be written to only support declarative usage. I'd prefer to use the icons directly in my own SASS files.

Would you be open to me refactoring the SASS file to use mixins so you can call them directly in another SASS file, or output a CSS file exactly the same as the current one.

It'd be based roughly on (a simpler version of) this: http://jaydenseric.com/blog/fun-with-sass-and-font-icons

Alternatively, if you have a better idea for how to do this, I'd be glad to hear it.

That sounds good to me.

Thanks, Geordan. I'll see what I can do...

Done.

The output CSS file looks the same to me.

I'm new to Grunt so you might want to check my Gruntfile. And I used SCSS instead of SASS - does that matter? I was having trouble writing the mixin in SASS mode. :/

#22

Do you want me to write a short how to guide for using the SASS files for inclusion in the readme?

Hinny commented