Skip to content

Commit 3c68b43

Browse files
authored
Merge pull request #119 from codeit-maso/feature/Yun
🎨 style: tablet, mobile에서는 삭제버튼 hover효과 제거
2 parents 2572e28 + 1b0c051 commit 3c68b43

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/Card/Card.module.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@
9393
background-color 0.2s ease,
9494
border-color 0.2s ease;
9595

96-
&:hover {
97-
background-color: $error;
98-
border-color: $gray-400;
99-
&:hover img {
100-
animation: shake 0.5s ease-in-out;
96+
@media (hover: hover) {
97+
&:hover {
98+
background-color: $error;
99+
border-color: $gray-400;
100+
img {
101+
animation: shake 0.5s ease-in-out;
102+
}
101103
}
102104
}
103105
}

0 commit comments

Comments
 (0)