Created
January 26, 2012 10:45
-
-
Save daneden/1682198 to your computer and use it in GitHub Desktop.
Untitled
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
html { | |
min-height: 100%; | |
background: #363640 linear-gradient(rgba(0,0,20,0), rgba(0,0,20,.2)); | |
} | |
div { | |
width: 500px; | |
padding: 40px 0; | |
height: 40px; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin: -50px -250px; | |
text-align: center; | |
background-image: radial-gradient(rgba(200,200,255,.1), transparent) | |
} | |
.butt { | |
cursor: pointer; | |
appearance: none; | |
padding: .75em 2em; | |
border-radius: 5px; | |
border: 0; | |
background-image: linear-gradient(rgba(0,0,0,0) 20%, rgba(0,0,0,.2) 80%); | |
box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.3), 0 2px 3px rgba(0,0,0,.3); | |
font-weight: 700; | |
font-family: Helvetica Neue, Helvetica, Arial, sans-serif; | |
color: #334; | |
text-shadow: 0 1px 0 rgba(255,255,255,.3); | |
} | |
.butt:hover { | |
background-image: linear-gradient(rgba(0,0,0,0) 20%, rgba(0,0,0,.2)); | |
} | |
.butt:active { | |
background-image: linear-gradient(rgba(0,0,0,.2) 20%, rgba(0,0,0,0) 80%); | |
} | |
.dark.butt { | |
background-color: #3a3a4a; | |
color: #eee; | |
text-shadow: 0 1px 1px rgba(0,0,0,.3); | |
box-shadow: inset 0 0 0 1px rgba(100,100,175,.1), inset 0 1px 0 rgba(100,100,175,.2), 0 2px 3px rgba(0,0,0,.3); | |
} |
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> | |
<button class="light butt">Damn Nature</button> <button class="dark butt">You Scary</button> | |
</div> |
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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment