Created
March 24, 2016 13:04
-
-
Save kyuumeitai/c3cb80200b454f9186b9 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
$break-xs: 360px; | |
$break-sm: 768px; | |
$break-md: 992px; | |
$break-lg: 1200px; | |
@mixin respond-to($media) { | |
@if $media == xs { | |
@media only screen and (max-width: $break-sm) { @content; } | |
} | |
@else if $media == sm { | |
@media only screen and (min-width: $break-sm + 1) and (max-width: $break-md - 1) { @content; } | |
} | |
@else if $media == md { | |
@media only screen and (min-width: $break-md + 1) and (max-width: $break-lg - 1) { @content; } | |
} | |
@else if $media == lg { | |
@media only screen and (min-width: $break-lg) { @content; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment