Created
May 15, 2013 19:47
-
-
Save scottkellum/5586791 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
This file contains hidden or 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
@function rem($rem, $base: 16px) { | |
$property: font-size; // need property inspection | |
@if unitless($rem) == false { | |
$rem: $rem / 1rem; | |
} | |
$pixels: $rem * $base; | |
@return ($rem * 1rem) + unquote(";") $property + unquote(":") $pixels ; | |
} | |
foo { | |
font-size: rem(1); | |
} |
This file contains hidden or 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
foo { | |
font-size: 1rem; font-size: 16px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment