I start with a simple example:
.classA {
color: red;
.otherClass {
color: yellow;
}
}
.classB {
.classA;
}
results in:
.classA {
color: red;
}
.classA .otherClass {
color: yellow;
}
.classB {
color: red;
}
.classB .otherClass {
color: yellow;
}
But:
.classA {
color: red;
}
.class A .otherClass {
color: yellow;
}
.classB {
.classA;
}
results in:
.classA {
color: red;
}
.class A .otherClass {
color: yellow;
}
.classB {
color: red;
}
I can't figure out why the compiler does not include the .otherClass in .classB. I mean both classA definitions are equal aren't they?
Is there a simple explanation for the weird behavior?
Especially, is there a way to include .otherClass via mixins or do I have to copy the code?