Created
February 24, 2012 21:54
-
-
Save hanigamal/1904029 to your computer and use it in GitHub Desktop.
CSS Round Link Button
This file contains hidden or 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
/** | |
* Round Link | |
*/ | |
a.round:link, a.round:visited { | |
width: 140px; | |
color: #fff; | |
font: 28px/30px Arial; | |
text-transform: uppercase; | |
text-shadow: #6f0909 0 -1px 1px; | |
border: 1px solid #6F0909; | |
display: inline-block; | |
padding-top: 40px; | |
padding-bottom: 40px; | |
-moz-border-radius: 70px; | |
-webkit-border-radius: 70px; | |
border-radius: 70px; | |
-moz-box-shadow: inset rgba(255,255,255,.8) 0 2px 4px; | |
-webkit-box-shadow: inset rgba(255,255,255,.8) 0 2px 4px; | |
box-shadow: inset rgba(255,255,255,.8) 0 2px 4px; | |
background: -moz-linear-gradient(top, rgba(180,9,9,1) 0%,rgba(111,9,9,1) 100%); | |
background: -webkit-gradient(linear, left top, left bottom,color-stop(0%,rgba(180,9,9,1)), color-stop(100%,rgba(111,9,9,1))); | |
background: -webkit-linear-gradient(top, rgba(180,9,9,1)0%,rgba(111,9,9,1) 100%); | |
background: -o-linear-gradient(top, rgba(180,9,9,1)0%,rgba(111,9,9,1) 100%); | |
background: linear-gradient(top, rgba(180,9,9,1) 0%,rgba(111,9,9,1)100%); | |
-moz-background-clip: padding-box; | |
-webkit-background-clip: padding-box; | |
background-clip: padding-box; | |
-webkit-transform: rotate(-12deg); | |
-moz-transform: rotate(-12deg); | |
-ms-transform: rotate(-12deg); | |
-o-transform: rotate(-12deg); | |
transform: rotate(-12deg); | |
} | |
a.round:hover { | |
-moz-box-shadow: rgba(255,255,255,1) 0 0 20px, rgba(255,255,255,1)0 0 30px, inset rgba(255,255,255,.8) 0 2px 4px; | |
-webkit-box-shadow: rgba(255,255,255,1) 0 0 20px,rgba(255,255,255,1) 0 0 30px, inset rgba(255,255,255,.8) 0 2px 4px; | |
box-shadow: rgba(255,255,255,1) 0 0 20px, rgba(255,255,255,1) 0 030px, inset rgba(255,255,255,.8) 0 2px 4px; | |
-moz-transform: rotate(0deg); | |
-moz-transition: -moz-transform 0.3s ease-out; | |
-webkit-transform: rotate(0deg); | |
-webkit-transition: -webkit-transform 0.3s ease-out; | |
-o-transform: rotate(0deg); | |
-o-transition: -o-transform 0.3s ease-out; | |
} | |
a.round:active { | |
-moz-box-shadow: rgba(255,255,255,1) 0 0 20px, rgba(255,255,255,1)0 0 30px , inset rgba(0,0,0,.5) 0 4px 4px; | |
-webkit-box-shadow: rgba(255,255,255,1) 0 0 20px,rgba(255,255,255,1) 0 0 30px , inset rgba(0,0,0,.5) 0 4px 4px; | |
box-shadow: rgba(255,255,255,1) 0 0 20px, rgba(255,255,255,1) 0 030px , inset rgba(0,0,0,.5) 0 4px 4px; | |
background: -moz-linear-gradient(top, rgba(111,9,9,1) 0%,rgba(180,9,9,1) 100%); | |
background: -webkit-gradient(linear, left topleft bottom,color-stop(0%,rgba(111,9,9,1)), color-stop(100%,rgba(180,9,9,1))); | |
background: -webkit-linear-gradient(top, rgba(111,9,9,1)0%,rgba(180,9,9,1) 100%); | |
background: -o-linear-gradient(top, rgba(111,9,9,1)0%,rgba(180,9,9,1) 100%); | |
background: linear-gradient(top, rgba(111,9,9,1) 0%,rgba(180,9,9,1)100%); | |
-moz-background-clip: padding-box; | |
-webkit-background-clip: padding-box; | |
d-clip: padding-box; | |
} |
This file contains hidden or 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="round" href="hanigamal.net">Hani Gamal</a> |
This file contains hidden or 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","seethrough":"1","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment