Skip to content

Commit c18c9de

Browse files
committed
Merge branch 'ModifyVars_Numerical_Vars' of https://github.com/MSamman/less.js
Conflicts: lib/less/browser.js
2 parents 75f453b + e3a7845 commit c18c9de

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

test/browser/css/modify-vars/simple.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
.test {
55
color1: #008000;
66
color2: #800080;
7+
scalar: 20;
78
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import "imports/simple2";
22
@var1: red;
3+
@scale: 10;
34
.test {
45
color1: @var1;
56
color2: @var2;
7+
scalar: @scale
68
}

test/browser/runner-modify-vars-spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ describe("less.js modify vars", function() {
2020
lessOutputObj.type = "not compiled yet";
2121
less.modifyVars({
2222
var1: "green",
23-
var2: "purple"
23+
var2: "purple",
24+
scale: 20
2425
});
2526
});
2627

0 commit comments

Comments
 (0)