<ul class="cp_stepflow08">
<li class="completed"><span class="bubble">1</span></li>
<li class="completed"><span class="bubble">2</span></li>
<li class="active"><span class="bubble">3</span></li>
<li><span class="bubble">4</span></li>
<li><span class="bubble">5</span></li>
</ul>
.cp_stepflow08 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 0 0 1em;
padding: 0;
}
.cp_stepflow08 > 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_stepflow08 > li .bubble {
line-height: 1;
z-index: 2;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 0 0;
padding-top: 2px;
text-align: center;
color: #ffffff;
border-radius: 1000px;
background-color: #b0bec5;
}
.cp_stepflow08 > li .bubble::after,
.cp_stepflow08 > li .bubble::before {
position: absolute;
z-index: 1;
bottom: 10px;
left: 25px;
display: block;
width: 75%;
height: 3px;
content: '';
background-color: #b0bec5;
}
.cp_stepflow08 > li.completed,
.cp_stepflow08 > li.completed .bubble {
color: #ffffff;
}
.cp_stepflow08 > li.completed .bubble,
.cp_stepflow08 > li.completed .bubble::after,
.cp_stepflow08 > li.completed .bubble::before {
background-color: #4dd0e1;
}
.cp_stepflow08 > li:last-child {
flex: 0;
}
.cp_stepflow08 > li:last-child .bubble::after,
.cp_stepflow08 > li:last-child .bubble::before {
width: 0%;
margin-right: 50%;
}
.cp_stepflow08 > li.active,
.cp_stepflow08 > li.active .bubble {
font-weight: bold;
color: #ffffff;
}
.cp_stepflow08 > li.active .bubble,
.cp_stepflow08 > li.active .bubble::after,
.cp_stepflow08 > li.active .bubble::before {
background-color: #fb8c00;
}
[completed]=完了したもの
[active]=現在値
何もつけなければ、未完了の表示となります。