Created
June 20, 2018 12:34
-
-
Save Andy-set-studio/b005efedde93bf38f1da86d8d167108c to your computer and use it in GitHub Desktop.
Convert pixel value to REM
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
/** | |
* To Rem | |
* -------------------------------------// | |
* Convert pixel value to REM | |
*/ | |
@function to-rem($pixel-size: 16) { | |
@return ($pixel-size / 16) * 1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment