Last active
June 8, 2016 10:30
-
-
Save tnajdek/0af6952271efc36abe07 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$breakpoints: ( | |
'minimal': 320, | |
'small': 480, | |
'vga': 640, | |
'tablet': 768, | |
'medium': 800, | |
'large': 1000, | |
'sxga': 1280, | |
'wsxga': 1680, | |
'hd': 1920 | |
); | |
@mixin upto($media) { | |
@media only screen and (max-width: #{map-get($breakpoints, $media)}px) { | |
@content; | |
} | |
} | |
@mixin from($media) { | |
@media only screen and (min-width: #{map-get($breakpoints, $media) + 1}px) { | |
@content; | |
} | |
} | |
@mixin between($media1, $media2) { | |
@media only screen and (min-width: #{map-get($breakpoints, $media1) + 1}px) and (max-width: #{map-get($breakpoints, $media2)}px) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment