Skip to content

Instantly share code, notes, and snippets.

@hongymagic
Created April 17, 2013 01:19
Show Gist options
  • Save hongymagic/5401051 to your computer and use it in GitHub Desktop.
Save hongymagic/5401051 to your computer and use it in GitHub Desktop.
Buttons, buttons, buttons for scrooge!
/**
* Buttons, buttons, buttons for scrooge!
*/
@import url(http://fonts.googleapis.com/css?family=Oswald);
button, label {
font-family: 'Oswald', Helvetica, Arial;
font-size: 100%;
line-height: normal;
text-transform: uppercase;
vertical-align: middle;
}
button, label {
margin: 0 3px;
box-sizing: border-box;
}
button {
padding: 0;
width: 43px;
height: 43px;
}
label {
padding: 0 3px;
height: 43px;
line-height: 39px;
display: inline-block;
}
label input {
display: none;
}
button, label {
transition-property: border-color, color;
transition-duration: 0.1s;
transition-timing-function: linear;
}
button, label {
border: 3px solid #222;
border-radius: 7px;
background: transparent;
cursor: pointer;
user-select: none;
}
button:hover, label:hover {
border-color: #1ABC9C;
color: #1ABC9C;
}
button:active, label:active {
background-color: #1ABC9C;
border-color: none;
color: #fff;
}
<div>
<label>Increment<input type="checkbox" /></label>
<button value="1000">1K</button>
<button value="10000">10K</button>
<button value="100000">100k</button>
<button value="500000">500k</button>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment