Answer the question
In order to leave comments, you need to log in
How to optimize SCSS recording?
Help describe the code more concisely. Confuses the ".list__link" class
.list {
&__item {
&:first-child {
.list__link {
font-weight: 700;
}
}
}
&__link {
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 2px;
padding: .4rem 0;
display: block;
}
}
Answer the question
In order to leave comments, you need to log in
Confuses the ".list__link" class
.list {
$b: &;
&__item {
&:first-child {
#{$b}__link {
// . . .
}
}
}
}
.list {
&__item {
// . . .
}
&__link {
// . . .
}
&__item:first-child &__link {
// . . .
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question