Last active
October 24, 2019 01:36
-
-
Save dryleaf/b36cb1fdc3577b3306859c22a13cc240 to your computer and use it in GitHub Desktop.
css device type detection (using ios `@supports`)
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
/* start ios/android device detection */ | |
.supports-ios { | |
display: none; | |
} | |
.supports-android { | |
display: block; | |
} | |
@supports (-webkit-overflow-scrolling: touch) { | |
.supports-ios { | |
display: block; | |
} | |
.supports-android { | |
display: none; | |
} | |
} | |
/* end ios/android device detection */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment