fix(toolbar): fixed default button colors for MD in a toolbar, added new function to get this inverse

closes #91
This commit is contained in:
Brandy Carney
2015-12-15 16:41:33 -05:00
parent 8f4307276a
commit d5e0570193
5 changed files with 241 additions and 6 deletions

View File

@ -15,6 +15,19 @@
}
@function toolbar-button-inverse($color-value) {
$lightness: lightness($color-value);
$red: red($color-value);
$green: green($color-value);
@if ($lightness > 65 or $green > 220 or ($red > 240 and $green > 180)) {
@return $toolbar-md-button-color;
}
@return white;
}
@function color-shade($color-value, $amount:8%) {
$lightness: lightness($color-value);