Skip to content

Instantly share code, notes, and snippets.

@renekoch
Created April 10, 2013 14:22
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 renekoch/5355067 to your computer and use it in GitHub Desktop.
Save renekoch/5355067 to your computer and use it in GitHub Desktop.
Sass file, make a font face
@mixin font-face($font-family, $url, $weight: normal, $style: normal, $svgadd: "Regular") {
@font-face {
font-family: $font-family;
src: url($url + ".eot");
src: url($url + ".eot?#iefix") format("embedded-opentype"),
url($url + ".woff") format("woff"),
url($url + ".ttf") format("truetype"),
url($url + ".svg#" + $font-family + $svgadd) format("svg");
font-weight: $weight;
font-style: $style;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment