-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Selectors as variable #1967
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
Not quite the same, but following is already possible:
results in:
|
Well, my main focus was on a list of selectors I want to modify sometimes, not just a placeholder as in your case. See my full less file:
In the private implementations I need to repeat always all selectors (images in this case). I know that I could change my html output to have always i.e. a
|
This is two features in fact. The main limitation in this case is not the variable (it can be defined as
Yes, currently such repetitive rulesets are usually generated via loops, for example your
And the rest of your code can be implemented via |
Closing as duplicate of #1421. |
Expected result:
Or I'm missing something, maybe there is a different approach?
The text was updated successfully, but these errors were encountered: