Created
January 18, 2019 12:49
-
-
Save gil00pita/ef165bf328bd15ada9eea64881058377 to your computer and use it in GitHub Desktop.
CSS Media query to check if the defice has Touchscreen. The ‘pointer’ media feature is used to query about the presence and accuracy of a pointing device such as a mouse. If a device has multiple input mechanisms, it is recommended that the UA repor
This file contains 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
@mixin isTouch { | |
@media (pointer:coarse) { | |
@content | |
} | |
} |
This file contains 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
@media (pointer:coarse) { | |
// OVERWRITES | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment