Skip to content
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

Parent selector with mutiple selector in var. #1546

Closed
conmute opened this issue Sep 13, 2013 · 6 comments
Closed

Parent selector with mutiple selector in var. #1546

conmute opened this issue Sep 13, 2013 · 6 comments

Comments

@conmute
Copy link

conmute commented Sep 13, 2013

In SCSS i can do so:
$selector-active: "&:focus, &:hover, &:active";
and then
.class {
...
#{$selector-active} {
...
}
}
And its working.
How can i do this in LESS?

@seven-phases-max
Copy link
Member

@lukeapage
Copy link
Member

parsing selectors when doing selector interpolation is often asked for and would fix this issue. Until then, please read the so artical above.

@conmute
Copy link
Author

conmute commented Sep 13, 2013

Yes, i know that artcile. I was who asked that question. Also i did modifications to that answer so i could use it more properly while doing work:
http://stackoverflow.com/a/18785412/1181479

@carlos22
Copy link

I know +1 posts are bad. But i really would love to have that feature...

@seven-phases-max
Copy link
Member

Related to #1421 (not merging since this one is for & and the other is for comma only).

@stale
Copy link

stale bot commented Nov 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

4 participants