.crumbs-1 { list-style: none; overflow: hidden; font-size: 1rem; li { background: #fff; border: 1px solid var(--box-border); padding: 10px 10px 10px 20px; position: relative; display: block; float: left; cursor: pointer; // todo: maybe replace .last with :last-child &:not(.last):after, &:before { content:" "; display: block; width: 0; height: 0; border-top: 18px solid transparent; border-bottom: 17px solid transparent; border-left: 14px solid var(--box-border); position: absolute; top: 50%; margin-top: -18px; left: 100%; } &:not(.last):after { z-index: 2; } &:before { border-left-color: var(--box-border); margin-left: 1px; z-index: 1; } &.active:not(.last):after, &:hover:not(.last):after { border-left: 14px solid #ffffff; } } .last { padding-right: 20px; &:before { border: none; } } .active { cursor: default; } .active, li:hover { background: var(--button-colored-background-hover); } }