Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bootsnip form steps in 2.3.2
.bs-wizard {padding: 0 0 10px 3px; margin-left: 0px;}
.bs-wizard > .bs-wizard-step {margin: 0 -1px 0 0; padding: 0; position: relative;}
.bs-wizard > .bs-wizard-step + .bs-wizard-step {}
.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-weight: bold; font-size: 16px; margin-bottom: 5px;}
.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}
.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}
.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; }
.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}
.bs-wizard > .bs-wizard-step > .progress > .bar {width:0px; box-shadow: none; background: #fbe8aa; transition: width .1s linear;}
.bs-wizard > .bs-wizard-step.complete > .progress > .bar {width:100%;}
.bs-wizard > .bs-wizard-step.active > .progress > .bar {width:50%;}
.bs-wizard > .bs-wizard-step:first-child.active > .progress > .bar {width:0%;}
.bs-wizard > .bs-wizard-step:last-child.active > .progress > .bar {width: 100%;}
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}
.bs-wizard > .bs-wizard-step:first-child > .progress {left: 50%; width: 50%;}
.bs-wizard > .bs-wizard-step:last-child > .progress {width: 50%;}
.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }
<div class="row bs-wizard" style="border-bottom:0;">
<div class="span3 bs-wizard-step active first-step" data-bs-wizard-step="1">
<div class="text-center bs-wizard-stepnum">Shop</div>
<div class="progress"><div class="bar"></div></div>
<a class="bs-wizard-dot"></a>
</div>
<div class="span3 bs-wizard-step disabled" data-bs-wizard-step="2">
<div class="text-center bs-wizard-stepnum">Confirm</div>
<div class="progress"><div class="bar"></div></div>
<a class="bs-wizard-dot"></a>
</div>
<div class="span3 bs-wizard-step disabled last-step" data-bs-wizard-step="3">
<div class="text-center bs-wizard-stepnum">Checkout</div>
<div class="progress"><div class="bar"></div></div>
<a class="bs-wizard-dot"></a>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.