Skip to content

Instantly share code, notes, and snippets.

@koycarraway
Created August 6, 2014 16:10
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 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