3 ms·
One big advantage of option 3 is that it allows for putting properties and nested selectors in any order, rather than segregating them in different groups. This
by frosted-flakes 4y ago
One big advantage of option 3 is that it allows for putting properties and nested selectors in any order, rather than segregating them in different groups. This is already possible in Sass and I do it all the time. For example:
.card {
border: 1px solid;
&:first-child {
border-top: none;
}
background: blue;
&:hover {
background: red;
color: yellowgreen;
}
display: flex;
// etc.
}