* Fixed button disabled. (#517)

pull/519/head
Csaba Jakosa 2016-08-24 00:37:45 +02:00 committed by Dustin Falgout
parent d56f32f8e6
commit 0612667f91
2 changed files with 26 additions and 0 deletions

View File

@ -172,6 +172,19 @@
box-shadow: none;
}
&:insensitive:insensitive {
@if (lightness($button_bg) > 50) {
@include linear-gradient(shade($button_bg, .95));
} @else {
@include linear-gradient(alpha($button_bg, .3));
}
color: mix($bg, $fg, .5);
box-shadow: none;
}
}
&.flat {
&:insensitive:insensitive {
background-color: transparent;
background-image: none;

View File

@ -320,6 +320,19 @@
box-shadow: none;
}
&:disabled:disabled {
@if (lightness($button_bg) > 50) {
@include linear-gradient(shade($button_bg, .95));
} @else {
@include linear-gradient(alpha($button_bg, .3));
}
color: mix($bg, $fg, .5);
box-shadow: none;
}
}
&.flat {
&:disabled:disabled {
background-color: transparent;
background-image: none;