Let's kick things off with an example, shall we?
Imagine I have the following class:
<html class="browser-ie"> ...
Now, let's say I want to use my mixin on a specific element:
.browser-ie(@mixin){
html.browser-ie {
@mixin();
}
}
I'd like to be able to call this mixin from an element like so:
.main {
.nested {
.morenested {
.browser-ie({ min-height:100% });
}
}
}
This would generate the following CSS:
html.browser-ie .main .nested .morenested { min-height:100%; }
Is there a tool in existence that can make this happen?