Created
November 17, 2011 20:34
-
-
Save gnepud/1374431 to your computer and use it in GitHub Desktop.
Bottom css example1
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> | |
<a href="#" class="button"><span>Do Not Press This Button</span></a> | |
</div> | |
*/ | |
.button { | |
display: inline-block; | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
border-radius: 10px; | |
-webkit-box-shadow: 0 8px 0 #823a17, 0 15px 20px rgba(0, 0, 0, .5); | |
-moz-box-shadow: 0 8px 0 #823a17, 0 15px 20px rgba(0, 0, 0, .5); | |
box-shadow: 0 8px 0 #823a17, 0 15px 20px rgba(0, 0, 0, .5); | |
-webkit-transition: all 0.2s ease-in-out; | |
-moz-transition: all 0.2s ease-in-out; | |
transition: all 0.2s ease-in-out; | |
} | |
.button span { | |
display: inline-block; | |
padding: 10px 20px; | |
font-family: 'LeagueGothicRegular', sans-serif; | |
font-size: 18px; | |
text-transform: uppercase; | |
line-height: 1; | |
text-shadow: 0 -1px 1px rgba(19, 65, 88, .8); | |
background: #bb5422; | |
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FA8246), to(#bb5422)); | |
background: -moz-linear-gradient(19% 75% 90deg,#FA8246, #BB5422, #C7C7C7 100%); | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
border-radius: 10px; | |
-webkit-box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .10); | |
-moz-box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .10); | |
box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .10); | |
-webkit-transition: all 0.2s ease-in-out; | |
-moz-transition: all 0.2s ease-in-out; | |
transition: all 0.2s ease-in-out; | |
} | |
.button:active { | |
-webkit-transition: -webkit-transform 0s ease-in-out; | |
-moz-transition: -moz-transform 0s ease-in-out; | |
transition: transform 0s ease-in-out; | |
-webkit-box-shadow: 0 8px 0 #823a17, 0 12px 10px rgba(0, 0, 0, .3); | |
-moz-box-shadow: 0 8px 0 #823a17, 0 12px 10px rgba(0, 0, 0, .3); | |
box-shadow: 0 8px 0 #823a17, 0 12px 10px rgba(0, 0, 0, .3); | |
} | |
.button:active span { | |
-webkit-transition: -webkit-transform 0s ease-in-out; | |
-moz-transition: -moz-transform 0s ease-in-out; | |
transition: transform 0s ease-in-out; | |
-webkit-transform: translate(0px, 4px); | |
-moz-transform: translate(0px, 4px); | |
transform: translate(0px, 4px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment