I'm encountering a challenge with implementing the box-shadow mixin in LESS css.
Here's the mixin for box-shadow:
.boxShadow (@x, @y, @blur, @spread: 0, @alpha) {
-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
-moz-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
}
Although I can successfully pass parameters like this:
.boxShadow(0, 0, 5px, 2px, 0.2);
I'm unsure how to call the same mixin for box-shadow: none.