Skip to content

Instantly share code, notes, and snippets.

@leogono
Created November 29, 2013 19:07
Show Gist options
  • Save leogono/7710475 to your computer and use it in GitHub Desktop.
Save leogono/7710475 to your computer and use it in GitHub Desktop.
Rem Font Size mixins
.font-size(@sizeValue) {
@pxValue: @sizeValue;
@remValue: (@sizeValue / 10);
font-size: ~"@{pxValue}px";
font-size: ~"@{remValue}rem";
}
//Apply it by adding .font-size(16); to get 16px and 1.6rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment