Skip to content

Instantly share code, notes, and snippets.

@speed-of-light
Last active April 11, 2016 03:28
Show Gist options
  • Save speed-of-light/65270fd6896b67f6ffb263a40400c98c to your computer and use it in GitHub Desktop.
Save speed-of-light/65270fd6896b67f6ffb263a40400c98c to your computer and use it in GitHub Desktop.
// usage:
// @breakpoint(xxs)
// font-size: 10px
@mixin breakpoint($point)
@if $point == xxs
@media (max-width: 130px)
@content
@else if $point == xs
@media (min-width: 240px)
@content
@else if $point == s
@media (min-width: 320px)
@content
@else if $point == m
@media (min-width: 768px)
@content
@else if $point == l
@media (min-width: 1200px)
@content
@else if $point == xl
@media (min-width: 1400px)
@content
@else if $point == retina
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)
@content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment