Skip to content

Instantly share code, notes, and snippets.

@bryanstedman
Last active December 10, 2015 18:48
Show Gist options
  • Save bryanstedman/4477126 to your computer and use it in GitHub Desktop.
Save bryanstedman/4477126 to your computer and use it in GitHub Desktop.
Named Media Queries
@-ms-viewport
width: device-width
=breakpoint($point)
@if $point == babybear
@media only screen and (min-width : 33em)
@content
@if $point == mamabear
@media only screen and (min-width : 50em)
@content
@if $point == papabear
@media only screen and (min-width : 60em)
@content
@if $point == retina
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5)
@content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment