Add function to calculate rem

This commit is contained in:
Ramon Wenger 2018-08-22 11:33:42 +02:00
parent 08efcec4a6
commit fa8f0b6d7c
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
@import "variables";
@function toRem($px) {
@return $px / $base-font-size-pixels * 1rem;
}