Created
July 12, 2012 14:51
-
-
Save tjvantoll/3098607 to your computer and use it in GitHub Desktop.
CSS3 Purple 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
button { | |
color: #fff; | |
font-size: 1em; | |
font-weight: bold; | |
text-align: center; | |
font-family: Verdana, Geneva, sans-serif; | |
text-shadow: 0.07em 0.07em 0.12em #888; | |
display: inline-block; | |
height: 2.2em; | |
padding: 0 8px 1px 8px; | |
border: 0; | |
line-height: 1em; | |
border-radius: 6px; | |
box-shadow: | |
0px 1px 2px rgba(168, 161, 155, 0.5), | |
inset 0px 0px 2px rgba(54, 47, 3, 0.5); | |
background: #A5A7AD; | |
background-image: -o-linear-gradient(bottom, #A5A7AD 25%, #C7C8CE 81%); | |
background-image: -moz-linear-gradient(bottom, #A5A7AD 25%, #C7C8CE 81%); | |
background-image: -webkit-linear-gradient(bottom, #A5A7AD 25%, #C7C8CE 81%); | |
background-image: -ms-linear-gradient(bottom, #A5A7AD 25%, #C7C8CE 81%); | |
background-image: linear-gradient(bottom, #A5A7AD 25%, #C7C8CE 81%); | |
} | |
button:hover { | |
cursor: pointer; | |
background: #97989F; | |
background-image: -o-linear-gradient(bottom, #97989F 25%, #ADAFB6 81%); | |
background-image: -moz-linear-gradient(bottom, #97989F 25%, #ADAFB6 81%); | |
background-image: -webkit-linear-gradient(bottom, #97989F 25%, #ADAFB6 81%); | |
background-image: -ms-linear-gradient(bottom, #97989F 25%, #ADAFB6 81%); | |
background-image: linear-gradient(bottom, #97989F 25%, #ADAFB6 81%); | |
} |
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>Hello World</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-vertical","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