Skip to content

Instantly share code, notes, and snippets.

@qhwa
Created April 21, 2012 15:14
Show Gist options
  • Select an option

  • Save qhwa/2437674 to your computer and use it in GitHub Desktop.

Select an option

Save qhwa/2437674 to your computer and use it in GitHub Desktop.
push button example
/**
* 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);
}
<!-- content to be placed inside <body>…</body> -->
<a href="#nogo" class="btn">push me!</a>
{"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