summaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/_apca.scss12
-rw-r--r--src/_functions.scss2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/_apca.scss b/src/_apca.scss
index c5da4a0..5baff02 100644
--- a/src/_apca.scss
+++ b/src/_apca.scss
@@ -90,8 +90,8 @@ $SA98G: (
90 $knownExp: 0; 90 $knownExp: 0;
91 $unknownExp: 0; 91 $unknownExp: 0;
92 92
93 $scale: map.get($SA98G, if($contrast > 0, scaleBoW, scaleWoB)); 93 $scale: map.get($SA98G, if(sass($contrast > 0): scaleBoW; else: scaleWoB));
94 $offset: map.get($SA98G, if($contrast > 0, loBoWoffset, loWoBoffset)); 94 $offset: map.get($SA98G, if(sass($contrast > 0): loBoWoffset; else: loWoBoffset));
95 95
96 $contrast: math.div($contrast * .01 + $offset, $scale); 96 $contrast: math.div($contrast * .01 + $offset, $scale);
97 97
@@ -100,12 +100,12 @@ $SA98G: (
100 } 100 }
101 101
102 @if $knownType == 'bg' { 102 @if $knownType == 'bg' {
103 $knownExp: map.get($SA98G, if($contrast > 0, normBG, revBG)); 103 $knownExp: map.get($SA98G, if(sass($contrast > 0): normBG; else: revBG));
104 $unknownExp: map.get($SA98G, if($contrast > 0, normTXT, revTXT)); 104 $unknownExp: map.get($SA98G, if(sass($contrast > 0): normTXT; else: revTXT));
105 $unknownY: math.pow(math.pow($knownY, $knownExp) - $contrast, math.div(1, $unknownExp)); 105 $unknownY: math.pow(math.pow($knownY, $knownExp) - $contrast, math.div(1, $unknownExp));
106 } @else { 106 } @else {
107 $knownExp: map.get($SA98G, if($contrast > 0, normTXT, revTXT)); 107 $knownExp: map.get($SA98G, if(sass($contrast > 0): normTXT; else: revTXT));
108 $unknownExp: map.get($SA98G, if($contrast > 0, normBG, revBG)); 108 $unknownExp: map.get($SA98G, if(sass($contrast > 0): normBG; else: revBG));
109 $unknownY: math.pow($contrast + math.pow($knownY, $knownExp), math.div(1, $unknownExp)); 109 $unknownY: math.pow($contrast + math.pow($knownY, $knownExp), math.div(1, $unknownExp));
110 } 110 }
111 111
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;