thom4parisot / wp-less

WordPress plugin which seemlessly compiles, caches and rebuilds your LESS stylesheets.
https://wordpress.org/plugins/wp-less/
88 stars 40 forks source link

Mixins with multiple arguments #106

Closed beyondtheline closed 2 years ago

beyondtheline commented 8 years ago

Hi, I got an issue with a mixin for multiple arguments that use regex to separeate the arguments by comma.

.transition (@value1,@value2:X,...) { @value: ~"@{arguments}".replace(/[\[\]]|\,\sX/g, '');

-webkit-transition: @value;
-moz-transition: @value;
-ms-transition: @value;
-o-transition: @value;
transition: @value;

}

The compiled css says

-webkit-transition: /* Sorry, can not do JavaScript evaluation in PHP... :( /; -moz-transition: / Sorry, can not do JavaScript evaluation in PHP... :( /; -ms-transition: / Sorry, can not do JavaScript evaluation in PHP... :( /; -o-transition: / Sorry, can not do JavaScript evaluation in PHP... :( /; transition: / Sorry, can not do JavaScript evaluation in PHP... :( */;

Any Ideas for a Workaround? Should I do the replacement with PHP?

Thanks so far

pixelbart commented 2 years ago

Closed, due to age. If the problem persists, please reopen the issue.