Skip to content

Instantly share code, notes, and snippets.

@angeliquejw
Last active December 18, 2015 04:59
Show Gist options
  • Save angeliquejw/5729314 to your computer and use it in GitHub Desktop.
Save angeliquejw/5729314 to your computer and use it in GitHub Desktop.
font-face mixin
@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