Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 style(Button): button hover state on mobile after press #2063

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 26 additions & 25 deletions src/Masa.Blazor/wwwroot/css/masa-blazor.css
Original file line number Diff line number Diff line change
Expand Up @@ -3385,7 +3385,7 @@ progress {

.dialog-transition-enter-active, .dialog-transition-leave-active {
/* HACK: Temporarily comment out this code block because in high latency situations,
the transition animation of the dialog may not complete,
the transition animation of the dialog may not complete,
which can result in this CSS not being removed, making the dialog unclickable.
Fix this when refactoring transition!*/
/*pointer-events: none !important;*/
Expand Down Expand Up @@ -18274,19 +18274,6 @@ html.overflow-y-hidden {
.theme--light.m-btn.m-btn--icon {
color: var(--m-theme-light-on-surface);
}
.theme--light.m-btn:hover::before {
opacity: 0.08;
}
.theme--light.m-btn:focus::before {
opacity: 0.24;
}
.theme--light.m-btn--active:hover::before, .theme--light.m-btn--active::before {
opacity: 0.18;
}
.theme--light.m-btn--active:focus::before {
opacity: 0.16;
}

.theme--dark.m-btn {
color: var(--m-theme-dark-on-surface);
}
Expand All @@ -18309,17 +18296,31 @@ html.overflow-y-hidden {
.theme--dark.m-btn.m-btn--icon {
color: var(--m-theme-dark-on-surface);
}
.theme--dark.m-btn:hover::before {
opacity: 0.08;
}
.theme--dark.m-btn:focus::before {
opacity: 0.24;
}
.theme--dark.m-btn--active:hover::before, .theme--dark.m-btn--active::before {
opacity: 0.18;
}
.theme--dark.m-btn--active:focus::before {
opacity: 0.32;
@media (hover: hover) {
.theme--light.m-btn:hover::before {
opacity: 0.08;
}
.theme--light.m-btn:focus::before {
opacity: 0.24;
}
.theme--light.m-btn--active:hover::before, .theme--light.m-btn--active::before {
opacity: 0.18;
}
.theme--light.m-btn--active:focus::before {
opacity: 0.16;
}
.theme--dark.m-btn:hover::before {
opacity: 0.08;
}
.theme--dark.m-btn:focus::before {
opacity: 0.24;
}
.theme--dark.m-btn--active:hover::before, .theme--dark.m-btn--active::before {
opacity: 0.18;
}
.theme--dark.m-btn--active:focus::before {
opacity: 0.32;
}
}

.m-btn {
Expand Down
2 changes: 1 addition & 1 deletion src/Masa.Blazor/wwwroot/css/masa-blazor.min.css

Large diffs are not rendered by default.

Loading