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
So that using a mixin I could tint any element or a rule I wished to. It falls over though when I use the @Attribute argument as the attribute in the rule.
The text was updated successfully, but these errors were encountered:
I would just have the hsl(hue(@color), saturation(@color), @value); inline, even if you have some duplication.
Yes, you could do it with guards.
No, there is no way at the moment to have a variable property.. There have been lots of requests for this, so this is a duplicate issue. the first request is at #36.
Hi,
I would like to be able to do something like this:
.TintAttribute(@attibute, @color, @value) {
/* example: .TintAttribute(background-color, @theme-accent1, 85%)*/
@newcolor: hsl(hue(@color), saturation(@color), @value);
@attibute: @newcolor;
}
So that using a mixin I could tint any element or a rule I wished to. It falls over though when I use the @Attribute argument as the attribute in the rule.
The text was updated successfully, but these errors were encountered: