Код: Выделить всё
Код: Выделить всё
.parent:has(.child:hover) ~ .parent .child {
background-color: red;
}
Подробнее здесь: https://stackoverflow.com/questions/783 ... too-siblin
Код: Выделить всё
Код: Выделить всё
.parent:has(.child:hover) ~ .parent .child {
background-color: red;
}