From 394be998329e2d76f8edc9ab20fd621495e91aec Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Fri, 3 Sep 2021 15:51:51 -0700 Subject: [PATCH] Fixed sass deprecation warnings See . [#179260511] --- src/html/_HTMLReporter.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/html/_HTMLReporter.scss b/src/html/_HTMLReporter.scss index 2b128a04..2ee9c9be 100644 --- a/src/html/_HTMLReporter.scss +++ b/src/html/_HTMLReporter.scss @@ -1,3 +1,5 @@ +@use "sass:math"; + $line-height: 14px; $margin-unit: 14px; @@ -117,7 +119,7 @@ body { li { display: inline-block; - height: ($line-height / 2) + 3; + height: math.div($line-height, 2) + 3; width: $line-height; font-size: 16px; @@ -132,7 +134,7 @@ body { } &.jasmine-failed { - line-height: ($line-height / 2) + 2; + line-height: math.div($line-height, 2) + 2; &:before { color: $failing-color; @@ -282,8 +284,8 @@ body { padding-left: 0; &.jasmine-suite { - margin-top: $margin-unit/2; - margin-bottom: $margin-unit/2 + margin-top: math.div($margin-unit, 2); + margin-bottom: math.div($margin-unit, 2) } }