sass-planifolia

Vanilla Sass helper functions
git clone https://git.ce9e.org/sass-planifolia.git

commit
0a6a651dac9c1610f0c4271b4968dbc9fde41032
parent
7efa843861beeef53240f5796aa05547a1b60cce
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-15 04:44
fix contrast constant

see https://www.w3.org/WAI/WCAG21/errata/

Diffstat

M sass/contrast.scss 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/sass/contrast.scss b/sass/contrast.scss

@@ -26,7 +26,7 @@ $planifolia-contrast-light-default: white !default;
   26    26 
   27    27 @function _srgb($channel) {
   28    28   $x: math.div($channel, 255);
   29    -1   @if $x <= 0.03928 {
   -1    29   @if $x <= 0.04045 {
   30    30     @return math.div($x, 12.92);
   31    31   } @else {
   32    32     $c: math.div($x + 0.055, 1.055);