Block shadow using vendor prefixes in LESS

Let's make a function that will add a cross-browser shadow to the block:

styles.less.shadow(@s) {
  -moz-shadow+: @s;
  -webkit-shadow+: @s;
  box-shadow+: @s;
}

Let's use the created function:

styles.lessp {
  .shadow(1px 10x red); 
  .shadow(2px 3px blue);
}

Let's look at the compilation result:

styles.cssp {
  -moz-shadow: 1px 10x red, 2px 3px blue;
  -webkit-shadow: 1px 10x red, 2px 3px blue;
  box-shadow: 1px 10x red, 2px 3px blue;
}