Skip to content

Instantly share code, notes, and snippets.

@lmartins
Created October 4, 2012 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmartins/3836485 to your computer and use it in GitHub Desktop.
Save lmartins/3836485 to your computer and use it in GitHub Desktop.
scss: Responsive mixin
@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; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment