Last active
August 29, 2015 13:59
-
-
Save pongstr/10961789 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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