I have come up with a nifty little trick to create a border between navigation items
li {
&:not(.active) {
&::before {
border-bottom: grey;
bottom: 0;
content: '';
height: 1px;
left: 20px;
position: absolute;
width: 220px;
:host-context(.minified) {
display: none;
}
}
The implementation works perfectly. You can see the clearly marked yellow line. If a navigation item is active, I do not apply this border.
In cases where the navigation link is active, I want to remove the border from the previous sibling. This requirement is indicated by the red arrow in the image.
https://i.sstatic.net/87aiS.jpg
Does anyone have any ideas on how to achieve this?