Skip to content

Instantly share code, notes, and snippets.

@diegoversiani
Created April 9, 2016 14:53
Show Gist options
  • Save diegoversiani/97ff0e9e5b5fd092170ad68ca689c23b to your computer and use it in GitHub Desktop.
Save diegoversiani/97ff0e9e5b5fd092170ad68ca689c23b to your computer and use it in GitHub Desktop.
FontAwesome Mixin in scss for using with :before and :after pseudo-classes
@mixin font-awesome-content($icon-code) {
content: $icon-code;
font-family: 'FontAwesome';
font-weight: normal;
font-style: normal;
margin:0px 0px 0px 10px;
text-decoration:none;
}
// Usage example:
a[target='_blank']:after {
@include font-awesome-content('\f08e');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment