Skip to content

Instantly share code, notes, and snippets.

@michaelkoper michaelkoper/gist:4772413
Last active Dec 12, 2015

Embed
What would you like to do?
Some handy media queries for mobile devices
@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
You can’t perform that action at this time.