Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolation of variables doesn't work in mixin's arguments #477

Closed
jgonera opened this issue Nov 21, 2011 · 1 comment
Closed

Interpolation of variables doesn't work in mixin's arguments #477

jgonera opened this issue Nov 21, 2011 · 1 comment

Comments

@jgonera
Copy link

jgonera commented Nov 21, 2011

I have such a mixin:

.background-gradient(@value) {
  background-image: linear-gradient(@value);
  background-image: -o-linear-gradient(@value);
  background-image: -moz-linear-gradient(@value);
  background-image: -webkit-linear-gradient(@value);
  background-image: -ms-linear-gradient(@value);
}

And I'm trying to use it like this:

.background-gradient(~"top, #fff 0%, @{selected-background-color} 15%, #ddd 95%, #ccc 100%");

Unfortunately, I get:

Compiling public/ui/editor.less to public/static/ui/editor.css
Syntax Error on line 81 in /home/julas/coledit/public/ui/dijit/layout/TabContainer.less
80 .claro .dijitTabInnerDiv {
81   .background-gradient(~"top, #fff 0%, @{selected-background-color} 15%, #ddd 95%, #ccc 100%");
82  .transition-property(background-color, border);

OK

I'm using Less 1.1.5.

@lukeapage lukeapage mentioned this issue Jul 22, 2012
@lukeapage
Copy link
Member

Can not reproduce, so think this is fixed. Shout if you think it isn't.

stefanklug pushed a commit to stefanklug/carto that referenced this issue Jan 27, 2019
allow auto and none keywords for symbolizers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants