Skip to content

Instantly share code, notes, and snippets.

@hagata
Created March 6, 2019 17:26
Show Gist options
  • Select an option

  • Save hagata/ed85736b416f278299998a9c8ef335fa to your computer and use it in GitHub Desktop.

Select an option

Save hagata/ed85736b416f278299998a9c8ef335fa to your computer and use it in GitHub Desktop.
@mixin font-family($name) {
@font-face {
font-family: #{$name};
src:url("./Fonts/#{$name}.otf");
src:url("/Static/Core/Fonts/#{$name}.eot");
src:url("/Static/Core/Fonts/#{$name}.eot?#iefix") format("embedded-opentype"),
url("/Static/Core/Fonts/#{$name}.woff") format("woff"),
url("/Static/Core/Fonts/#{$name}.ttf") format("truetype");
font-weight: normal; //optionally add in the default font styles
font-style: normal;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment