less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

comma

Open LonTypLAB opened this issue 15 years ago • 0 comments

I love parametrizable mixins.

But the first one I tried is causing me some problems:

.animate(@property: all) { -webkit-transition-duration: 0.4s; -webkit-transition-property:@property; -webkit-transition-timing-function: ease-in; }

.onedim { .animate(top); } .twodim { .animate(top, left); }

See, I want to animate both top and left. The value for the -transition-property should be "top, left". But that is (rightfully) parsed as two parameters...

Any way of fixing this? Maybe allow , as an escaped comma?

Thanks in advance and thanks for the great tool

LonTypLAB avatar Feb 11 '10 15:02 LonTypLAB