If I understand this correctly, here is my interpretation of the DOM interaction that you are describing.
.parent
Pointing at .child1 affects .child2
If yes, then here:
.form-control { ... //your CSS for this input { //CSS for input &:hover ~ .input-group-addon { //CSS for .input-group-addon when input is hovered } } }
OR, if .input-group-addon is immediately after input (an adjacent sibling), you can use the following:
.form-control { ... //your CSS for this input { //CSS for input &:hover + .input-group-addon { //CSS for .input-group-addon when input is hovered } } }
As @ Martin suggested.
Richard Shi
source share