Answer the question
In order to leave comments, you need to log in
Is it possible to put a reference to the parent in Sass in class nesting after the name increment?
Is it possible to put a reference to the parent in Sass in class nesting after the name increment? So Sass has this:
.col {
&-span1 { width: 8.33%; }
&-span2 { width: 16.66%; }
&-span3 { width: 24.99%; }
}
.col-span1 { width: 8.33%; }
.col-span2 { width: 16.66%; }
.col-span3 { width: 24.99%; }
.span1-col { width: 8.33%; }
.span2-col { width: 16.66%; }
.span3-col { width: 24.99%; }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question