Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 11, 2020 01:17
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 robdecker/7882159 to your computer and use it in GitHub Desktop.
Save robdecker/7882159 to your computer and use it in GitHub Desktop.
[Font Awesome :after mixin] #sass
// Custom Font Awesome :after
@mixin font-awesome-after($fa-icon, $margin: 5px) {
&:after {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
display: inline-block;
content: $fa-icon;
text-decoration: inherit;
position: relative;
margin-left: $margin;
}
}
// Usage:
@include font-awesome-after($fa-var-angle-double-right);
@include font-awesome-after($fa-var-angle-double-right, 8px);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment