Created
January 2, 2012 22:33
-
-
Save cahnory/1552416 to your computer and use it in GitHub Desktop.
Embed buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="button">button</button> | |
<a href="#" class="button">link</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment