Skip to content

Instantly share code, notes, and snippets.

@ladygeekgeek
ladygeekgeek / SASS Icon Font Mixin.markdown
Last active Jan 22, 2017
A DRY Sass mixin for generating icon-fonts with custom properties
View SASS Icon Font Mixin.markdown

A DRY Sass mixin for generating icon-fonts with custom properties

There are some good sass mixins out there for icon-fonts. But I coudn't find one that followed DRY principles and allowed you to use semantic html and not have icon- classes everywhere.

##First set up your base icon font styles.

// first declaration needed for IE8