Created
October 14, 2015 06:44
-
-
Save hsnaydd/2ac3af6ce2a0f6866009 to your computer and use it in GitHub Desktop.
Media Queries Mixin
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
@mixin breakpoint($point) { | |
@if ($MQs == true) { | |
@if $point == baby-bear { | |
@media (max-width: 500px) { @content; } | |
} | |
@if $point == mama-bear { | |
@media (max-width: 700px) { @content; } | |
} | |
@if $point == papa-bear { | |
@media (max-width: 800px) { @content; } | |
} | |
@if $point == super-bear { | |
@media (max-width: 1280px) { @content; } | |
} | |
@if $point == reverso-baby-bear { | |
@media (min-width: 501px) { @content; } | |
} | |
@if $point == reverso-mama-bear { | |
@media (min-width: 701px) { @content; } | |
} | |
@if $point == reverso-papa-bear { | |
@media (min-width: 801px) { @content; } | |
} | |
@if $point == reverso-super-bear { | |
@media (min-width: 1281px) { @content; } | |
} | |
@if $point == exclusive-baby-bear { | |
@media (max-width: 500px) { @content; } | |
} | |
@if $point == exclusive-mama-bear { | |
@media (min-width: 501px) and (max-width: 800px) { @content; } | |
} | |
@if $point == exclusive-papa-bear { | |
@media (min-width: 801px) and (max-width: 1280px) { @content; } | |
} | |
@if $point == iOS { | |
@media (min-device-width: 768px) and (max-device-width: 1024px), (max-device-width: 480px) { | |
@content; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment