From 8961490ff83e3333d7744f0e2ff6e51dbae2bc89 Mon Sep 17 00:00:00 2001 From: Chris Chen Date: Sun, 7 Apr 2024 09:50:56 -0700 Subject: [PATCH] Update _units.scss --- src/assets/styles/tools/mixins/_units.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 +}