Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@michaelkoper
Last active December 12, 2015 12:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelkoper/4772413 to your computer and use it in GitHub Desktop.
Save michaelkoper/4772413 to your computer and use it in GitHub Desktop.
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