Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Created November 27, 2017 22:04
Show Gist options
  • Select an option

  • Save gotbahn/6930391db9965d44833e5de56dc15e25 to your computer and use it in GitHub Desktop.

Select an option

Save gotbahn/6930391db9965d44833e5de56dc15e25 to your computer and use it in GitHub Desktop.
Font face mixin output
@font-face {
.woot {
font-family: "Name";
font-weight: 400;
font-style: normal;
src: url("static/fonts/name/name_regular.woff2"), url("static/fonts/name/name_regular.woff");
}
}
@font-face {
.woot {
font-family: "Name";
font-weight: 400;
font-style: normal;
src: url("static/fonts/name/name_italic.woff2"), url("static/fonts/name/name_italic.woff");
}
}
@font-face {
.woot {
font-family: "Name";
font-weight: 100;
font-style: normal;
src: url("static/fonts/name/name_light.woff2"), url("static/fonts/name/name_light.woff");
}
}
@font-face {
.woot {
font-family: "Name";
font-weight: 700;
font-style: normal;
src: url("static/fonts/name/name_bold.woff2"), url("static/fonts/name/name_bold.woff");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment