Created
July 11, 2016 15:01
-
-
Save Metnew/75302aff0f463ea728d76847a5e9317e to your computer and use it in GitHub Desktop.
SCSS ESSENTIAL MEDIA QUERIES
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
@mixin respond-to($media) { | |
@if $media == mobile{ | |
@media only screen and (max-width: $break-small) { | |
@content; | |
} | |
} | |
@else if $media == tablet { | |
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1){ | |
@content; | |
} | |
} | |
@else if $media == desktop { | |
@media only screen and (min-width: $break-large){ | |
@content; | |
} | |
} | |
@else { | |
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1){ | |
@content; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment