I am using {less} and have encountered the problem of using parentheses. I wrote a mixin for the CSS3 transform property. I cannot figure out how to copy copied CSS. Less sees the brackets as an operation and omits them.
Original CSS:
.plus { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); }
Less mixin I wrote:
.transform (@action, @value){ -webkit-transform: @action(@value); -moz-transform: @action(@value); -o-transform: @action(@value); }
And compiled CSS that gives the result:
.plus { -webkit-transform: rotate 45deg; -moz-transform: rotate 45deg; -o-transform: rotate 45deg; }
source share