summaryrefslogtreecommitdiffstats
path: root/src/_apca.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2026-01-21 16:27:30 +0100
committerVolpeon <git@volpeon.ink>2026-01-21 16:27:30 +0100
commitb9c4d1a953f2ce26a64a230e7439a323d5e5fea1 (patch)
tree447101f3894b79b4730b9463f1b31db25888e480 /src/_apca.scss
parentRename button-group to hlist (diff)
parentFix SASS deprecation warning for if() (diff)
downloadiro-design-b9c4d1a953f2ce26a64a230e7439a323d5e5fea1.tar.gz
iro-design-b9c4d1a953f2ce26a64a230e7439a323d5e5fea1.tar.bz2
iro-design-b9c4d1a953f2ce26a64a230e7439a323d5e5fea1.zip
Merge branch 'master' of git.vulpes.one:iro-designHEADmaster
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