Support mixin closures

This commit is contained in:
robotis 2012-05-07 09:18:01 +00:00
parent f81e8b5c8e
commit ea9455d34e
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,9 @@
.class {
width: 99px;
}
.overwrite {
width: 99px;
}
.nested .class {
width: 5px;
}

View File

@ -0,0 +1,3 @@
.class{width:99px;}
.overwrite{width:99px;}
.nested .class{width:5px;}

View 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();
}
}