Skip to content

Instantly share code, notes, and snippets.

@cahnory
Created January 2, 2012 22:33
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 cahnory/1552416 to your computer and use it in GitHub Desktop.
Save cahnory/1552416 to your computer and use it in GitHub Desktop.
Embed buttons
/**
* Embed buttons
*/
body {
background: #3a3f48;
}
.button {
background: linear-gradient(#525866, #292C33);
border: none;
border-radius: 4px;
box-shadow:
inset 0 15px rgba(255,255,255,.02), inset 0 1px rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.05),
0 1px #292C33, 0 1px 0 1px #000, 0 0 0 1px #333, 0 2px 0 1px rgba(255,255,255,.1);
color: #FFF;
cursor: pointer;
display: -moz-inline-box; display: inline-block; *display: inline; *zoom: 1;
font: 13px/30px "Lucida Grande", Verdana, Arial, sans-serif;
height: 30px;
padding: 0 1em;
position: relative;
text-decoration: none;
text-shadow: 0 1px 1px rgba(0,0,0,.75);
}
.button:hover {
text-shadow: 0 0 12px rgba(255,255,255,.5), 0 1px 1px rgba(0,0,0,.75);
}
.button:active {
box-shadow:
inset 0 15px rgba(255,255,255,.02), inset 0 1px rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.05),
0 0 #292C33, 0 0 0 1px #000, 0 -1px 0 1px #333, 0 1px 0 1px rgba(255,255,255,.1);
top: 1px;
}
<button class="button">button</button>
<a href="#" class="button">link</a>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment