sass-planifolia

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

commit
bc04505f55af70df6183e3124ae0c0fe9c2f8bd5
parent
77ec7aeb4b410c475ec14ccf18497944e5b52129
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-10-17 18:26
convert hsl hue to rad

Diffstat

M sass/color.scss 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -251,7 +251,7 @@ $planifolia-colorspace: 'lab' !default;
  251   251     $max: _pf-max-chroma(nth($lch, 1), nth($lch, 3), 'luv');
  252   252     @return (nth($lch, 1), nth($lch, 2) / $max * 100, nth($lch, 3));
  253   253   } @else if $colorspace == 'hsl' {
  254    -1     @return (lightness($color) / 1%, saturation($color) / 1%, hue($color));
   -1   254     @return (lightness($color) / 1%, saturation($color) / 1%, hue($color) / 1rad * 1rad);
  255   255   } @else if $colorspace == 'yuv' {
  256   256     $yuv: _pf-to-yuv($color);
  257   257     @return _pf-lab-to-lch($yuv);
@@ -276,7 +276,7 @@ $planifolia-colorspace: 'lab' !default;
  276   276     $max: _pf-max-chroma($lightness, $hue, 'luv');
  277   277     @return _lch-unclipped($lightness, $chroma * $max / 100, $hue, 'luv');
  278   278   } @else if $colorspace == 'hsl' {
  279    -1     $color: hsl($hue, $chroma * 1%, $lightness * 1%);
   -1   279     $color: hsl($hue / 1deg * 1deg, $chroma * 1%, $lightness * 1%);
  280   280     @return (red($color), green($color), blue($color));
  281   281   } @else if $colorspace == 'yuv' {
  282   282     $yuv: _pf-lch-to-lab(($lightness, $chroma, $hue));