-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Selector references #2056
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
Comments
This is a duplicate #1075. Unfortunately both The proposed |
@seven-phases-max The syntax can be different, what we need is features. These are the most missing. |
@web2style And it's been discussed for a year and a half by now in #1075. That's how these things work: no agreement on syntax + no volunteers to implement -> no feature. PRs are welcome (but first we need to decide on a non-conflicting syntax). |
Closing as duplicate of #1075. |
That particular discussion in #1075 sort of went of the rails trying to find consensus. What got lost in the noise was the discussion of a simple root selector ( .foo {
width: 10px;
.bar,
/.baz {
height: 10px;
}
}
// renders as:
.foo {
width: 10px;
}
.foo .bar,
.baz {
height: 10px;
} That's come up a few times, and unlike parent selectors, I think that would be fairly non-controversial as far as implementation. (Of course, who can anticipate what's non-controversial.) On the idea level, it seems straightforward. Probably just need agreement as to syntax. Should we open it as a separate issue? |
I guess we could since it can be implemented and be useful independently of #1075. |
Stylus developers are reviewing a spec for selector references. This is the feature we really need in Less. Please, consider adding something similar into less. That would be great. Thank you.
The text was updated successfully, but these errors were encountered: