Skip to content

Instantly share code, notes, and snippets.

@brysongilbert
Created December 9, 2013 15:58
Show Gist options
  • Save brysongilbert/7874461 to your computer and use it in GitHub Desktop.
Save brysongilbert/7874461 to your computer and use it in GitHub Desktop.
LESS Mixin for font-size in ems
.fontEms(@desired, @context: 16) {
font-size: (round((@desired / @context), 4) * 1em);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment