Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Narayon/b70506246f76bed7b302 to your computer and use it in GitHub Desktop.
Save Narayon/b70506246f76bed7b302 to your computer and use it in GitHub Desktop.
SCSS: helper for font-face
@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