From 6dec28df1b56d417bc027fb388f43880d034b559 Mon Sep 17 00:00:00 2001 From: Greg Tyler Date: Mon, 9 Jan 2023 14:56:32 +0000 Subject: [PATCH] fix: use syntax compatible with postcss-calc postcss-calc isn't happy about the `calc()` function without a `var()` (see #433). This new syntax is compatible and produces the same output in our distributed file. --- src/moj/objects/_scrollable-pane.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/moj/objects/_scrollable-pane.scss b/src/moj/objects/_scrollable-pane.scss index a2ee6591..b08eebb7 100755 --- a/src/moj/objects/_scrollable-pane.scss +++ b/src/moj/objects/_scrollable-pane.scss @@ -9,7 +9,7 @@ to right, $scrollableBgColor, $scrollableBgColor, - $scrollableTransparentColor calc($scrollableShadowSize * 2) + $scrollableTransparentColor calc(var($scrollableShadowSize) * 2) ), radial-gradient( farthest-side at 0 50%, @@ -20,7 +20,7 @@ to left, $scrollableBgColor, $scrollableBgColor, - $scrollableTransparentColor calc($scrollableShadowSize * 2) + $scrollableTransparentColor calc(var($scrollableShadowSize) * 2) ), radial-gradient( farthest-side at 100% 50%,