Created
April 24, 2012 12:48
-
-
Save lastguest/2479368 to your computer and use it in GitHub Desktop.
Plastic CSS button
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
/* Plastic CSS button */ | |
body { | |
background-color: #cececa; | |
text-align: center; | |
font-size: 1.5em; | |
padding-top:120px; | |
} | |
.button>span { | |
display: inline-block; | |
width: auto; | |
padding: 0.45em; | |
background-color: #86a9be; | |
background-image: linear-gradient(top, hsl(209, 58%, 81%), hsl(196, 23%, 46%)); | |
border-radius: 2em; | |
color: #fff; | |
font: bold 0.85em/1.0em Helvetica,Arial; | |
text-shadow: 0px -1px 1px rgba(0,0,0,.35); | |
box-shadow: 0px 1px 2px rgba(0,0,0,.75); | |
} | |
.button { | |
display: inline-block; | |
padding: 0.25em; | |
border-radius: 1em; | |
background-image: linear-gradient(top, rgba(0, 0, 0, .45), rgba(255, 255, 255, 0.50)); | |
box-shadow: 0px -1px 2px rgba(0,0,0,.55); | |
-webkit-user-select: none; | |
cursor: pointer; | |
} | |
.button:active>span { | |
background-image: linear-gradient(top, hsl(209, 58%, 71%), hsl(196, 23%, 41%)); | |
height: 0.9em; | |
margin-top: 0.1em; | |
color: #eee; | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<a class="button"><span>Caffeina</span></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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment