Skip to content

Instantly share code, notes, and snippets.

@brysongilbert
Created December 9, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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