summaryrefslogtreecommitdiffstats
path: root/src/_functions.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2026-01-21 11:26:46 +0100
committerVolpeon <git@volpeon.ink>2026-01-21 11:26:46 +0100
commit7408d8cb5bbd1cbc4cd8ee5e2192505d1a9c69ac (patch)
tree06b2520a93326608720259219b5ee64caa18c556 /src/_functions.scss
parentAdd wide button modifier (diff)
downloadiro-design-7408d8cb5bbd1cbc4cd8ee5e2192505d1a9c69ac.tar.gz
iro-design-7408d8cb5bbd1cbc4cd8ee5e2192505d1a9c69ac.tar.bz2
iro-design-7408d8cb5bbd1cbc4cd8ee5e2192505d1a9c69ac.zip
Fix SASS deprecation warning for if()
Diffstat (limited to 'src/_functions.scss')
-rw-r--r--src/_functions.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_functions.scss b/src/_functions.scss
index ec1f9d8..71dae99 100644
--- a/src/_functions.scss
+++ b/src/_functions.scss
@@ -51,7 +51,7 @@
51 $contrast-white: apca.contrast($white-y, $y); 51 $contrast-white: apca.contrast($white-y, $y);
52 52
53 $palette: map.set($palette, $key, $color); 53 $palette: map.set($palette, $key, $color);
54 $palette: map.set($palette, #{$key}-text, if(math.abs($contrast-black) > math.abs($contrast-white), #000, #fff)); 54 $palette: map.set($palette, #{$key}-text, if(sass(math.abs($contrast-black) > math.abs($contrast-white)): #000; else: #fff));
55 } 55 }
56 56
57 @return $palette; 57 @return $palette;