Created
January 26, 2012 15:29
-
-
Save philippbosch/1683285 to your computer and use it in GitHub Desktop.
Untitled
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
body { | |
text-align: center; | |
margin-top: 100px; | |
background: #CCC; | |
} | |
button { | |
font-size: 128px; | |
font-weight: bold; | |
border-radius: 20px; | |
background: linear-gradient(top, #CCC, #EEE, #DDD); | |
border: none; | |
width: 200px; | |
height: 200px; | |
line-height: 200px; | |
position: relative; | |
box-shadow: | |
rgba(255,255,255,.5) 0 2px 2px inset, | |
rgba(0,0,0,0.5) 0 -2px 2px inset, | |
rgba(0,0,0,.9) 0 0 2px 5px; | |
} | |
button span { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
z-index: 2; | |
} | |
button span:after { | |
content: "⌘"; | |
position: absolute; | |
top: 1px; | |
left: 0; | |
right: 0; | |
z-index: 3; | |
color: rgba(0,0,0,0); | |
background: radial-gradient(50% 0%, circle cover, | |
rgba(255,255,255,0.1), rgba(255,255,255,0.3) 44%, rgba(255,255,255,0) 45%, rgba(255,255,255,0)), linear-gradient(top, #666, #222); | |
-webkit-background-clip: text; | |
} | |
button span:before { | |
content: "⌘"; | |
position: absolute; | |
top: 2px; | |
left: 0; | |
right: 0; | |
color: #FFF; | |
} |
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
<button><span>⌘</span></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
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment