Created
May 5, 2020 14:10
-
-
Save 6ui11em/3595bc4924deb8eb65c777e0896f08e3 to your computer and use it in GitHub Desktop.
CSS: Tocuh screen media quieris #css #media-query #responsive
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
/* smartphones, touchscreens */ | |
@media (hover: none) and (pointer: coarse) { | |
/* ... */ | |
} | |
/* stylus-based screens */ | |
@media (hover: none) and (pointer: fine) { | |
/* ... */ | |
} | |
/* Nintendo Wii controller, Microsoft Kinect */ | |
@media (hover: hover) and (pointer: coarse) { | |
/* ... */ | |
} | |
/* mouse, touch pad */ | |
@media (hover: hover) and (pointer: fine) { | |
/* ... */ | |
} | |
/* at least one input mechanism of the device includes a pointing device of limited accuracy. */ | |
@media (any-pointer: coarse) { | |
/* ... */ | |
} | |
/* at least one input mechanism of the device includes an accurate pointing device. */ | |
@media (any-pointer: fine) { | |
/* ... */ | |
} | |
/* the device does not include any pointing device. */ | |
@media (any-pointer: none) { | |
/* ... */ | |
} | |
/* one or more available input mechanism(s) can hover over elements with ease */ | |
@media (any-hover: hover) { | |
/* ... */ | |
} | |
/* one or more available input mechanism(s) can hover, but not with ease (for example simulating the hovering when performing a long touch) */ | |
@media (any-hover: on-demand) { | |
/* ... */ | |
} | |
/* one or more available input mechanism(s) cannot hover or there are no pointing input mechanisms */ | |
@media (any-hover: none) { | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment