P
P
Pavel Beloborodov2019-06-23 17:39:20
Sass
Pavel Beloborodov, 2019-06-23 17:39:20

SASS syntax, pseudo-element :hover + class?

I don't understand why the combination
& a
&:hover + .increase doesn't work.
I'm trying to change the display: none value of the block with the class increase .
however, for some reason, when I add "+.increase" the hover also stops working.
what's wrong?
5d0f8f9c8a605068348302.png
The goal of the whole action, when hovering over a block with an image, is to superimpose on another color with a cross....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
ⓒⓢⓢ, 2019-06-23
@bekingem

try to remove the "&" sign before the "a" tag (line 28)
and "probably" on the 32nd line there is also an extra ampersand
upd
block .increase is "inside" the "a" tag, so the neighbor selector will not work ("+" selector) - must be removed
&:hover .increase

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question