Skip to content

Instantly share code, notes, and snippets.

@thanegill
Forked from paul-english/gist:1340239
Last active October 21, 2019 18:35
Show Gist options
  • Save thanegill/2211155 to your computer and use it in GitHub Desktop.
Save thanegill/2211155 to your computer and use it in GitHub Desktop.
SCSS: font-face mixin
@mixin font-face($font-family, $url) {
@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') format('svg');
font-weight: normal;
font-style: normal;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment