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

Feature: CSS Alias named selector sets #11454

Closed
wesleyolis opened this issue Jan 7, 2025 · 2 comments
Closed

Feature: CSS Alias named selector sets #11454

wesleyolis opened this issue Jan 7, 2025 · 2 comments

Comments

@wesleyolis
Copy link

Proposal

The ability to define an alias name, which represents a set of CSS selectors, which can then
easily be used and where the CSS selectors would have had to have been written out in full.
This would reduce the overhead of having to repeat oneself a lot for similar selector sets combinations
and slight specializations.

Where a % sign is used or some other symbol or no symbol to represent a selector set, it doesn't matter,its the behaviour and functionality that we would be looking for.

i.e, Example:

%cssAliasNameTest #someid, #someotherId, div > span.testclass 

%cssAliasNameTest div.neasteditem, div.someotherrandomdiv {
background-colour:#blue;
}
@keithamus
Copy link
Member

I’m curious what use cases you see for this that can’t be achieved with nesting?

@Loirooriol
Copy link
Contributor

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

No branches or pull requests

3 participants