Skip to content

Instantly share code, notes, and snippets.

@drouillard
Created March 10, 2012 08:22
Show Gist options
  • Save drouillard/2010844 to your computer and use it in GitHub Desktop.
Save drouillard/2010844 to your computer and use it in GitHub Desktop.
Sass mixin for font-face/font-awesome
font-face("fontawesome","fontawesome-webfont")
@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