mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
parent
da5c057b89
commit
d3635f950b
@ -252,17 +252,12 @@
|
||||
box-shadow: var(--Button-boxShadow);
|
||||
text-shadow: var(--Button-textShadow);
|
||||
|
||||
@include hover {
|
||||
// todo: 无法支持 css 变量
|
||||
// @if ($color != $hover-color) {
|
||||
color: $hover-color;
|
||||
// }
|
||||
// @if ($background != $hover-background) {
|
||||
background: $hover-background;
|
||||
// }
|
||||
// @if ($border != $hover-border) {
|
||||
border-color: $hover-border;
|
||||
// }
|
||||
&:not(:disabled):not(.is-disabled) {
|
||||
@include hover {
|
||||
color: $hover-color;
|
||||
background: $hover-background;
|
||||
border-color: $hover-border;
|
||||
}
|
||||
}
|
||||
|
||||
// @include focus {
|
||||
|
@ -42,8 +42,9 @@
|
||||
&.is-disabled,
|
||||
&:disabled {
|
||||
opacity: var(--Button-onDisabled-opacity);
|
||||
filter: grayscale(80%);
|
||||
box-shadow: none;
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:not(:disabled):not(.is-disabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user