About less loop, throw error -
.loop (@start, @end, @step, @classname,@propertyname) when (@start < @end) { .@{classname}-@{start} { @{propertyname}: @start * 1px; } .loop (@start + @step, @end, @step, @classname, @propertyname); } .loop(12,48,2,fs,font-size);
i want loop css common class,but throw error,i don't error on. example:
.fs-12{ font-size:12px; } .fs-13{ font-size:13px; } .mt-13{ margin-top:13px; }
.loop (@start, @end, @step, @classname,@propertyname) when (@start < @end) { .@{classname}-@{start} { @{propertyname}: (@start * 1px); } .loop ((@start + @step), @end, @step, @classname, @propertyname); } .loop(12,48,2, fs, font-size);
Comments
Post a Comment