Add white black light dark colors, Fix button inverted

This commit is contained in:
Jeremy Thomas
2016-05-06 00:23:00 +01:00
parent 7ecedc6ec5
commit 15e6ecde1c
15 changed files with 36 additions and 40 deletions

View File

@@ -24,7 +24,7 @@
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
$lightning: (100% - lightness($color)) - 4%
$lightning: max((100% - lightness($color)) - 4%, 0%)
$darkness: max(lightness($color) - 10%, lightness($color))
&.is-#{$name}
background: lighten($color, $lightning)