Skip to content

Instantly share code, notes, and snippets.

@Phe0nix
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phe0nix/ba801f30493a772dc193 to your computer and use it in GitHub Desktop.
Save Phe0nix/ba801f30493a772dc193 to your computer and use it in GitHub Desktop.
BreadCrumb Menu By Phe0nix
<div class="menu">
<a href="#menu1" id="active"> Menu 1</a>
<a href="#menu1"> Menu 2</a>
<a href="#menu1"> Menu 3</a>
<a href="#menu1"> Menu 4</a>
</div>
body {
padding-top: 100px;
text-align: center;
font-family:'noto serif',verdana,Arial;
}
.menu {
display: inline-block;
box-shadow: 0 0 10px 1px rgba(0,0,0,0.6);
border-radius: 6px;
overflow: hidden;
}
.menu a {
padding: 0 20px 0 30px;
position: relative;
text-decoration: none;
line-height: 36px;
background: -webkit-linear-gradient(#5DA6E1, #185282);
background: -moz-linear-gradient(#5DA6E1, #185282);
background: -o-linear-gradient(#5DA6E1, #185282);
background: linear-gradient(#5DA6E1, #185282);
color: white;
display: block;
float: left;
}
.menu a#active, .menu a:hover {
background: -webkit-linear-gradient(#64D86A, #1D7521);
background: -moz-linear-gradient(#64D86A, #1D7521);
background: -o-linear-gradient(#64D86A, #1D7521);
background: linear-gradient(#64D86A, #1D7521);
}
.menu a#active:after, .menu a:hover:after {
background: linear-gradient(135deg,#64D86A, #1D7521);
}
.menu a:after {
content:'';
width: 36px;
height: 36px;
background: linear-gradient(135deg,#5DA6E1, #185282);
position:absolute;
top: 0px;
z-index: 1;
right: -18px;
transform: scale(0.707) rotate(45deg);
border-radius: 0 0 0 30px;
box-shadow: 2px -2px 1px 1px rgba(0,0,0,0.5),
3px -2px 1px 1px rgba(255,255,255,0.6);
}
.menu a:last-child:after {
content:none;
}
.menu a:last-child {
padding-right: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment