Skip to content

Instantly share code, notes, and snippets.

@pablolobos
Created February 19, 2014 14:27
Show Gist options
  • Save pablolobos/9093161 to your computer and use it in GitHub Desktop.
Save pablolobos/9093161 to your computer and use it in GitHub Desktop.
sass_media-queries.scss
@mixin large {
@media only screen and (max-width: 60em) {
@content;
}
}
@mixin medium {
@media only screen and (max-width: 40em) {
@content;
}
}
@mixin small {
@media only screen and (max-width: 30em) {
@content;
}
}
//Usage
@include small {
width: 100%;
float: none;
margin: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment