Created
April 9, 2016 14:53
-
-
Save diegoversiani/97ff0e9e5b5fd092170ad68ca689c23b to your computer and use it in GitHub Desktop.
FontAwesome Mixin in scss for using with :before and :after pseudo-classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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