Using LESS CSS, I would like to simplify my code using Mixins to put "out" transitions declarations, but the following syntax is wrong. The problem is in the attribute @color-time
definition that has 2 arguments:
.links-transition (@color-time:color 1s, border-color 1s)
{
-webkit-transition:@color-time;
-moz-transition:@color-time;
-ms-transition:@color-time;
-o-transition:@color-time;
transition:@color-time;
}
a
{
color:red;
.links-transition;
}
In official documentation I found that putting a ;
at the end, teach LESS how to consider arguments, considering them separated by ;
, so one argument in my case like this:
.links-transition (@color-time:color 1s, border-color 1s;)
Unfortunately this does not run. I think it depends since white space... is there a correct syntax to obtain the correct CSS without using 2 arguments in Mixin recall?
Thank you.