There is for example a primitive menu in which there are dividers in the form of vertical bars. I do it with a border like this
.navbar max-width: 725px float: left background: transparent border: none &__li:not(:last-child) border-right: 1px solid white And here is the menu code
<ul class="nav navbar-nav"> <li class="navbar__li active"><a class="navbar__link" href="#">О нас</a></li> <li class="navbar__li"><a class="navbar__link" href="#">Наши услуги</a></li> <li class="navbar__li"><a class="navbar__link" href="#">Отзывы</a></li> <li class="navbar__li"><a class="navbar__link" href="#">Акция</a></li> <li class="navbar__li"><a class="navbar__link" href="#">Контакты</a></li> </ul> And if I want to act on a valid link in the last li element, what should I do? This may be necessary if I set this delimiter not in li, but in the link itself a. Well, or for example, I will write the style of something.
For example, a modal window
.modal-green &__button background: green &__link color: green