Created
April 21, 2012 15:14
-
-
Save qhwa/2437674 to your computer and use it in GitHub Desktop.
push button example
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
| /** | |
| * push button example | |
| */ | |
| body { | |
| background-color: #0AE; | |
| background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent); | |
| background-size: 50px 50px | |
| } | |
| .btn { | |
| background: #ff7300; | |
| color: rgba(255,255,255,1); | |
| display: block; | |
| width: 7em; | |
| font-size: 50pt; | |
| font-weight: bold; | |
| text-align: center; | |
| margin: 1em auto; | |
| padding: 0.5em 0; | |
| border-radius: 10px; | |
| box-shadow: 0 20px 0 #A84C00, 0 20px 50px 0px black; | |
| text-decoration: none; | |
| position: relative; | |
| text-shadow: 2px 2px 5px rgba(0,0,0,.5); | |
| transition-property: all; | |
| transition-duration: .1s; | |
| } | |
| .btn:active { | |
| top: 20px; | |
| box-shadow: 0px 0 10px rgba(0,0,0,.5); | |
| } |
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
| <!-- content to be placed inside <body>…</body> --> | |
| <a href="#nogo" class="btn">push me!</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","fontsize":"140","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment