mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-03 10:07:55 +01:00
Fix freezing hover state on clicked elements (#1301)
This commit is contained in:
parent
d0b53ec328
commit
89810c5adb
@ -1,8 +1,13 @@
|
||||
@mixin active-styles() {
|
||||
&:not(.disabled):not(:disabled) {
|
||||
&:hover, &:active, &.active, &:focus {
|
||||
&:active, &.active, &:focus {
|
||||
@content;
|
||||
}
|
||||
@media (hover:hover) {
|
||||
&:hover {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,14 @@
|
||||
.ListItem-button {
|
||||
cursor: pointer;
|
||||
|
||||
body:not(.is-ios) &:hover, &:focus {
|
||||
@media (hover:hover) {
|
||||
&:hover, &:focus {
|
||||
--background-color: var(--color-chat-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
&:not(.has-ripple) .ListItem-button:active {
|
||||
--background-color: var(--color-chat-hover);
|
||||
}
|
||||
}
|
||||
|
@ -15,10 +15,19 @@
|
||||
cursor: pointer;
|
||||
unicode-bidi: plaintext;
|
||||
|
||||
&:hover, &:focus {
|
||||
background-color: var(--color-chat-hover);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
@media (hover:hover) {
|
||||
&:hover, &:focus {
|
||||
background-color: var(--color-chat-hover);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
&:active {
|
||||
background-color: var(--color-chat-hover);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
|
Loading…
Reference in New Issue
Block a user