Created
November 29, 2019 13:31
-
-
Save vadimbogomazov/f0b8861804ce5fd4673310fec8f81a6a to your computer and use it in GitHub Desktop.
iPhone media queries
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
@mixin iphoneXR() { | |
@media only screen | |
and (device-width: 414px) | |
and (device-height: 896px) | |
and (-webkit-device-pixel-ratio: 2) { | |
@content; | |
} | |
} | |
@mixin iphoneXS() { | |
@media only screen | |
and (device-width: 375px) | |
and (device-height: 812px) | |
and (-webkit-device-pixel-ratio: 3) { | |
@content; | |
} | |
} | |
@mixin iphoneXSMax() { | |
@media only screen | |
and (device-width: 414px) | |
and (device-height: 896px) | |
and (-webkit-device-pixel-ratio: 3) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment