You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
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();
...
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?
The text was updated successfully, but these errors were encountered: