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

Can we extend hidden classes? #3171

Closed
blachawk opened this issue Feb 19, 2018 · 2 comments
Closed

Can we extend hidden classes? #3171

blachawk opened this issue Feb 19, 2018 · 2 comments

Comments

@blachawk
Copy link

Can we extend hidden classes, this way our CSS file is optimized even further? The best visual example I can give you is the following....

.processor() {
width:100px;
height:50px;
}
.ps3 {
&:extend(.processor)
}
.xbox {
&:extend(.processor)
}

There is really no need for me to add .processor {} as a CSS selector to my rule set in the compiled output. I simply want the following results...

.ps3,
.xbox {
width:100px;
height:50px;
}

Thanks for any creative ideas

@seven-phases-max
Copy link
Member

seven-phases-max commented Feb 19, 2018

See #1177. But currently - no, we can't. There's a hackish workaround though: move the .processor thing to a separate file imported with (reference).

@seven-phases-max
Copy link
Member

seven-phases-max commented Feb 19, 2018

Closing as duplicate of #1177.

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

2 participants