Skip to content

Instantly share code, notes, and snippets.

@noodlehaus
Created July 25, 2013 08:59
Show Gist options
  • Save noodlehaus/6078039 to your computer and use it in GitHub Desktop.
Save noodlehaus/6078039 to your computer and use it in GitHub Desktop.
controls style palette
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
/*----------------
* control styles
*/
body {
color: #333;
font-size: 14px;
line-height: 19px;
font-family: 'open sans', 'helvetica neue', sans-serif;
}
input[type="button"],
input[type="submit"],
input[type="reset"],
button {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
line-height: 1.4285em;
border: 0;
padding: 1em 1.286em;
background: #666;
color: #fff;
}
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
background: #c30;
}
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
button:active {
background: #333;
}
textarea,
input[type="text"],
input[type="search"],
input[type="email"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 0;
padding: .5em .643em;
line-height: 1em;
background: #eee;
}
textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus {
outline: none;
background: #f4f8f8;
}
textarea {
line-height: 1.5em;
min-height: 2.5em;
}
textarea:focus {
outline: none;
border-color: #c30;
}
select {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #ccc;
background: none;
background-color: #f4f4f4;
padding: .429em .571em;
}
select:focus {
background-color: #f4f8f8;
}
label {
display: block;
color: #444;
line-height: 14px;
margin: 0 0 7px;
}
label.tick {
position: relative;
display: inline-block;
}
label.tick input[type="radio"],
label.tick input[type="checkbox"] {
position: relative;
top: -.07em;
}
.hint {
color: #999;
margin-top: 7px;
font-size: .9286em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment