Skip to content

Instantly share code, notes, and snippets.

@chasewoodford
Created August 7, 2013 00:12
Show Gist options
  • Save chasewoodford/6170110 to your computer and use it in GitHub Desktop.
Save chasewoodford/6170110 to your computer and use it in GitHub Desktop.
Tomeij's Sass media query mixin
$devices: tablet 768px, phone 320px;
@mixin respond-to($respond-to) {
@each $device in $devices {
@if nth($device, 1) == $respond-to {
@media (max-width: nth($device, 2)) {
@content;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment