<ol class="stepper">
<li class="stepper__item ">
<a href="#" title="Anwendung">
Anwendung
</a>
</li>
<li class="stepper__item ">
<a href="#" title="Rohr / Abmessung / Antriebsart">
Rohr / Abmessung / Antriebsart
</a>
</li>
<li class="stepper__item -active">
<a href="#" title="Auswahl RAUTOOL">
Auswahl RAUTOOL
</a>
</li>
<li class="stepper__item ">
<a href="#" title="Ihr RAUTOOL">
Ihr RAUTOOL
</a>
</li>
<li class="stepper__item ">
<a href="#" title="Basket">
Basket
</a>
</li>
</ol>
<ol class="stepper">
{{#each steps}}
<li class="stepper__item {{#active}}-active{{/active}}">
<a href="#" title="{{label}}">
{{label}}
{{#badge}}{{render '@atoms-badge' .}}{{/badge}}
</a>
</li>
{{/each}}
</ol>
{
"modifiers": null,
"steps": [
{
"label": "Anwendung"
},
{
"label": "Rohr / Abmessung / Antriebsart"
},
{
"label": "Auswahl RAUTOOL",
"active": true
},
{
"label": "Ihr RAUTOOL"
},
{
"label": "Basket"
}
]
}
.stepper {
display: flex;
padding: 0;
list-style: none;
color: $white;
counter-reset: li;
&__item {
position: relative;
flex-grow: 1;
padding: 1.4rem;
background-color: $black;
counter-increment: li;
.badge {
margin-top: -1rem;
margin-bottom: -1rem;
}
a {
margin-left: 3rem;
color: inherit;
text-decoration: none;
white-space: nowrap;
}
&:not(:first-child) {
padding-left: 3.4rem;
}
&::before {
$symbol: map-get($icons, 'tick');
@include icon-content-extended($symbol);
display: inline-block;
width: 3rem;
margin-right: -3rem;
vertical-align: center;
}
&::after {
content: '';
position: absolute;
top: 0;
left: 100%;
z-index: 10;
width: 0;
height: 0;
border-top: 2.6rem solid transparent;
border-bottom: 2.6rem solid transparent;
border-left: 1rem solid $black;
}
&.-active {
background-color: $primary;
&::before {
content: counter(li);
vertical-align: baseline;
font-family: inherit;
}
&::after {
border-left-color: $primary;
}
~ li {
background-color: $white;
color: $black;
&::before {
content: counter(li);
vertical-align: baseline;
font-family: inherit;
}
&::after {
border-left-color: $white;
}
}
}
}
}
There are no notes for this item.