JSFiddle - React, Tailwind, and code Playground
by anothernick
HTML
<body>
<div id="wrap">
<div id="titlebar">
<div id="sepTopBar"></div>
<div id="nav">
<ul>
<li class="ribbon">AWW</li>
</ul>
</div>
<div id="mainTitle">
Another <br/> Web Workshop
</div>
</div>
</div>
</body>
CSS
#sepTopBar{
width: 100%;
height:1px;
position:absolute;
top: 70px;
border-bottom: 1px solid #CCC;
}
#sepBotBar{
width: 100%;
height:1px;
position:absolute;
top: 72px;
border-top: 1px solid #DDD;
}
#wrap {
height: 350px;
width: 600px;
margin: 20px auto;
background: #EEE;
background-image: url();
}
ul {
margin: 0;
padding: 0;
float:right;
z-index: 1;
position: relative;
}
li {
text-decoration: none;
list-style-type: none;
display: block;
float: left;
padding: 15px 5px 0 5px;
margin: 0 5px 0 0;
width: 60px;
position: relative;
text-align:center;
color: #FFF;
}
.ribbon {
background: #111;
border-radius: 2px 2px 0 0;
box-shadow: 5px 0 0 #111, -5px 0 0 #111;
height: 60px;
margin: 0 10px;
position: relative;
-webkit-filter: drop-shadow(0px 1px 1px hsla(0, 0%, 0%, .5));
}
.ribbon:after, .ribbon:before {
border-top: 15px solid #111;
content:'';
height: 0;
position: absolute;
top: 100%;
width: 0;
}
.ribbon:after {
border-left: 50px solid transparent;
right: -5px;
}
.ribbon:before {
border-right: 50px solid transparent;
left: -5px;
}
#nav {
margin: -2px 0 0 0;
padding: 0 10px 10px 10px;
overflow: auto;
height: 100px;
z-index: 1;
position: absolute;
left: 0;
}
#titlebar {
height: 100px;
position: relative;
}
#mainTitle{
position: absolute;
left: 100px;
top: 30px;
text-shadow: -1px 0 2px #FFF;
}
JavaScript
/*$("li").hover(function () {
$(this).animate({
paddingTop: "+=10px"
}, 100);
}, function () {
$(this).animate({
paddingTop: "-=10px"
}, 100);
});*/