Created
August 6, 2014 16:10
-
-
Save koycarraway/6bee525a632fb7a47592 to your computer and use it in GitHub Desktop.
Custom @font-face mixin
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 Custom | |
@mixin fontface($font-family, $file-path, $weight: normal, $style: normal) { | |
@font-face { | |
font-family: $font-family; | |
font-weight: $weight; | |
font-style: $style; | |
src: url('#{$file-path}.eot'); | |
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'), | |
url('#{$file-path}.woff') format('woff'), | |
url('#{$file-path}.ttf') format('truetype'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment