Skip to content

Instantly share code, notes, and snippets.

@susatadahiro
Last active January 4, 2016 08:09
Show Gist options
  • Save susatadahiro/8593704 to your computer and use it in GitHub Desktop.
Save susatadahiro/8593704 to your computer and use it in GitHub Desktop.
wizard using fuelux
.fuelux .wizard {
position: relative;
overflow: hidden;
background-color: #f9f9f9;
border: 1px solid #d4d4d4;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
*zoom: 1;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
.fuelux .wizard:before,
.fuelux .wizard:after {
display: table;
line-height: 0;
content: "";
}
.fuelux .wizard:after {
clear: both;
}
.fuelux .wizard ul {
width: 4000px;
padding: 0;
margin: 0;
list-style: none outside none;
}
.fuelux .wizard ul.previous-disabled li.complete {
cursor: default;
}
.fuelux .wizard ul.previous-disabled li.complete:hover {
color: #468847;
cursor: default;
background: #f3f4f5;
}
.fuelux .wizard ul.previous-disabled li.complete:hover .chevron:before {
border-left-color: #f3f4f5;
}
.fuelux .wizard ul li {
position: relative;
float: left;
height: 46px;
padding: 0 20px 0 30px;
margin: 0;
font-size: 16px;
line-height: 46px;
color: #999999;
cursor: default;
background: #ededed;
}
.fuelux .wizard ul li .chevron {
position: absolute;
top: 0;
right: -14px;
z-index: 1;
display: block;
border: 24px solid transparent;
border-right: 0;
border-left: 14px solid #d4d4d4;
}
.fuelux .wizard ul li .chevron:before {
position: absolute;
top: -24px;
right: 1px;
display: block;
border: 24px solid transparent;
border-right: 0;
border-left: 14px solid #ededed;
content: "";
}
.fuelux .wizard ul li.complete {
color: #468847;
background: #f3f4f5;
}
.fuelux .wizard ul li.complete:hover {
cursor: pointer;
background: #e7eff8;
}
.fuelux .wizard ul li.complete:hover .chevron:before {
border-left: 14px solid #e7eff8;
}
.fuelux .wizard ul li.complete .chevron:before {
border-left: 14px solid #f3f4f5;
}
.fuelux .wizard ul li.active {
color: #3a87ad;
background: #f1f6fc;
}
.fuelux .wizard ul li.active .chevron:before {
border-left: 14px solid #f1f6fc;
}
.fuelux .wizard ul li .badge {
margin-right: 8px;
}
.fuelux .wizard ul li:first-child {
padding-left: 20px;
border-radius: 4px 0 0 4px;
}
.fuelux .wizard .actions {
position: absolute;
right: 0;
z-index: 1000;
float: right;
padding-right: 15px;
padding-left: 15px;
line-height: 46px;
vertical-align: middle;
background-color: #e5e5e5;
border-left: 1px solid #d4d4d4;
}
.fuelux .wizard .actions a {
margin-right: 8px;
font-size: 12px;
line-height: 45px;
}
.fuelux .wizard .actions .btn-prev i {
margin-right: 5px;
}
.fuelux .wizard .actions .btn-next i {
margin-left: 5px;
}
.fuelux .step-content .step-pane {
display: none;
}
.fuelux .step-content .active {
display: block;
}
.fuelux .step-content .active .btn-group .active {
display: inline-block;
}
<div class="fuelux">
<div class="well wizard-example">
<div id="MyWizard" class="wizard">
<ul class="steps" style="margin-left: 0">
<li data-target="#step1" class="complete"><span class="badge badge-success">1</span>情報入力<span class="chevron"></span></li>
<li data-target="#step2" class="active"><span class="badge badge-info">2</span>確認<span class="chevron"></span></li>
<li data-target="#step3"><span class="badge">3</span>完了<span class="chevron"></span></li>
</ul>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment