Created
January 24, 2012 14:11
-
-
Save tyron/1670362 to your computer and use it in GitHub Desktop.
Botão CSS3
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
/* | |
Botão CSS3 | |
*/ | |
.panel { | |
background: -webkit-gradient(linear, left top, left bottom, from(#bbbcbb), to(#959695)); | |
background: -moz-linear-gradient(#bbbcbb, #959695); | |
background-color: #b7b9b7; | |
width: 100px; | |
} | |
.button { | |
display: inline-block; | |
margin: 20px; | |
padding: 3px 6px; | |
font-family: 'Lucida Grande', Arial, sans-serif; | |
font-size: 13px; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
border: 1px solid rgba(0, 0, 0, 0.6); | |
background: -webkit-gradient(linear, left top, left bottom, from(#fbfcfb), to(#9d9e9d)); | |
background: -moz-linear-gradient(#fbfcfb, #9d9e9d); | |
background-color: #c0c2c0; | |
text-shadow: rgba(255, 255, 255, 0.4) 0px 1px; | |
-webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px; | |
-moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px; | |
box-shadow: rgba(255, 255, 255, 0.4) 0 1px; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
cursor: default; | |
} | |
.button:active { | |
background: #B5B5B5; | |
-webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px, | |
black 0px 1px 3px inset, | |
rgba(0, 0, 0, 0.4) 0px -5px 12px inset; | |
-moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px, | |
black 0px 1px 3px inset, | |
rgba(0, 0, 0, 0.4) 0px -5px 12px inset; | |
box-shadow: rgba(255, 255, 255, 0.4) 0 1px, | |
black 0px 1px 3px inset, | |
rgba(0, 0, 0, 0.4) 0px -5px 12px inset; | |
text-shadow: rgba(255, 255, 255, 0.3) 0px 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
<div class="panel"> | |
<div class="button">Button</div> | |
</div> |
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","prefixfree":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment