SCSS - override an @extend with another @extend
问题 A common problem I have with @extend is when trying to override the inherited properties with another @extend . Here's an example: // class selectors to be @extended // these could also use % to be silent/placeholder selectors .size-2xl { @include rem(font-size, 40px); } .size-3xl { @include rem(font-size, 60px); } // mapping the class selector properties onto some structural classes .heading1 { @extend .size-3xl; } .heading1-small { @extend .heading1; @extend .size-2xl; } When the SCSS is