Created
May 27, 2014 19:23
-
-
Save yankeyhotel/b36fac5b0d149c94b120 to your computer and use it in GitHub Desktop.
Font-size rem Calculator Less Mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rem-calc(@sizeValue) { | |
@remValue: @sizeValue/10; | |
@pxValue: @sizeValue; | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment