Created
January 24, 2012 12:10
-
-
Save mlabod/1669884 to your computer and use it in GitHub Desktop.
Blue CSS3 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
/** | |
* Blue CSS3 Button | |
* dribbble: http://dribbble.com/shots/397908-Blue-CSS3-Button | |
*/ | |
* {text-decoration:none} | |
html { | |
box-sizing: border-box; | |
height:100%; | |
width:100%; | |
background:#f0f0f0; | |
box-shadow:inset 0px 0px 100px rgba(0,0,0,0.3); | |
font-family:Helvetica; Arial, Sans-Serif; | |
border:2px solid white; | |
font-smoothing: antialiased; | |
font-weight:bold; | |
} | |
a.button { | |
position:absolute; left:50%; top:50%; | |
margin-left:-70px; | |
width:120px; | |
padding:10px; | |
text-align:center; | |
color:white; | |
text-transform:uppercase; | |
border-radius:6px; | |
border:1px solid #52a2b2; | |
border-top:1px solid #5fbbcd; | |
background-image:linear-gradient(#A7DBD8, #69D2E7); | |
box-shadow: | |
inset 0px 1px 0px rgba(255,255,255,0.5), | |
inset 0px 18px 0px rgba(255,255,255,0.1), | |
0px 1px 0px white; | |
text-shadow:0px 1px 1px rgba(0,0,0,0.3); | |
transition:all 0.13s ease-out; | |
font-size:15px; | |
} | |
a.button:hover { | |
box-shadow: | |
inset 0px 1px 0px rgba(255,255,255,0.5), | |
inset 0px 18px 0px rgba(255,255,255,0.2), | |
0px 0px 10px rgba(0,0,0,0.3), | |
0px 1px 0px white, | |
0px -1px 0px white, | |
1px 0px 0px white, | |
-1px 0px 0px white; | |
} | |
a.button:active { | |
border:1px solid #4a92a1; | |
box-shadow: | |
inset 0px 0px 8px rgba(0,0,0,0.3), | |
inset 0px 18px 0px rgba(255,255,255,0.2), | |
0px 1px 0px white; | |
} |
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
<a class="button" href="http://twitter.com/ilwcss"> | |
follow me | |
</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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment