From 5184c97233dee9dda5cdbca3fd80393a89248b83 Mon Sep 17 00:00:00 2001 From: moxian Date: Thu, 19 May 2022 10:53:23 +0000 Subject: [PATCH] Fix TGUI deprecation warnings (#17823) --- tgui/packages/tgui/styles/functions.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tgui/packages/tgui/styles/functions.scss b/tgui/packages/tgui/styles/functions.scss index 7f65551b65a..940a6a4d477 100644 --- a/tgui/packages/tgui/styles/functions.scss +++ b/tgui/packages/tgui/styles/functions.scss @@ -18,9 +18,9 @@ @return null; } @if math.unit($value) == '%' { - @return $value / 100%; + @return math.div($value, 100%); } - @return $value / ($value * 0 + 1); + @return math.div($value, ($value * 0 + 1)); } // Color @@ -48,11 +48,11 @@ @each $name, $value in $colors { $adjusted: 0; - $value: $value / 255; + $value: math.div($value, 255); @if $value < 0.03928 { - $value: $value / 12.92; + $value: math.div($value, 12.92); } @else { - $value: ($value + 0.055) / 1.055; + $value: math.div(($value + 0.055), 1.055); $value: math.pow($value, 2.4); } $colors: map.merge(