I would like to change the style of a <span /> which is not a child element of the input. I tried to find the <span /> with + and >, but I could never change it.
Is it possible to change style of it with pure css/scss?
#input:hover,
#input:focus-within {
span { color: red; }
}
<input type="search" id="input" value='' />
<div>
<span>My colour should change when hovering the input.</span>
</div>