-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Extend with strictly defined list of fields #3361
Comments
This is more a question for Stack Overflow. We'd like to keep Github Issues clean with just bug reports. |
Interesting. I though you collect issue requests also here. |
Either way, the extend would be pretty match wrong tool for this (the very idea it's designed with and for will conflict with a "partial" inheritance). .stdButton {
color: .cusButton[color];
background: .cusButton[background];
} (using recent features like maps and each I think it's not a problem to write a custom mixin that would do that for an arbitrary set of properties in much more clean way than any potential extend syntax extension would). |
Such a good answer. In this case we can inherit properties even applying functions. Thank you so much! |
@seven-phases-max it work exactly as it's planned. Thank you! However the mentioned approach doesn't work with pseudoelements.
This won't compile. Is it a bug? Thanks! |
No. Only 'class' and 'id' selectors (i.e. ( So I'm afraid (yet again), in a wide context we have to fall back to the following question: |
Hi
In our company we have a third-party system which has less theme and we cannot manipulate DOM ( assigning new classes )
From the other side we have own component library which provides CSS styles.
In most of cases extend helps to redefine standard classes with new custom attributes from the own theme.
But in some cases we cannot inherit all components. Instead we would like to have same class but with redefined background and color but having native padding’s and margins.
Do you have any thoughts how can we achieve that?
Something like
.stdButton { &:extend(.cusButton {color,background}) }
Sent with GitHawk
The text was updated successfully, but these errors were encountered: