You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the main reasons I use a preprocessor is rule nesting - I really fell in love with that feature! However, it easily introduces unnecessary selector specificity, which can be a reason to entirely abandon one of the major conveniences of using a CSS preprocessor - if you care about writing optimized code, that is.
I propose extending the & operator's behavior to work at any point in the selector string. This way,
.lol {
&-wut {
...
}
}
would compile to:
.lol-wut {
...
}
And you wouldn't have to do this:
.lol {
}
.lol-wut {
}
Any opinions?
The text was updated successfully, but these errors were encountered:
One of the main reasons I use a preprocessor is rule nesting - I really fell in love with that feature! However, it easily introduces unnecessary selector specificity, which can be a reason to entirely abandon one of the major conveniences of using a CSS preprocessor - if you care about writing optimized code, that is.
I propose extending the & operator's behavior to work at any point in the selector string. This way,
would compile to:
And you wouldn't have to do this:
Any opinions?
The text was updated successfully, but these errors were encountered: