Skip to content

Commit

Permalink
restrict the hover effect to devices that can hover
Browse files Browse the repository at this point in the history
  • Loading branch information
tasxatzial committed Aug 18, 2023
1 parent 40bcbc0 commit 0c6eae9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ body {
cursor: pointer;
}

.click-and-hold:hover {
background-color: rgb(var(--bg-clr) / 0.4);
}
@media (hover:hover) {
.click-and-hold:hover {
background-color: rgb(var(--bg-clr) / 0.4);
}
}

.click-and-hold[data-active-hold] {
position: relative;
Expand Down

0 comments on commit 0c6eae9

Please sign in to comment.