mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
fix(button): fix colorized buttons on hover and outline buttons on hover
references #5403
This commit is contained in:
@ -85,6 +85,10 @@ $button-md-small-icon-font-size: 1.4em !default;
|
|||||||
color: $fg-color;
|
color: $fg-color;
|
||||||
background-color: $bg-color;
|
background-color: $bg-color;
|
||||||
|
|
||||||
|
&:hover:not(.disable-hover) {
|
||||||
|
background-color: $bg-color;
|
||||||
|
}
|
||||||
|
|
||||||
&.activated {
|
&.activated {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background-color: $bg-color-activated;
|
background-color: $bg-color-activated;
|
||||||
@ -147,6 +151,10 @@ $button-md-small-icon-font-size: 1.4em !default;
|
|||||||
color: $button-md-color;
|
color: $button-md-color;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:hover:not(.disable-hover) {
|
||||||
|
background-color: $button-md-clear-hover-background-color;
|
||||||
|
}
|
||||||
|
|
||||||
&.activated {
|
&.activated {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -170,6 +178,10 @@ $button-md-small-icon-font-size: 1.4em !default;
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: $fg-color;
|
color: $fg-color;
|
||||||
|
|
||||||
|
&:hover:not(.disable-hover) {
|
||||||
|
background-color: $button-md-clear-hover-background-color;
|
||||||
|
}
|
||||||
|
|
||||||
&.activated {
|
&.activated {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user