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