Skip to content

Instantly share code, notes, and snippets.

@velocityzen
Last active December 15, 2015 06:59
Show Gist options
  • Save velocityzen/5220619 to your computer and use it in GitHub Desktop.
Save velocityzen/5220619 to your computer and use it in GitHub Desktop.
@font-face less mixing
.font (@font-name, @font-file, @font-weight: normal, @font-style: normal) {
@font-face {
font-family: @font-name;
src:url('../fonts/@{font-file}.woff2') format('woff2'),
url('../fonts/@{font-file}.woff') format('woff'),
url('../fonts/@{font-file}.ttf') format('truetype');
font-weight: @font-weight;
font-style: @font-style;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment