What I want to do is to create a mixin that takes arguments and uses one or more of the arguments as names for other mixins to be included.
as I'm not sure about the proper terms, I'll try to explain through example:
@gradients{
light:#fafafa; //Should these also be prefixed with @?
dark:#888888;
}
@gradientBackground(@name,@height){
background-image:url('../img/gradients/{@name}-{@height}.png'); //this works
background-color:@gradients[@name];
}
.someBox{
@gradientBackground(light;150);
}
//Expected result:
.someBox{
background-image:url('../img/gradients/light-150.png'); //This works
background-color:#fafafa; //This doesn't work.
}
The image works but I haven't yet figured out how to reference the appropriate color from @gradients
. Is this possible at all?