Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Created April 26, 2014 16:11
Show Gist options
  • Select an option

  • Save seven-phases-max/11324003 to your computer and use it in GitHub Desktop.

Select an option

Save seven-phases-max/11324003 to your computer and use it in GitHub Desktop.
body {
.font-squirrel(keergoodoo, bold, 1.1em, 1.3em, 300);
}
div {
.font("bambarbiya", 1.2em, 1.5em, 700);
}
// implemetation:
.font(
@family: sans-serif,
@size: 1.0em,
@lineHeight: 1.4em,
@weight: normal,
@style: normal,
@variant: normal) {
font: @style @variant @weight @size~"/"@lineHeight @family;
}
.font-squirrel(
@name: apercu,
@nameWeight: light,
@size: 1.0em,
@lineHeight: 1.4em,
@weight: normal,
@style: normal,
@variant: normal) {
.font("@{name}_@{nameWeight}", @size, @lineHeight, @weight, @style, @variant);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment