Skip to content

Instantly share code, notes, and snippets.

@snowman-repos
Last active October 11, 2015 09:28
Show Gist options
  • Save snowman-repos/3838109 to your computer and use it in GitHub Desktop.
Save snowman-repos/3838109 to your computer and use it in GitHub Desktop.
SASS: Media Queries
@mixin breakpoint($point) {
@if $point == mama-bear {
@media (max-width: 1250px) { @content; }
}
@if $point == baby-bear {
@media (max-width: 800px) { @content; }
}
@if $point == reverso-baby-bear {
@media (min-width: 800px) { @content; }
}
@if $point == reverso-mama-bear {
@media (min-width: 1250px) { @content; }
}
}
.page-wrap {
width: 80%;
@include breakpoint(baby-bear) {
width: 100%;
}
}
.footer {
a {
display: inline-block;
@include breakpoint(baby-bear) {
display: block;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment