Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

invalid option modify-var or global-var #56

Open
pkvsinha opened this issue Jun 27, 2014 · 1 comment
Open

invalid option modify-var or global-var #56

pkvsinha opened this issue Jun 27, 2014 · 1 comment

Comments

@pkvsinha
Copy link

I want to use the "--modify-var" less option in my code, but i m not able to use it. It always give the message: "invalid option modify-var". Same happens for "--global-var" less option. Below is the code snippet

...
List list = new ArrayList();
list.add("--modify-var="base=#400854"");
LessCompiler lesscompiler = new LessCompiler();
lesscompiler.setOptions(list);
try {
String css = lesscompiler.compile();
...

Less file:

@base: #f938ab;
.box-shadow(@Style, @c) when (iscolor(@c)) {
-webkit-box-shadow: @Style @c;
box-shadow: @Style @c;
}
.box-shadow(@Style, @Alpha: 50%) when (isnumber(@Alpha)) {
.box-shadow(@Style, rgba(0, 0, 0, @Alpha));
}
.box {
color: saturate(@base, 5%);
border-color: lighten(@base, 30%);
div { .box-shadow(0 0 5px, 30%) }
}

Is there no support for these options or am i doing it wrong?

@nalroff
Copy link

nalroff commented Oct 8, 2014

I am also seeing this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants