Loading...
.card {
&__title {
font-weight: 700;
}
}.card {
& .title {
font-weight: 700;
}
&:hover {
outline: 1px solid;
}
}Native nesting can't join strings into new class names, so use a real class and keep & for states.
&__title or &-suffix from Sass, which native CSS doesn't support.& acts like :is() of the parent list.&:hover and &.active keep the & with no space.&__title are used; native CSS can't build class names.& required in native CSS nesting?No, a nested .title { } works as a descendant. & is needed for suffixes like &:hover or &.active.
& after a selector?Yes, .dark & { } inside .card means .dark .card, which styles the card inside a dark container.