Created
October 19, 2013 12:50
-
-
Save bcinarli/7055354 to your computer and use it in GitHub Desktop.
Font-face mixin for SASS
This file contains hidden or 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
@mixin fontface($name, $file, $weight: normal, $style: normal){ | |
@font-face { | |
font-family: "#{$name}"; | |
src: url('../fonts/#{$file}.eot'); | |
src: url('../fonts/#{$file}.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/#{$file}.woff') format('woff'), | |
url('../fonts/#{$file}.ttf') format('truetype'), | |
url('../fonts/#{$file}.svg?#webfont') format('svg'); | |
font-weight: $weight; | |
font-style: $style; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment