diff --git a/src/assets/styles/tools/mixins/_units.scss b/src/assets/styles/tools/mixins/_units.scss index bfba203..0119050 100644 --- a/src/assets/styles/tools/mixins/_units.scss +++ b/src/assets/styles/tools/mixins/_units.scss @@ -5,9 +5,9 @@ // Function for converting a px based font-size to rem. @function parseInt($n) { @if ($n == !important) { - @return !important + @return !important; } @else { - $rem-size: $n / 14px; + $rem-size: calc($n / 14px); @return #{$rem-size}rem; } } @@ -18,10 +18,9 @@ @each $value in $values { @if index((0, 0px), $value) or $value == auto { $rem: append($rem, $value); - } - @else { + } @else { $rem: append($rem, parseInt($value)); } } #{$property}: $rem; -} \ No newline at end of file +}