peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Does `@abstract` support nesting? #89

Closed biziclop closed 6 years ago

biziclop commented 6 years ago

Hi, I tried the following thing below, but it doesn't seem to work with the child nested into the abstract rule. Is it a supported feature?

@abstract abstract {
  margin: 0;
  child {
    padding: 0;
  }
}

concrete {
  @extend abstract;
}

Result:

concrete {
  margin: 0;
}

Expected:

concrete {
  margin: 0;
}
concrete child {
  padding: 0;
}
peteboere commented 6 years ago

Unfortunately not. Only @fragment supports nested blocks.