Created
March 10, 2012 08:22
-
-
Save drouillard/2010844 to your computer and use it in GitHub Desktop.
Sass mixin for font-face/font-awesome
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
font-face("fontawesome","fontawesome-webfont") |
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-face($family, $filename) | |
font-family: $family | |
$prefix : "/fonts/" + $family + "/" + $filename | |
src: url($prefix + ".eot") | |
src: url($prefix + ".eot?#iefix") format('embedded-opentype') | |
src: url($prefix + ".woff") format('woff') | |
src: url($prefix + ".ttf") format('truetype') | |
src: url($prefix + ".svgz#FontAwesomeRegular") format('svg') | |
src: url($prefix + ".svg#FontAwesomeRegular") format('svg') | |
font-weight: normal | |
font-style: normal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment