Skip to content

Instantly share code, notes, and snippets.

@koycarraway
Created August 6, 2014 16:10
Show Gist options
  • Save koycarraway/6bee525a632fb7a47592 to your computer and use it in GitHub Desktop.
Save koycarraway/6bee525a632fb7a47592 to your computer and use it in GitHub Desktop.
Custom @font-face mixin
// @font-face Custom
@mixin fontface($font-family, $file-path, $weight: normal, $style: normal) {
@font-face {
font-family: $font-family;
font-weight: $weight;
font-style: $style;
src: url('#{$file-path}.eot');
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
url('#{$file-path}.woff') format('woff'),
url('#{$file-path}.ttf') format('truetype');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment