<ul class="cp_stepflow02">
<li class="completed"><span class="bubble"></span><span>STEP 1</span></li>
<li class="completed"><span class="bubble"></span><span>STEP 2</span></li>
<li class="active"><span class="bubble"></span><span>STEP 3</span></li>
<li><span class="bubble"></span><span>STEP 4</span></li>
<li><span class="bubble"></span><span>STEP 5</span></li>
</ul>
.cp_stepflow02 {
font-size: 80%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 0 0 1em;
padding: 0;
}
.cp_stepflow02 > li {
position: relative;
display: block;
width: auto;
margin: 0;
padding: 0;
list-style: none;
text-align: center;
text-overflow: ellipsis;
color: #b0bec5;
-ms-flex: 1;
-moz-flex: 1;
-webkit-box-flex: 1;
flex: 1;
}
.cp_stepflow02 > li .bubble {
display: block;
width: 20px;
height: 20px;
margin: 0 auto 0.5em;
border-radius: 1000px;
background-color: #b0bec5;
}
.cp_stepflow02 > li .bubble::after,
.cp_stepflow02 > li .bubble::before {
position: absolute;
top: 9px;
display: block;
width: 100%;
height: 3px;
content: '';
background-color: #b0bec5;
}
.cp_stepflow02 > li.completed,
.cp_stepflow02 > li.completed .bubble {
color: #00acc1;
}
.cp_stepflow02 > li.completed .bubble,
.cp_stepflow02 > li.completed .bubble::after,
.cp_stepflow02 > li.completed .bubble::before {
background-color: #4dd0e1;
}
.cp_stepflow02 > li.completed > .bubble + span::before {
font-family: Fontawesome;
content: '\f00c';
}
.cp_stepflow02 > li:last-child .bubble::after,
.cp_stepflow02 > li:last-child .bubble::before {
width: 0%;
margin-right: 50%;
}
.cp_stepflow02 > li.active,
.cp_stepflow02 > li.active .bubble {
font-weight: bold;
color: #f57c00;
}
.cp_stepflow02 > li.active .bubble,
.cp_stepflow02 > li.active .bubble::after,
.cp_stepflow02 > li.active .bubble::before {
background-color: #fb8c00;
}
[completed]=完了したもの
[active]=現在値
何もつけなければ、未完了の表示となります。