Skip to content

Instantly share code, notes, and snippets.

@kborchers
Created January 20, 2012 17:33
Show Gist options
  • Save kborchers/1648589 to your computer and use it in GitHub Desktop.
Save kborchers/1648589 to your computer and use it in GitHub Desktop.
media queries for mobile only on phones
test: Modernizr.mq( "only screen and (max-device-width: 480px)" ) ||
( Modernizr.mq( "only screen and (min-device-width: 480px) and (max-device-width: 800px)" ) && !Modernizr.mq( "only screen and (min-device-width: 768px)" ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment