Progress Stepper Component
A CSS implementation of the Sprout progress stepper component.
Related
Sprout Progress Stepper documentation [external]
@mixin spr-progress-stepper-text()
Example
html
<div class="spr-progress-stepper-stack-text-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-check.svg">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary info</div>
</div>
<div class="spr-progress-stepper-stack-dash">
</div>
<div class="spr-progress-stepper-stack-text-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-check.svg">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary info</div>
</div>
<div class="spr-progress-stepper-stack-dash">
</div>
<div class="spr-progress-stepper-stack-text-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-circle.svg">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary info</div>
</div>
<br/>
<div class="spr-progress-stepper-inline-container">
<div class="spr-progress-stepper-inline-item">
<div class="spr-progress-stepper-inline-dash-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-check.svg">
<div class="spr-progress-stepper-inline-dash"></div>
</div>
<div class="spr-progress-stepper-inline-text-container">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary Info</div>
</div>
</div>
<div class="spr-progress-stepper-inline-item">
<div class="spr-progress-stepper-inline-dash-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-check.svg">
<div class="spr-progress-stepper-inline-dash"></div>
</div>
<div class="spr-progress-stepper-inline-text-container">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary Info</div>
</div>
</div>
<div class="spr-progress-stepper-inline-item">
<div class="spr-progress-stepper-inline-dash-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-check.svg">
<div class="spr-progress-stepper-inline-dash"></div>
</div>
<div class="spr-progress-stepper-inline-text-container">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary Info</div>
</div>
</div>
<div class="spr-progress-stepper-inline-item">
<div class="spr-progress-stepper-inline-dash-container">
<img src="https://sprout-cdn.kabbage.com/components/progress-stepper/green-circle.svg">
</div>
<div class="spr-progress-stepper-inline-text-container">
<div class="spr-progress-stepper-text-label">Step Label</div>
<div class="spr-progress-stepper-text-info">Secondary Info</div>
</div>
</div>
</div>
Requires
@mixin spr-text()
Compiled CSS
Example
scss
@import 'components/progress-stepper';
css
compiled
@keyframes openPopover {
from {
transform: scale(0.9);
}
to {
transform: scale(1);
}
}
.spr-progress-stepper-text-label {
font-family: "AvenirNext", "Helvetica Neue", Arial, sans-serif;
font-size: 1rem;
line-height: 1.375rem;
letter-spacing: 0;
font-weight: 400;
color: #18191b;
font-weight: 600;
}
.spr-progress-stepper-text-info {
font-family: "AvenirNext", "Helvetica Neue", Arial, sans-serif;
font-size: 1rem;
line-height: 1.375rem;
letter-spacing: 0;
font-weight: 400;
color: #6b6f7b;
}
.spr-progress-stepper-inline-container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
}
.spr-progress-stepper-inline-container > :not(:last-child) {
margin-right: 0rem;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item {
flex-grow: 1;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item:last-of-type {
flex-grow: 0;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item .spr-progress-stepper-inline-dash-container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
margin-bottom: 0.5rem;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item .spr-progress-stepper-inline-dash-container > :not(:last-child) {
margin-right: 0rem;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item .spr-progress-stepper-inline-dash-container .spr-progress-stepper-inline-dash {
background-image: linear-gradient(90deg, transparent, transparent 50%, #6b6f7b 50%, #6b6f7b);
width: 100%;
min-width: 160px;
height: 1px;
background-position: 0 bottom;
background-size: 6px 1px;
}
.spr-progress-stepper-inline-container .spr-progress-stepper-inline-item .spr-progress-stepper-inline-text-container {
width: 128px;
word-wrap: break-word;
}
.spr-progress-stepper-stack-text-container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
.spr-progress-stepper-stack-text-container > :not(:last-child) {
margin-right: 0.5rem;
}
.spr-progress-stepper-stack-dash {
background-image: linear-gradient(180deg, transparent, transparent 50%, #6b6f7b 50%, #6b6f7b);
margin-left: 11px;
width: 1px;
height: 15px;
background-position: left 0;
background-size: 1px 6px;
}