Last active
December 12, 2015 12:29
-
-
Save michaelkoper/4772413 to your computer and use it in GitHub Desktop.
Some handy media queries for mobile devices
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 mobile | |
@media (min-device-width: 320px) and (max-device-width: 568px) | |
@content | |
@mixin mobile-portrait | |
@media (min-device-width: 320px) and (max-device-width: 568px) and (orientation:portrait) | |
@content | |
@mixin mobile-landscape | |
@media (min-device-width: 320px) and (max-device-width: 568px) and (orientation:landscape) | |
@content | |
@mixin tablet | |
@media (min-device-width: 768px) and (max-device-width: 1024px) | |
@content | |
@mixin tablet-portrait | |
@media (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) | |
@content | |
@mixin tablet-landscape | |
@media (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) | |
@content | |
@mixin min-width($res) | |
@media ( min-width: $res ) | |
@content | |
@mixin max-width($res) | |
@media ( max-width: $res ) | |
@content | |
@mixin portrait | |
@media (orientation:portrait) | |
@content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment