Skip to content

Instantly share code, notes, and snippets.

@keeprock
Created August 11, 2015 15:04
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 keeprock/4688be4c9074856908b5 to your computer and use it in GitHub Desktop.
Save keeprock/4688be4c9074856908b5 to your computer and use it in GitHub Desktop.
@mixin fontFace($family,$src,$style: normal,$weight: normal) {
@font-face {
font-family: $family;
src: url('#{$src}.eot'); // IE9 compat
src: url('#{$src}.eot?#iefix') format('embedded-opentype'), // IE8 and below
url('#{$src}.woff') format('woff'), // standards
url('#{$src}.ttf') format('truetype'), // Safari, Android, iOS
url('#{$src}.svg##{$family}') format('svg'); // legacy iOS
font-style: $style;
font-weight: $weight;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment