<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="wrapper">
<div class="list-filter">
<span>Filter</span><a href="#">Draft<span>12</span></a><a class="filter-active" href="#">Published<span>199</span></a><a href="#">Archived<span>1</span></a><a href="#">Closed<span>09</span></a>
</div>
</div>
body{
background-color: rgba(0,0,0,.01);
margin:0 auto;
}
.wrapper {
width: 800px;
}
.list-filter {
background: #fff;
display: inline-block;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
border-radius: 3px;
}
.list-filter > span {
font-weight: 600;
color: rgba(0, 0, 0, 0.7);
}
.list-filter > span, .list-filter a {
padding: 8px 16px;
display: inline-block;
}
.list-filter a {
color: #000;
line-height: 1.5;
}
.list-filter a span {
display: inline-block;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 0px 4px;
margin-left: 4px;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
}
.list-filter a:hover, .list-filter a.filter-active {
transition: background-color 0.3s;
background-color: rgba(0, 0, 0, 0.3);
}
.list-filter a:hover span, .list-filter a.filter-active span {
background-color: #1db954;
color: #fff;
}