Skip to content

Instantly share code, notes, and snippets.

@kylefiedler
Created November 19, 2013 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylefiedler/7546484 to your computer and use it in GitHub Desktop.
Save kylefiedler/7546484 to your computer and use it in GitHub Desktop.
@mixin icon($icon, $position:before) {
&:#{$position} {
@extend %#{$icon};
display: inline-block;
font-family: 'fontello';
font-style: normal;
font-weight: normal;
speak: none;
text-align: center;
text-decoration: inherit;
width: 1em;
@if($position == before) {
margin-right: 0.5em;
} @else {
margin-left: 0.5em;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment