Created
March 20, 2016 14:56
-
-
Save anonymous/ce7c5287e1e20619d8aa to your computer and use it in GitHub Desktop.
px to rem mixin
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($pxs) { | |
@if type_of($pxs) == list { | |
$rem: (); | |
@each $px in $pxs { | |
$rem: append($rem, $px / 16 * 1rem); | |
} | |
} @else { | |
$rem: $pxs / 16 * 1rem; | |
} | |
@return $rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment