I
I
imko2021-09-01 15:29:11
Sass
imko, 2021-09-01 15:29:11

How to use the neighborhood selector inside a class in Sass?

Correct entry but ugly

.block {}

.block + .block {}


Is it possible to bring a neighborhood selector inside a class without duplicating the name? To be something like
.block {
  & + & {}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question