Fixed mixin calls not working from dynamic mixins

Dynamic mixins aren't treated enough like Rulesets.
There is some code duplication which needs to be cleaned up,
ideally they should share a prototype.
This commit is contained in:
cloudhead
2010-04-22 13:34:49 -04:00
parent 25dbfb177a
commit 6f8fa2d858
4 changed files with 33 additions and 8 deletions

View File

@@ -3,4 +3,5 @@
}
.class .inner .innest {
width: 30;
border-width: 60;
}

View File

@@ -1,9 +1,14 @@
.mix-inner (@var) {
border-width: @var;
}
.mix (@a: 10) {
.inner {
height: @a * 10;
.innest {
width: @a;
.mix-inner(@a * 2);
}
}
}