by Dr.Sol » Wed Oct 13, 2021 1:58 pm
Here's an example:
Code: Select all
@a: 25;
@b: 8;
@normaluse: 2;
.f2() {
background: blue;
}
.f1(@_func) when (mod(floor(@_func/@normaluse),2)=1) { .f2(); }
p {
.f1(@_func:6);
}
There are several .less functions presented on
https://lesscss.org/functions/#math-functions and the they are accepted when writing them on lesscss.orgs test page
https://lesscss.org/less-preview/, but they seems not working very well in a .less-file for a MM5-skin. I have also seen some other other lack of functions, but that I could solve with writing it in another way. Of course it can be workarounds with this also, but I was only interested hearing if there are any restrictions of not using some functionality in the .less language.
Here's an example:
[code]@a: 25;
@b: 8;
@normaluse: 2;
.f2() {
background: blue;
}
.f1(@_func) when (mod(floor(@_func/@normaluse),2)=1) { .f2(); }
p {
.f1(@_func:6);
}[/code]
There are several .less functions presented on [url]https://lesscss.org/functions/#math-functions[/url] and the they are accepted when writing them on lesscss.orgs test page [url]https://lesscss.org/less-preview/[/url], but they seems not working very well in a .less-file for a MM5-skin. I have also seen some other other lack of functions, but that I could solve with writing it in another way. Of course it can be workarounds with this also, but I was only interested hearing if there are any restrictions of not using some functionality in the .less language.