Last active
April 11, 2016 03:28
-
-
Save speed-of-light/65270fd6896b67f6ffb263a40400c98c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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