-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@extend in media query compiles outside of media query #673
Comments
Thanks for reporting this. Could you please add a spec in https://github.com/sass/sass-spec ? Here's an example of a good spec PR for reference https://github.com/sass/sass-spec/pull/89/files |
Well, as I know in Ruby Sass you cannot use |
It turns out that this behavior has been (controversially) deprecated and removed as of SASS 3.3. Please disregard this issue. Different approaches are recommended instead. For more information, see: sass/sass#456 |
What is a better approach? |
If I @extend a class within a media query, the CSS compiles outside the media query and aggregated with the global scope class. This is... weird... and it makes using @extend on classes pretty much worthless on mobile-first projects.
SCSS
EXPECTED CSS
ACTUAL CSS
The text was updated successfully, but these errors were encountered: