Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Created April 18, 2012 23:44
Show Gist options
  • Save mrmurphy/2417406 to your computer and use it in GitHub Desktop.
Save mrmurphy/2417406 to your computer and use it in GitHub Desktop.
Modification of button found here: http://cssdeck.com/item/289/fancy-3d-button
@import url(http://fonts.googleapis.com/css?family=Exo:900);
.bk-button-wrapper .pill {
position: relative;
color: rgba(255,255,255,1);
text-decoration: none;
background: rgba(219,87,5,1);
border: none;
font-family: \"Exo\", sans-serif;
font-weight: 800;
padding: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 0px 5px 0px rgba(219,31,5,1), 0px 5px 12px rgba(0,0,0,.7);
-moz-box-shadow: 0px 5px 0px rgba(219,31,5,1), 0px 5px 12px rgba(0,0,0,.7);
box-shadow: 0px 5px 0px rgba(219,31,5,1), 0px 5px 12px rgba(0,0,0,.7);
text-align: center;
-webkit-transition: all .1s ease;
-moz-transition: all .1s ease;
-ms-transition: all .1s ease;
-o-transition: all .1s ease;
transition: all .1s ease;
}
.bk-button-wrapper .pill:active {
-webkit-box-shadow: 0px 1px 0px rgba(219,31,5,1), 0px 0px 3px rgba(0,0,0,.9);
-moz-box-shadow: 0px 1px 0px rgba(219,31,5,1), 0px 0px 3px rgba(0,0,0,.9);
box-shadow: 0px 1px 0px rgba(219,31,5,1), 0px 0px 3px rgba(0,0,0,.9);
position: relative;
top: 4px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment