Skip to content

Instantly share code, notes, and snippets.

@hsnaydd
Created October 14, 2015 06:44
Show Gist options
  • Save hsnaydd/2ac3af6ce2a0f6866009 to your computer and use it in GitHub Desktop.
Save hsnaydd/2ac3af6ce2a0f6866009 to your computer and use it in GitHub Desktop.
Media Queries Mixin
@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