sass-planifolia

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

commit
e0f95a1ecded1b9efa0eef810dbd3174b1e8bba8
parent
ee28d6a12e2913191b2896f7721684d4dc5c1ed7
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2016-07-06 05:40
deprecate low-level contrast functions

Diffstat

M sass/contrast.scss 9 ++-------

1 files changed, 2 insertions, 7 deletions


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

@@ -22,9 +22,7 @@ $planifolia-contrast-light-default: white !default;
   22    22   }
   23    23 }
   24    24 
   25    -1 /// @param {color} $fg foreground color
   26    -1 /// @param {color} $bg [white] background color
   27    -1 /// @return {color} blended color
   -1    25 // FIXME: namespace name
   28    26 @function alpha-blend($fg, $bg: white) {
   29    27   $a1: alpha($bg);
   30    28   $a2: alpha($fg);
@@ -43,10 +41,7 @@ $planifolia-contrast-light-default: white !default;
   43    41   @return rgba($r, $g, $b, $a);
   44    42 }
   45    43 
   46    -1 /// Calculate the perceptual brightness of a color.
   47    -1 ///
   48    -1 /// @param {color} $color
   49    -1 /// @return {number} normalized to [0, 1]
   -1    44 // FIXME: namespace name
   50    45 @function luma($color) {
   51    46   $r: _planifolia-srgb(red($color));
   52    47   $g: _planifolia-srgb(green($color));