summaryrefslogtreecommitdiffstats
path: root/src/_apca.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/_apca.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/_apca.scss')
-rw-r--r--src/_apca.scss12
1 files changed, 6 insertions, 6 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