fixed sidebar set-off

This commit is contained in:
lotte
2018-12-07 13:53:21 +01:00
parent 07c9927b6a
commit 38652b7a6a
13 changed files with 78 additions and 31 deletions

View File

@@ -3,10 +3,16 @@
@return $remSize;
}
@function strip-unit($number) {
@if type-of($number) == 'number' and not unitless($number) {
@return $number / ($number * 0 + 1);
}
@return $number;
}
}
@function calculatePx($size) {
$pxSize: strip-unit($size) * 16px;
@return $pxSize;
}