Created
July 14, 2012 18:44
-
-
Save james2doyle/3112631 to your computer and use it in GitHub Desktop.
Nice 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
/** | |
* Nice Button | |
*/ | |
button { | |
border: 1px solid #000; | |
margin: 0; | |
outline: 0; | |
padding: 10px 30px; | |
color: rgba(255,255,255,0.9); | |
font-weight: bold; | |
font-family: 'Open Sans'; | |
border-radius: 3px; | |
text-shadow: 0 1px 0 rgba(0,0,0,0.8); | |
box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); | |
background: linear-gradient(top, #444444 0%,#333333 100%); | |
} | |
button:hover { | |
color: rgba(255,255,255,1); | |
background: linear-gradient(top, #555 0%,#444 100%); | |
} | |
button:active { | |
color: rgba(255,255,255,0.8); | |
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.3); | |
background: linear-gradient(top, #333 0%,#444 100%); | |
} | |
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>Click This Button</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
{"view":"split","fontsize":"70","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment