Skip to content

Instantly share code, notes, and snippets.

@yepes
Created December 23, 2015 17:49
Show Gist options
  • Select an option

  • Save yepes/51b1a3df66a46228dac1 to your computer and use it in GitHub Desktop.

Select an option

Save yepes/51b1a3df66a46228dac1 to your computer and use it in GitHub Desktop.
compass sprite inside media queries
@import "sprite/*.png";
span{
@include sprite-sprite(some_file_name);
}
@media (min-width: 992px){
@include get-sprite($sprite-sprites, some_file_name);
}
@yepes
Copy link
Author

yepes commented Dec 23, 2015

That solves:
Sass::SyntaxError: You may not @extend an outer selector from within @media.
You may only @extend selectors within the same directive.
From "@extend .sprite-sprite" on line 302 of sprite/*.png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment