From 5b8ee49fb4197ff3aee252a33ca12c3b582e5c9a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 9 Oct 2024 21:02:02 +0200 Subject: Fix APCA contrast --- src/functions/colors/_apca.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/functions') diff --git a/src/functions/colors/_apca.scss b/src/functions/colors/_apca.scss index c848db7..0c03529 100644 --- a/src/functions/colors/_apca.scss +++ b/src/functions/colors/_apca.scss @@ -47,7 +47,8 @@ $SA98G: ( } @function apcaContrast($txtY, $bgY) { - $icp: 1.1; + /* stylelint-disable-next-line @stylistic/number-no-trailing-zeros */ + $icp: .0 1.1; @if math.min($txtY, $bgY) < list.nth($icp, 1) or math.max($txtY, $bgY) > list.nth($icp, 2) { @return 0; @@ -117,8 +118,7 @@ $SA98G: ( } @if $unknownY <= map.get($SA98G, blkThrs) { - $unknownY: math.pow(($unknownY + map.get($SA98G, mOffsetIn)) * map.get($SA98G, mFactor), - math.div(map.get($SA98G, mExpAdj), map.get($SA98G, blkClmp))) * math.div(1, map.get($SA98G, mFactor)) - map.get($SA98G, mOffsetOut); + $unknownY: math.pow(($unknownY + map.get($SA98G, mOffsetIn)) * map.get($SA98G, mFactor), math.div(map.get($SA98G, mExpAdj), map.get($SA98G, blkClmp))) * math.div(1, map.get($SA98G, mFactor)) - map.get($SA98G, mOffsetOut); } $unknownY: math.max(math.min($unknownY, 1), 0); -- cgit v1.2.3-70-g09d2