-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature: support &
with @scope ...
#468
Comments
I would like to note that this currently works:
But this does not:
I actually prefer the former, but the latter needs to be supported. I also find it ironic that in issue #191 you said that you wouldn't support stuff like the former, yet now that's the only one working... ha |
also a wont-add for now since one can get around it by just using the selector above |
Because there is an easy work-around I agree the priority is low, but this issue should remain open and be resolved. Adding support for
turns Pros in short:
|
how would that really differ from just nesting under |
i'll reopen as a feature req |
It seems to me that @scope should be sugar on top of that, providing the following benefits:
|
maybe a nicer alternative would be doing: some selector here {
@import 'something'
} basically acting as a big mixin |
I like. Now I am thinking: Do I want that
I'll sleep on it. |
yeah tough call. IMO the import thing feels cleaner, it should be quite simple. do you know if sass supports this? the one down-side is that if you want to render that file independently you cant really because then you lose your scope |
I'll check out SASS's behaviour tomorrow. I feel like they don't do the exact same thing, as you say:
More tomorrow |
Use-cases for
|
I still dont get why you're nesting with
differ from:
the whole reason for adding @scope is so you dont have to nest |
@visionmedia fixed! Sorry about that, just a bad twitch I have when writing code too quickly. |
ah :D haha that makes more sense now, you did it above as well so i was confused haha |
@visionmedia Ahhh, so sorry haha. Fixed, too. |
Currently
&.signup-share-page
will not attach tobody.signup-page
, but I think it should:The text was updated successfully, but these errors were encountered: