Closed minimit closed 7 years ago
As title, this: @colors: white #ffffff; .color { .for(@colors); .-each(@value) { @name: extract(@value, 1); &-@{name} { color: extract(@value, 2) !important; } } }
@colors: white #ffffff; .color { .for(@colors); .-each(@value) { @name: extract(@value, 1); &-@{name} { color: extract(@value, 2) !important; } } }
Exports this: .color-#fff { color: #fff !important; }
.color-#fff { color: #fff !important; }
Should export this instead: .color-white { color: #fff !important; }
.color-white { color: #fff !important; }
I also tried with this old less.js fix that had the same problem, but it doesn't work: https://github.com/less/less.js/issues/864
use @colors: ~'white' #ffffff; instead.
@colors: ~'white' #ffffff;
Perfect it works well
As title, this:
@colors: white #ffffff; .color { .for(@colors); .-each(@value) { @name: extract(@value, 1); &-@{name} { color: extract(@value, 2) !important; } } }
Exports this:
.color-#fff { color: #fff !important; }
Should export this instead:
.color-white { color: #fff !important; }
I also tried with this old less.js fix that had the same problem, but it doesn't work: https://github.com/less/less.js/issues/864