Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Created April 11, 2012 12:58
Show Gist options
  • Save tylergaw/2359154 to your computer and use it in GitHub Desktop.
Save tylergaw/2359154 to your computer and use it in GitHub Desktop.
Arrow Button
/**
* Arrow Button
*/
a {
color: #f1f1f1;
display: inline-block;
font-family: helvetica, sans;
font-size: 2.2em;
letter-spacing: 0.1em;
text-decoration: none;
text-transform: uppercase;
opacity: 0.75;
overflow: hidden;
padding-right: 0.8em;
position: relative;
}
a b {
background-color: #b8b8b8;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
display: inline-block;
font-weight: normal;
padding: 0.06em 0 0 0.2em;
position: relative;
text-shadow: rgba(0, 0, 0, 0.1) 0 -1px 0;
z-index: 2;
}
a:after {
background-color: #b8b8b8;
content: "";
display: inline-block;
height: 1.2em;
position: absolute;
right: 0.3em;
-webkit-transform: rotate(-45deg);
width: 1.2em;
z-index: 1;
}
a:hover {
opacity: 1;
}
<a href="#woot"><b>Original Article</b></a>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment