<ul class="cp_stepflow05">
<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_stepflow05 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 0 0 1em;
padding: 0;
}
.cp_stepflow05 > li {
position: relative;
display: block;
width: auto;
margin: 0;
padding: 0;
list-style: none;
text-overflow: ellipsis;
color: #b0bec5;
-ms-flex: 1;
-moz-flex: 1;
-webkit-box-flex: 1;
flex: 1;
}
.cp_stepflow05 > li .bubble {
display: inline-block;
width: 20px;
height: 20px;
margin: 0 0 0;
border-radius: 1000px;
background-color: #b0bec5;
}
.cp_stepflow05 > li .bubble + span {
position: absolute;
z-index: 10;
display: inline-block;
padding: 0 0.5em;
background: #ffffff;
}
.cp_stepflow05 > li .bubble::after,
.cp_stepflow05 > li .bubble::before {
position: absolute;
bottom: 14px;
display: block;
width: 100%;
height: 3px;
content: '';
background-color: #b0bec5;
}
.cp_stepflow05 > li.completed,
.cp_stepflow05 > li.completed .bubble {
color: #00acc1;
}
.cp_stepflow05 > li.completed .bubble,
.cp_stepflow05 > li.completed .bubble::after,
.cp_stepflow05 > li.completed .bubble::before {
background-color: #4dd0e1;
}
.cp_stepflow05 > li:last-child .bubble::after,
.cp_stepflow05 > li:last-child .bubble::before {
width: 0%;
margin-right: 50%;
}
.cp_stepflow05 > li.active,
.cp_stepflow05 > li.active .bubble {
font-weight: bold;
color: #f57c00;
}
.cp_stepflow05 > li.active .bubble,
.cp_stepflow05 > li.active .bubble::after,
.cp_stepflow05 > li.active .bubble::before {
background-color: #fb8c00;
}
[completed]=完了したもの
[active]=現在値
何もつけなければ、未完了の表示となります。