Created
November 6, 2012 14:17
-
-
Save kswedberg/4024971 to your computer and use it in GitHub Desktop.
LjQ buttons
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
/** | |
* LjQ buttons | |
*/ | |
body {background-color: #f4f3eb;} | |
button { | |
position: relative; | |
color: #fff; | |
text-shadow: 0 1px 0 #555; | |
padding: 4px 8px; | |
border: 1px solid #d44314; | |
border-radius: 4px; | |
background: #f25928; | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f25928), color-stop(100%,#d44314)); | |
background: -webkit-linear-gradient(top, #f25928 0%,#d44314 100%); | |
background: -moz-linear-gradient(top, #f25928 0%, #d44314 100%); | |
background: -o-linear-gradient(top, #f25928 0%,#d44314 100%); | |
background: -ms-linear-gradient(top, #f25928 0%,#d44314 100%); | |
background: linear-gradient(to bottom, #f25928 0%,#d44314 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f25928', endColorstr='#d44314',GradientType=0 ); | |
-webkit-box-shadow: 0 2px 1px rgba(122,122,122, 0.2); | |
-moz-box-shadow: 0 2px 1px rgba(122,122,122, 0.2); | |
box-shadow: 0 2px 1px rgba(122,122,122, 0.2); | |
} | |
button:after { | |
width: 100%; | |
height: 52%; | |
position: absolute; | |
content: " "; | |
left: 0; | |
top: 0; | |
border-radius: 2px 4px 4px 3px; | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(1, rgba(255,255,255,0.4)), to(rgba(255,255,255,0.2))); | |
background-image: -webkit-linear-gradient(rgba(255,255,255,0.4) 0, rgba(255,255,255,0.2)); | |
background-image: -moz-linear-gradient(rgba(255,255,255,0.4) 0, rgba(255,255,255,0.2)); | |
background-image: -o-linear-gradient(rgba(255,255,255,0.4) 0, rgba(255,255,255,0.2)); | |
background-image: -ms-linear-gradient(rgba(255,255,255,0.4) 0, rgba(255,255,255,0.2)); | |
background-image: linear-gradient(rgba(255,255,255,0.4) 0, rgba(255,255,255,0.2)); | |
} |
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><span>Submit</span></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":"100","seethrough":"","prefixfree":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment