Created
May 17, 2012 18:46
-
-
Save ggamel/2720849 to your computer and use it in GitHub Desktop.
Gradient Butt
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
/** | |
* Gradient Butt | |
*/ | |
html { | |
font: 100%/1.5 Helvetica Neue, Helvetica, Arial, sans-serif; | |
background-image: linear-gradient(left,rgba(0,0,0,.99) 0%, rgb(4,4,4) 25%, rgba(0,0,40,.9) 50%,rgba(0,0,0,.99) 100% ); | |
min-height: 100%; | |
-webkit-font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
} | |
.butt { | |
font-weight: 700; | |
font-size: .875em; | |
text-shadow: 0 1px 0px rgba(0,0,60,.995); | |
color: #fff; | |
text-decoration: none; | |
padding: .2em 1em; | |
display: inline-block; | |
background-color: #086ed6; | |
background-image: linear-gradient(0deg, rgba(0,0,60,.2), rgba(0,0,60,0) 25%, rgba(0,0,60,0) 75%, rgba(0,0,60,.2)), | |
linear-gradient(#0a86df, #0547c5 75%, #0765d2); | |
border-radius: 3px; | |
border: 1px solid #031a31; | |
box-shadow: inset 0 1px 0 #4abcee, inset 0 0 0 1px #0976dc, 0 2px 2px rgba(0,0,0,.3); | |
} | |
.butt span { | |
display: block; | |
background: -webkit-linear-gradient(#fff, #9fbad7); | |
-webkit-text-fill-color: transparent; | |
-webkit-background-clip: text; | |
text-shadow: none; | |
} | |
.demo { | |
position: absolute; | |
top: 40%; | |
left: 50%; | |
margin-left: -62px; | |
} |
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
<a class="butt demo" href="http://twitter.com/ggamel"><span>Follow @ggamel</span></a> |
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":"separate","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