Skip to content

Instantly share code, notes, and snippets.

@TexRx
Forked from Snugug/gist:5834818
Created June 22, 2013 06:09
Show Gist options
  • Select an option

  • Save TexRx/5836060 to your computer and use it in GitHub Desktop.

Select an option

Save TexRx/5836060 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