* Fixed button disabled. (#517)
parent
d56f32f8e6
commit
0612667f91
|
@ -172,6 +172,19 @@
|
||||||
box-shadow: none;
|
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 {
|
&:insensitive:insensitive {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|
|
@ -320,6 +320,19 @@
|
||||||
box-shadow: none;
|
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 {
|
&:disabled:disabled {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|
Loading…
Reference in New Issue