diff options
| author | Volpeon <git@volpeon.ink> | 2026-01-21 16:27:30 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2026-01-21 16:27:30 +0100 |
| commit | b9c4d1a953f2ce26a64a230e7439a323d5e5fea1 (patch) | |
| tree | 447101f3894b79b4730b9463f1b31db25888e480 | |
| parent | Rename button-group to hlist (diff) | |
| parent | Fix SASS deprecation warning for if() (diff) | |
| download | iro-design-master.tar.gz iro-design-master.tar.bz2 iro-design-master.zip | |
| -rw-r--r-- | src/_apca.scss | 12 | ||||
| -rw-r--r-- | src/_functions.scss | 2 |
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; |
