CSS/Less Input:
.generate-tiles(12);
.generate-tiles(@n, @i: 1) when (@i =< @n) {
.generate-tiles(@n, (@i + 1));
.tile-@{i} {
transform: rotateX(60deg) rotateZ(45deg) translate3d(((@i - 1) * 45)px, 0px, 0px);
}
}
Output:
.tile-1 {
transform: rotateX(60deg) rotateZ(45deg) translate3d(0 px, 0px, 0px);
}
The functionality is working flawlessly, but I am perplexed by the unexpected space appearing between the #
and px
as shown here:
(495 px, 0px, 0px);