Skip to content

Instantly share code, notes, and snippets.

@graste
Forked from Snugug/gist:5834818
Created October 3, 2013 22:32
Show Gist options
  • Save graste/6818147 to your computer and use it in GitHub Desktop.
Save graste/6818147 to your computer and use it in GitHub Desktop.
// We're going to use Breakpoint to handle our media queries
// http://github.com/team-sass/breakpoint
@import "breakpoint";
@mixin element-query($sizes...) {
@each $size in $sizes {
@include breakpoint(nth($size, 2)) {
#{nth($size, 1)} & {
@content;
}
}
}
}
.schedule-component {
@include element-query('.content' 32.5em, 'aside' 90em) {
...styles here...
}
}
// I'll add this to https://github.com/Team-Sass/toolkit if you think it'll be useful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment