Prevent pseudo element :: before receiving the effects of hover applied to its parent

0
Hello, I'm applying hover to an element, and it contains a pseudo before element, in which it is receiving the hover effects of its parent element. >

This image shows the problem:

Seethattheelementwiththenumber3whenactivatinghoveralsoactivatestheeffectsonyour::before(thesmallverticallinethatconnectsthecircles),Ibelievethisproblemisexactlyduetoinheritance.

Hereisthecodewiththecodepenexample: link

Is there any way to resolve this? And if possible only with SCSS / CSS.

Thank you in advance;).

    
asked by anonymous 18.09.2018 / 14:01

1 answer

0

According to what was discussed in the question, I ended up reformulating the structure:

I could not find a better way than dynamically adding a <div> element between each <li></li> .

The amount of div's is the amount of li's minus 1, where I'll try it up to the N-1 and so I was adding in the DOM.

  

Note The addition of a new element was also raised when it was necessary to add new effects to the element that links the other elements.

    
20.09.2018 / 18:32