G
G
GreenMan18992017-09-14 09:34:34
Sass
GreenMan1899, 2017-09-14 09:34:34

How to inherit from a composite class in sass?

header
  & > section:first-child
    display: flex
  
footer
  section
    @extend header > section:first-child //Не работает

https://codepen.io/danilst/pen/xXbPvZ

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-09-14
@GreenMan1899

Selector sequences, such as .foo .baror .foo + .bar, currently can't be extended.
sass-lang.com/documentation/file.SASS_REFERENCE.ht...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question