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
However the name of the class being extended is hard coded into the mixin, requiring a new mixin for every class you want to extend in this way. But imagine if this worked:
Because this would allow us to have a SINGLE mixin, that could create and extend many different classes. Which might be just what you want if you are working on a grid layout system.
P.S.
I suspect that:
.@{extending-class-name}{}
may not work for quite a different reason. Somehow it does not create a class that can be extended, however this probably ought to be a separate Feature Request or Bug Issue.
The text was updated successfully, but these errors were encountered:
Feature Request
It would be very powerful if :extend could be passed a class name as a variable.
e.g. something like:
or:
Use Cases
(tl;dr this would be brilliant for making mixins reusable and for grid systems)
If you want to extend a class with numbered additions it is possible, as long as you create a mixin for every class you want to extend.
for example:
will create:
However the name of the class being extended is hard coded into the mixin, requiring a new mixin for every class you want to extend in this way. But imagine if this worked:
or even better, if this worked!:
Because this would allow us to have a SINGLE mixin, that could create and extend many different classes. Which might be just what you want if you are working on a grid layout system.
P.S.
I suspect that:
may not work for quite a different reason. Somehow it does not create a class that can be extended, however this probably ought to be a separate Feature Request or Bug Issue.
The text was updated successfully, but these errors were encountered: