fix: stop revealing elements on hover if hover is not supported (#3191)
Resolves #3162 Co-authored-by: Dan Stewart <git@mail.danstewart.dev> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/3191 Reviewed-by: konrad <k@knt.li> Co-authored-by: danstewart <danstewart@noreply.kolaente.de> Co-committed-by: danstewart <danstewart@noreply.kolaente.de>
This commit is contained in:
@ -147,7 +147,7 @@ const listStore = useListStore()
|
||||
top: var(--list-card-padding);
|
||||
right: var(--list-card-padding);
|
||||
transition: opacity $transition, color $transition;
|
||||
opacity: 0;
|
||||
opacity: 1;
|
||||
|
||||
&:hover {
|
||||
color: var(--warning);
|
||||
@ -160,8 +160,14 @@ const listStore = useListStore()
|
||||
}
|
||||
}
|
||||
|
||||
.list-card:hover .favorite {
|
||||
opacity: 1;
|
||||
@media(hover: hover) and (pointer: fine) {
|
||||
.list-card .favorite {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.list-card:hover .favorite {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.background-fade-in {
|
||||
@ -173,4 +179,4 @@ const listStore = useListStore()
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user