I am currently working on a wizard project where the header design is inspired by the image below. I am utilizing Bootstrap-4 tabs components and the :after pseudo element method on the li element to achieve this effect. However, I am facing a challenge in creating a background with two colors.
Desired Outcome
https://i.sstatic.net/fS4hS.png
HTML Snippet
<ul class="nav classic-tabs nav-justified white" role="tablist">
<li class="nav-item">
<a class="nav-link waves-light active" data-toggle="tab" href="#panel61" role="tab"> Frete</a>
</li>
<li class="nav-item">
<a class="nav-link waves-light" data-toggle="tab" href="#panel62" role="tab"> Pagamento</a>
</li>
<li class="nav-item">
<a class="nav-link waves-light" data-toggle="tab" href="#panel63" role="tab"> Revise e Confirme</a>
</li>
</ul>
CSS Snippet
&:after {
content: '';
border-right: 1px solid #666666;
display: block;
height: 100%;
top: 0;
position: absolute;
transform: skewX(-45deg);
}
Current Output