Skip to content

Instantly share code, notes, and snippets.

@pongstr
Last active August 29, 2015 13:59
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 pongstr/10961789 to your computer and use it in GitHub Desktop.
Save pongstr/10961789 to your computer and use it in GitHub Desktop.
// Font-Face Mixin
.font-face (@font-family-name, @font-file-path-file-name, @font-weight: normal, @font-style: normal) {
@font-face {
font-family: '@{font-family-name}';
src: ~"url('@{font-file-path-file-name}.eot')";
src: ~"url('@{font-file-path-file-name}.eot?#iefix') format('embedded-opentype')",
~"url('@{font-file-path-file-name}.woff') format('woff')",
~"url('@{font-file-path-file-name}.ttf') format('truetype')"
~"url('@{font-file-path-file-name}.svg#@{font-family-name}') format('svg')";
font-weight: @font-weight;
font-style: @font-style;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment