Skip to content

Commit 9d8a0a2

Browse files
committed
"Fix hover effect to apply only on hover-capable devices using media query."
1 parent 9aee430 commit 9d8a0a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

styles.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ header h1 {
147147
cursor: pointer;
148148
transition: all 0.2s ease;
149149
}
150-
151-
.option-btn:hover {
152-
background-color: #e0e0e0;
150+
@media (hover: hover) {
151+
.option-btn:hover {
152+
background-color: #e0e0e0;
153+
}
153154
}
154155

155156
.option-btn.correct {

0 commit comments

Comments
 (0)