<ul class="cp_stepflow10">
<li class="completed"><span class="bubble"></span></li>
<li class="completed"><span class="bubble"></span></li>
<li class="active"><span class="bubble"></span></li>
<li><span class="bubble"></span></li>
<li><span class="bubble"></span></li>
</ul>
.cp_stepflow10 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 0 0 1em;
padding: 0;
}
.cp_stepflow10 > li {
position: relative;
display: block;
width: auto;
margin: 0;
padding: 0;
list-style: none;
text-overflow: ellipsis;
-ms-flex: 1;
-moz-flex: 1;
-webkit-box-flex: 1;
flex: 1;
}
.cp_stepflow10 > li .bubble {
line-height: 1;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 0 0;
padding-top: 2px;
text-align: center;
border-radius: 1000px;
background-color: #b0bec5;
}
.cp_stepflow10 > li.completed,
.cp_stepflow10 > li.active {
position: relative;
}
.cp_stepflow10 > li.completed::after {
position: absolute;
top: 6px;
left: 4px;
display: block;
width: 12px;
height: 7px;
content: '';
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
border-bottom: 4px solid #ffffff;
border-left: 4px solid #ffffff;
}
.cp_stepflow10 > li.active::after {
position: absolute;
top: 2px;
left: 2px;
display: block;
width: 16px;
height: 16px;
margin: 0 0 0;
content: '';
border: 2px solid #ffffff;
border-radius: 1000px;
}
.cp_stepflow10 > li .bubble::after,
.cp_stepflow10 > li .bubble::before {
position: absolute;
bottom: 14px;
left: 25px;
display: block;
width: 75%;
height: 3px;
content: '';
background-color: #b0bec5;
}
.cp_stepflow10 > li.completed .bubble,
.cp_stepflow10 > li.completed .bubble::after,
.cp_stepflow10 > li.completed .bubble::before {
background-color: #4dd0e1;
}
.cp_stepflow10 > li:last-child {
flex: 0;
}
.cp_stepflow10 > li:last-child .bubble::after,
.cp_stepflow10 > li:last-child .bubble::before {
width: 0%;
margin-right: 50%;
}
.cp_stepflow10 > li.active .bubble,
.cp_stepflow10 > li.active .bubble::after,
.cp_stepflow10 > li.active .bubble::before {
background-color: #fb8c00;
}
[completed]=完了したもの
[active]=現在値
何もつけなければ、未完了の表示となります。