Skip to content

Instantly share code, notes, and snippets.

@carlwood
Created August 26, 2014 15:47
Show Gist options
  • Save carlwood/60751b70088dc567cc77 to your computer and use it in GitHub Desktop.
Save carlwood/60751b70088dc567cc77 to your computer and use it in GitHub Desktop.
// Sets rems, or px for IE
.font-size(@sizeValue) {
@remValue: @sizeValue;
@pxValue: (@sizeValue * 10);
font-size: ~"@{pxValue}px";
}
// Usage
.font-size(1.6); // 16px/1.6rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment