У меня есть это:
tr {
&.selected {
background-color: #424253;
}
td {
&.current-month {
background-color: #2c3645;
}
&.last {
background-color: #1e252f;
font-weight: bold;
}
}
}
Правило в тр:
&.selected {
background-color: #424253;
}
Как и ожидалось, переопределяется правилами td:
&.current-month {
background-color: #2c3645;
}
&.last {
background-color: #1e252f;
font-weight: bold;
}
Как мне сделать так, чтобы класс tr selected
всегда отменял любой класс td, влияющий на background-color
(без использования !important)?