Created
June 5, 2017 11:36
-
-
Save fchristant/86bdb214cc5593ea9ef1aa08273d832f to your computer and use it in GitHub Desktop.
Detect a device that is not handheld
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
@mixin NotHandHeld() { | |
@media (any-pointer:fine) and #{map-deep-get($site_breakpoints, "m", "mq")}, | |
#{map-deep-get($site_breakpoints, "m", "mq")} and (-moz-touch-enabled: 0), #{map-deep-get($site_breakpoints, "m", "mq")} and (-moz-touch-enabled: 1), | |
#{map-deep-get($site_breakpoints, "m", "mq")} and (-ms-high-contrast: none), #{map-deep-get($site_breakpoints, "m", "mq")} and (-ms-high-contrast: active) | |
{ | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment