Converting “Long Shadow” SASS mixin to Less
I try to rewrite sass mixin for generation long text-shadow http://codepen.io/awesomephant/pen/mAxHz to less mixin .long-shadow(@type, @color, @length, @fadeout: true, @skew: false, @direction: right){ @shadow : ''; .if @skew == false or @type == text{ .if @direction == right {@ @for @i from 0 to @length - 1 { @shadow: @shadow + @i + 'px ' + @i + 'px 0 ' + @color + ','; } } .if @direction == left {@ @for @i from 0 to @length - 1 { @shadow: @shadow + @i * -1 + 'px ' + @i + 'px 0 ' + @color + ','; } } } .if @fadeout == true{ @for @i from 1 to @length - 1 { .if @type == text or @skew == false{