Forked from frankyonnetti/css-remove-hover-on-touch-screen-devices.css
Created
September 21, 2018 09:05
-
-
Save ikawka/6e9884260d4c6cb5c822013d46a976d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* http://www.javascriptkit.com/dhtmltutors/sticky-hover-issue-solutions.shtml | |
* Method 3- Using CSS Media Queries Level 4 Interaction Media Features | |
*/ | |
@media (hover:none), | |
(hover:on-demand) { | |
nav a:hover { | |
/* suppress hover effect on devices that don't support hover fully */ | |
background: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment