Skip to content

Instantly share code, notes, and snippets.

@fivedoor-gists
Created August 9, 2019 08:48
Show Gist options
  • Save fivedoor-gists/78ca154549bef956843d0ff955ea4176 to your computer and use it in GitHub Desktop.
Save fivedoor-gists/78ca154549bef956843d0ff955ea4176 to your computer and use it in GitHub Desktop.
email-target-ios
<style>
/* IOS 10 & IOS 11
=================== */
@supports (-webkit-overflow-scrolling:touch) and (color:#ffff) {
}
/* We can target iOS with the proprietary property “-webkit-overflow-scrolling” that is only supported on iOS. If we use this in combination with one of the properties supported exclusively in iOS’ most recent webkit versions— #RGBA color notations, for example—we can specifically target iOS 10 and above.
https://litmus.com/blog/what-email-marketers-need-to-know-about-ios-11-and-the-new-iphones
*/
/* iOS 11.0 & 11.1
================== */
@supports (padding-left:constant(safe-area-inset-left)) {
}
/* If you’d like to specifically target iOS Mail in the most recent version of Apple’s operating system—that’s iOS 11.0, 11.1, or 11.2—@support declarations combined with padding properties will do the trick
https://litmus.com/blog/what-email-marketers-need-to-know-about-ios-11-and-the-new-iphones
*/
/* iOS 11.2
=========== */
@supports (padding-left:env(safe-area-inset-left)) {
/* Insert CSS here */
}
/* https://litmus.com/blog/what-email-marketers-need-to-know-about-ios-11-and-the-new-iphones
*/
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment