sass-planifolia

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

commit
a62912c7f83f37e52d8c7cf35c00c262dcb04de6
parent
f8d0958d4f3554e5a77cd86aa6f14d8b5f682dfb
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-12-23 07:27
add comments to examples

Diffstat

M README.md 10 +++++++++-

1 files changed, 9 insertions, 1 deletions


diff --git a/README.md b/README.md

@@ -39,10 +39,18 @@ Import it in your Sass files:
   39    39 
   40    40 .test {
   41    41     background-color: red;
   -1    42 
   -1    43     // pick between two colors (default: black and white) to get good contrast
   42    44     color: contrast-color(red);
   -1    45 
   -1    46     // mix orange with black or white to get good contrast to red
   43    47     border-color: contrast-stretch(red, orange);
   -1    48 
   -1    49     // mix red with black in a perceptually uniform color space
   44    50     box-shadow: 0 0 1em pf-shade(red, 0.5, 'lab');
   45    -1     font-size: 16px * pow(2.3, 1.5);
   -1    51 
   -1    52     // calculate modular scale dynamically
   -1    53     font-size: 16px * pow(1.5, 2);
   46    54 }
   47    55 ```
   48    56