[components] changed style for disabled state

This commit is contained in:
Maxim Kadushkin 2019-10-10 16:02:17 +03:00
parent 2d43f6d050
commit da37e8cde3
2 changed files with 7 additions and 4 deletions

View file

@ -104,9 +104,12 @@
}
.mx-button-otherstates-icon2(@icon-size) {
&.active .icon,
&:active .icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
&.disabled .icon {background-position-x: -2*@icon-size; --bgX: -(2*@icon-size);}
&.active, &:active{
&:not(:disabled):not(.disabled) {
.icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
}
}
&.disabled {.icon {opacity: .4;}}
}
.button-otherstates-icon2(@icon-class, @icon-size) {

View file

@ -315,7 +315,7 @@
&[disabled],
&.disabled {
color: #000;
opacity: 0.4;
opacity: 1;
}
}