How to achieve this media query with sass breakpoint? ...
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape)
I've tried this, but it affects the desktop version as well ...
$mobileLandscape: screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape);
@include breakpoint($mobileLandscape) {
}
This is how to achieve what you want with breakpoint sass (breakpoint-sass bower package). I have tried it in chrome (and simulate device with web developper tools) and it works.
If breakpoint seems too complicated, You can achieve this with your own code. For example :