martes, 26 de febrero de 2013

FontAwesome and Less

FontAwesome is a very nice font resource. The amount of icons is huge and since they are not images, they scale properly to any size and look nice on any resolution. This is something I really like

One issue I found is that presentational classes force you to modify your HTML to add an icon. While this could be fine for new projects there are situations when you probably would be better using semantic names instead.

That's why I made this, just by searching and replacing on the font-awesome.css file

I added the extension .css to gist files to enable the syntax highlighter. They should be less files.
Doing it this way I can use more semantic names, and when I don't need those I can still use the normal presentational classes that font-awesome offers. So I guess I have the best of both worlds