im new to less and im trying a little bit around, ive found a mixin code snippet which should work but it doesnt. Just if i take the variables on top of the reset.less document it works. So i guess my Joomla Less compiler couldn't compile it right. But as im new to less i dont now if the code is appropriate. I was trying following code:
.inner-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
-moz-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
}
After i written it that way it worked:
@x: 0; @y: 1px; @blur: 2px; @spread: 0; @alpha: 0.25;
.inner-shadow{
-webkit-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
-moz-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
}