<div class="crumbs-container">
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="6">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
<li><a href="#"><span>Breadcrumb 2</span></a></li>
<li><a href="#"><span>Breadcrumb 3</span></a></li>
<li><a href="#"><span>Breadcrumb 4</span></a></li>
<li><a href="#"><span>Breadcrumb 5</span></a></li>
<li><a href="#"><span>Breadcrumb 6</span></a></li>
</ul>
</div>
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="5">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
<li><a href="#"><span>Breadcrumb 2</span></a></li>
<li><a href="#"><span>Breadcrumb 3</span></a></li>
<li><a href="#"><span>Breadcrumb 4</span></a></li>
<li><a href="#"><span>Breadcrumb 5</span></a></li>
</ul>
</div>
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="4">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
<li><a href="#"><span>Breadcrumb 2</span></a></li>
<li><a href="#"><span>Breadcrumb 3</span></a></li>
<li><a href="#"><span>Breadcrumb 4</span></a></li>
</ul>
</div>
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="3">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
<li><a href="#"><span>Breadcrumb 2</span></a></li>
<li><a href="#"><span>Breadcrumb 3</span></a></li>
</ul>
</div>
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="2">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
<li><a href="#"><span>Breadcrumb 2</span></a></li>
</ul>
</div>
<div class="crumbs-container">
<div class="shine"></div>
<ul class="crumbs" data-count="1">
<li><a href="#"><span>Breadcrumb 1</span></a></li>
</ul>
</div>
$body-background: #030b0f;
$body-background: #030b0f;
$crumb-link: #fff;
$crumb-1: #43484c;
$crumb-2: #393f43;
$crumb-3: #2e3539;
$crumb-4: #23292d;
$crumb-5: #171f23;
$crumb-6: #0c1317;
body {
background: $body-background;
padding: 30px;
}
div.crumbs-container {
clearfix;
position: relative;
margin-bottom: 20px;
height: 42px;
width: 940px;
clear: both;
div.shine {
background: url(http://i.imgur.com/nktGs.png) no-repeat top left;
position: absolute;
left: 0;
top: 0;
width: 940px;
height: 42px;
z-index: 5;
pointer-events: none;
}
ul.crumbs {
z-index: 2;
}
}
ul.crumbs {
clearfix;
list-style: none;
margin: 0 0 20px;
padding: 0;
overflow: hidden;
position: absolute;
left: 0;
top: 0;
width: 940px;
height: 42px;
&[data-count="6"] {
li:nth-child(1) a { background: $crumb-1; &:after { border-left-color: $crumb-1; } }
li:nth-child(2) a { background: $crumb-2; &:after { border-left-color: $crumb-2; } }
li:nth-child(3) a { background: $crumb-3; &:after { border-left-color: $crumb-3; } }
li:nth-child(4) a { background: $crumb-4; &:after { border-left-color: $crumb-4; } }
li:nth-child(5) a { background: $crumb-5; &:after { border-left-color: $crumb-5; } }
li:nth-child(6) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
&[data-count="5"] {
li:nth-child(1) a { background: $crumb-2; &:after { border-left-color: $crumb-2; } }
li:nth-child(2) a { background: $crumb-3; &:after { border-left-color: $crumb-3; } }
li:nth-child(3) a { background: $crumb-4; &:after { border-left-color: $crumb-4; } }
li:nth-child(4) a { background: $crumb-5; &:after { border-left-color: $crumb-5; } }
li:nth-child(5) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
&[data-count="4"] {
li:nth-child(1) a { background: $crumb-3; &:after { border-left-color: $crumb-3; } }
li:nth-child(2) a { background: $crumb-4; &:after { border-left-color: $crumb-4; } }
li:nth-child(3) a { background: $crumb-5; &:after { border-left-color: $crumb-5; } }
li:nth-child(4) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
&[data-count="3"] {
li:nth-child(1) a { background: $crumb-4; &:after { border-left-color: $crumb-4; } }
li:nth-child(2) a { background: $crumb-5; &:after { border-left-color: $crumb-5; } }
li:nth-child(3) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
&[data-count="2"] {
li:nth-child(1) a { background: $crumb-5; &:after { border-left-color: $crumb-5; } }
li:nth-child(2) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
&[data-count="1"] {
li:nth-child(1) a { background: $crumb-6; &:after { border-left-color: $crumb-6; } }
}
li {
display: block;
float: left;
&:first-child a { padding-left: 10px; border-radius: 5px 0 0 5px; }
a {
background: $crumb-1;
display: block;
padding: 0 20px 0 50px;
height: 42px;
line-height: 42px;
text-decoration: none;
position: relative;
color: $crumb-link;
&:hover {
text-decoration: underline;
}
&:after {
content: " ";
display: block;
width: 0;
height: 0;
border-top: 100px solid transparent;
border-bottom: 100px solid transparent;
border-left: 40px solid $crumb-1;
position: absolute;
top: 50%;
margin-top: -100px;
left: 100%;
z-index: 2;
}
span {
text-transform: uppercase;
font-size: 0.7em;
font-weight: bold;
z-index: 3;
}
}
}
}