Skip to content

Commit

Permalink
#287 Prevent link hover effect on touchscreens
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Feb 7, 2024
1 parent dcbc352 commit 94a377c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/styles/features/links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,25 @@ li.block {
overflow: hidden;
}

&.selected div,
&:hover div {
&.selected div {
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

&:hover:not(.selected) div {
transform: scale(0.95);
}

&.selected div {
outline: 0.3em solid var(--color-blue);
}
}

@media only screen and (hover: hover) {
li.block:hover div {
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

li.block:hover:not(.selected) div {
transform: scale(0.95);
}
}

li.block.folder > div {
display: grid;
column-gap: 4px;
Expand Down

0 comments on commit 94a377c

Please sign in to comment.