Skip to content

Instantly share code, notes, and snippets.

@afrontend
Last active February 10, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afrontend/4c473eb643c0384a7258 to your computer and use it in GitHub Desktop.
Save afrontend/4c473eb643c0384a7258 to your computer and use it in GitHub Desktop.
OpenFirefoxInNotebookWithCSS button.css
/**
* CSS Buttons Generator for your pleasure!
* http://www.dextronet.com/css-buttons-generator
*
* (c) Ondrej Zabojnik <zabojnik@dextronet.com>, released under the MIT license
*
* Usage:
* <a href="" class="shiny-button"><strong>Free Download</strong><br>No hidden battle droids inside</a>
*
*/
.shiny-button {
display: inline-block;
text-align: center;
border-width: 1px;
border-style: solid;
text-transform: uppercase;
text-decoration: none;
line-height: 1.1;
font-weight: normal;
font-family: sans-serif;
color: #FFFFFF;
font-size: 12px;
background-color: #73B10E;
background-image: -webkit-linear-gradient(top, #76b60e 0%, #86c028 48%, #73B10E 49%, #73B10E 82%, #84cb10 100%);
background-image: -moz-linear-gradient(top, #76b60e 0%, #86c028 48%, #73B10E 49%, #73B10E 82%, #84cb10 100%);
background-image: -o-linear-gradient(top, #76b60e 0%, #86c028 48%, #73B10E 49%, #73B10E 82%, #84cb10 100%);
background-image: linear-gradient(top, #76b60e 0%, #86c028 48%, #73B10E 49%, #73B10E 82%, #84cb10 100%);
border-color: hsl(83, 29%, 37%);
-webkit-box-shadow: inset 0 0 1px 1px #95e512, 0 0 1px 3px rgba(0, 0, 0, 0.15);
-moz-box-shadow: inset 0 0 1px 1px #95e512, 0 0 1px 3px rgba(0, 0, 0, 0.15);
box-shadow: inset 0 0 1px 1px #95e512, 0 0 1px 3px rgba(0, 0, 0, 0.15);
-webkit-text-shadow: 1px 1px 1px #365207;
-moz-text-shadow: 1px 1px 1px #365207;
-o-text-shadow: 1px 1px 1px #365207;
text-shadow: 1px 1px 1px #365207;
-webkit-border-radius: 32px;
-moz-border-radius: 32px;
border-radius: 32px;
padding: 12px 30px 12px 30px;
}
.shiny-button strong {
letter-spacing: 1px;
font-size: 22px;
}
.shiny-button:hover {
color: #FFFFFF;
background-color: #7cbf0f;
background-image: -webkit-linear-gradient(top, #7fc40f 0%, #8fcc2b 48%, #7cbf0f 49%, #7cbf0f 82%, #8dd911 100%);
background-image: -moz-linear-gradient(top, #7fc40f 0%, #8fcc2b 48%, #7cbf0f 49%, #7cbf0f 82%, #8dd911 100%);
background-image: -o-linear-gradient(top, #7fc40f 0%, #8fcc2b 48%, #7cbf0f 49%, #7cbf0f 82%, #8dd911 100%);
background-image: linear-gradient(top, #7fc40f 0%, #8fcc2b 48%, #7cbf0f 49%, #7cbf0f 82%, #8dd911 100%);
border-color: hsl(83, 28%, 36%);
-webkit-box-shadow: inset 0 0 1px 1px #9eed1e, 0 0 1px 3px rgba(0, 0, 0, 0.15);
-moz-box-shadow: inset 0 0 1px 1px #9eed1e, 0 0 1px 3px rgba(0, 0, 0, 0.15);
box-shadow: inset 0 0 1px 1px #9eed1e, 0 0 1px 3px rgba(0, 0, 0, 0.15);
-webkit-text-shadow: 1px 1px 1px #3f6008;
-moz-text-shadow: 1px 1px 1px #3f6008;
-o-text-shadow: 1px 1px 1px #3f6008;
text-shadow: 1px 1px 1px #3f6008;
}
.shiny-button:active {
color: #FFFFFF;
background-color: #6aa30d;
background-image: -webkit-linear-gradient(top, #649a0c 0%, #73B10E 100%);
background-image: -moz-linear-gradient(top, #649a0c 0%, #73B10E 100%);
background-image: -o-linear-gradient(top, #649a0c 0%, #73B10E 100%);
background-image: linear-gradient(top, #649a0c 0%, #73B10E 100%);
padding: 13px 30px 11px 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment