mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user