Heading
by Charles Butler
HTML
<div class="heading left">
<span class="left icon icon-gear">X</span>
<span class="right title"><span class="arrow-right"></span>Change Settings</span>
</div>
CSS
body {
background-color: #fff;
}
.heading {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
position: relative;
display: inline-block;
overflow: hidden;
height: 53px;
border-radius: 0px;
line-height: 30px;
font-size: 16px;
font-weight: bold;
text-shadow: 0px 1px 1px #888;
}
.heading span.icon,
.heading span.title {
display: block;
position: relative;
line-height: 50px;
padding: 0 20px;
border-radius: 0px;
}
.heading span.left {
float: left;
border-radius: 3px 0 0 3px;
-moz-border-radius: 3px 0 0 3px;
-webkit-border-radius: 3px 0 0 3px;
}
.heading span.right {
float: right;
border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
-webkit-border-radius: 0 3px 3px 0;
}
.heading span.icon {
font-size: 23px;
background-color: #00967f;
text-shadow: 0px 1px 1px #888;
}
.heading span.title {
background-color: #00cdae;
}
.heading span.arrow-left,
.heading span.arrow-right {
position: absolute;
width: 0;
height: 0;
border-top: 25px solid transparent;
border-bottom: 25px solid transparent;
-webkit-transition: all .15s;
-transition: all .15s;
-webkit-transition-property: left, right;
transition-property: left, right;
}
.heading.left span.arrow-left {
right: 0;
-webkit-box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
border-right: 10px solid #00cdae;
}
.heading.left span.arrow-right {
left: 0;
border-left: 10px solid #00967f;
}
.heading:active,
.heading.active {
height: 53px;
}
.heading:hover {}
.heading:hover span.arrow-left {
right: 0px;
}
.heading:hover span.arrow-right {
left: 0px;
}