Last active
November 11, 2020 01:17
-
-
Save robdecker/7882159 to your computer and use it in GitHub Desktop.
[Font Awesome :after mixin] #sass
This file contains hidden or 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
// 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; | |
} | |
} |
This file contains hidden or 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
// 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