I'm having a little problem with the @extend rule, this is what I got (focus on the h1):
.content-header {
// CSS properties
h1 {
// CSS properties
}
}
.box-header {
// CSS properties
h1 {
@extend .content-header h1; // My selector problem!
// And his own CSS properties
}
}
So it will be:
.content-header h1, .box-header h1 {
/* Happily sharing the same CSS properties */
}
But it seems like @extend
don't like that, is any other way to write this without giving the h1
a class??