2

I'd like to generate the content of a %-class within a pseudo selector. @extend works rather unexpected here. Can someone tell me how I would get the expected CSS?

My SASS

%ext
   &:aaa
     color: red

button
  &:bbb
     @extend %ext  // expected: .button:bbb:aaa

Actual Generated CSS

button:aaa:bbb {
    color: red;
}

Expected CSS

button:bbb:aaa {
    color: red;
}
DarkTrick
  • 2,447
  • 1
  • 21
  • 39

1 Answers1

0

The answer is: The order doesn't matter for the resulting CSS.
Therefore: Don't mind.

DarkTrick
  • 2,447
  • 1
  • 21
  • 39