Skip to content

Instantly share code, notes, and snippets.

@dryleaf
Last active October 24, 2019 01:36
Show Gist options
  • Save dryleaf/b36cb1fdc3577b3306859c22a13cc240 to your computer and use it in GitHub Desktop.
Save dryleaf/b36cb1fdc3577b3306859c22a13cc240 to your computer and use it in GitHub Desktop.
css device type detection (using ios `@supports`)
/* 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