Support mixin closures
This commit is contained in:
parent
f81e8b5c8e
commit
ea9455d34e
9
lesscpy/test/css/mixin-closure.css
Normal file
9
lesscpy/test/css/mixin-closure.css
Normal file
@ -0,0 +1,9 @@
|
||||
.class {
|
||||
width: 99px;
|
||||
}
|
||||
.overwrite {
|
||||
width: 99px;
|
||||
}
|
||||
.nested .class {
|
||||
width: 5px;
|
||||
}
|
3
lesscpy/test/css/mixin-closure.min.css
vendored
Normal file
3
lesscpy/test/css/mixin-closure.min.css
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.class{width:99px;}
|
||||
.overwrite{width:99px;}
|
||||
.nested .class{width:5px;}
|
26
lesscpy/test/less/mixin-closure.less
Normal file
26
lesscpy/test/less/mixin-closure.less
Normal file
@ -0,0 +1,26 @@
|
||||
.scope {
|
||||
@var: 99px;
|
||||
.mixin () {
|
||||
width: @var;
|
||||
}
|
||||
}
|
||||
|
||||
.class {
|
||||
.scope > .mixin;
|
||||
}
|
||||
|
||||
.overwrite {
|
||||
@var: 0px;
|
||||
.scope > .mixin;
|
||||
}
|
||||
|
||||
.nested {
|
||||
@var: 5px;
|
||||
.mixin () {
|
||||
width: @var;
|
||||
}
|
||||
.class {
|
||||
@var: 10px;
|
||||
.nested .mixin();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user