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 request] temporary classes #102
Comments
this feature is indeed useful I would suggest this syntax tho: @abstract error {
color: #f00;
border: 2px solid #fc0;
}
.error-default {
@extend error;
}
.error-special {
@extend error;
background-color: #fcc;
} which would compile to: .error-default, .error-special {
color: #f00;
border: 2px solid #fc0;
}
.error-special {
background-color: #fcc;
}
advantage is that it would be similar to the way |
I agree with millermedeiros! A |
This would be very useful, extremely when using inheritance with descendant selectors. Not so important but I suggest it called abstract class for better understanding. |
I really prefer the @abstract syntax :/ |
@alanjds I do agree, abstract classes/types is a known paradigm and used in many programming languages. But at least the feature does exist nowadays. For me it's a big deal since I wanted to create a base framework that didn't affected the deploy code. |
@millermedeiros yeah, I wanted this feature since forever. |
I would like to be able to generate temporary class selectors that would not be emitted in final css.
would generate following:
notice that without .tmp
Use case would be to drop unused css classes that might be generated automatically either my mixins or some external tools.
The text was updated successfully, but these errors were encountered: