We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not much to say, I just think it would be a good idea if in LESS you could do the following :
.blue { color: blue } .red { color: red } .color(@color) { .@{color} } div { .color(red) }
Resulting in
div { color: red }
.@{variable} is a proposition of syntax but .@variable, .{variable} or .{@variable} would maybe fit better the LESS syntax, I don't know.
The text was updated successfully, but these errors were encountered:
@blue: blue; @red: red; .color (@color) { color: @@color; } div { .color(red); }
div { color: red; }
Could be a substitution?
Sorry, something went wrong.
this can be achieved with mixin guards.. you would have .color when @color = red etc.
.color when @color = red
[edit - example corrected]
guards use when not where, just a mild correction in case someone decides to cut and paste.
when
where
No branches or pull requests
Not much to say, I just think it would be a good idea if in LESS you could do the following :
Resulting in
.@{variable} is a proposition of syntax but .@variable, .{variable} or .{@variable} would maybe fit better the LESS syntax, I don't know.
The text was updated successfully, but these errors were encountered: