Skip to content

Instantly share code, notes, and snippets.

@albertgrala
Created December 7, 2012 16:16
Show Gist options
  • Save albertgrala/4234353 to your computer and use it in GitHub Desktop.
Save albertgrala/4234353 to your computer and use it in GitHub Desktop.
SASS: @mixin respond-to
@mixin respond-to($val, $query){
@media ($val : $query){
@content
}
}
// Usage
.example{
@include respond-to(min-width, 900px){
float: none;
width: 100%;
}
}
// Return
@media (min-width: 900px){
.example{
float: none;
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment