-
-
Save thanegill/2211155 to your computer and use it in GitHub Desktop.
SCSS: 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
@mixin font-face($font-family, $url) { | |
@font-face { | |
font-family: '#{$font-family}'; | |
src: url('#{$url}.eot'); | |
src: url('#{$url}.eot?#iefix') format('embedded-opentype'), | |
url('#{$url}.woff') format('woff'), | |
url('#{$url}.ttf') format('truetype'), | |
url('#{$url}.svg') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment