KNACSS/less/_05-forms.less

90 lines
1.6 KiB
Plaintext
Raw Normal View History

2013-09-12 11:59:14 +02:00
/* ----------------------------- */
/* ==forms */
/* ----------------------------- */
/* thanks to HTML5boilerplate,
2014-05-19 10:46:39 +02:00
* github.com/nathansmith/formalize and www.sitepen.com
2013-09-12 11:59:14 +02:00
*/
/* buttons */
.btn {
display: inline-block;
}
/* forms items */
form,
fieldset {
border: none;
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
input,
button,
select,
label,
.btn {
vertical-align: middle;
font-family: inherit;
font-size: inherit;
}
2014-05-07 10:45:47 +02:00
label {
2013-09-12 11:59:14 +02:00
display: inline-block;
vertical-align: middle;
cursor: pointer;
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
legend {
border: 0;
white-space: normal;
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
textarea {
min-height: 5em;
vertical-align: top;
font-family: inherit;
font-size: inherit;
resize: vertical;
}
2014-05-07 10:45:47 +02:00
/* clickable input types in iOS */
2013-09-12 11:59:14 +02:00
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
2014-05-07 10:45:47 +02:00
-webkit-appearance: button;
2013-09-12 11:59:14 +02:00
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
input[type="search"] {
-webkit-appearance: textfield;
}
/* if select styling bugs on WebKit */
/* select { -webkit-appearance: none; } */
/* 'x' appears on right of search input when text is entered. This removes it */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
::-webkit-input-placeholder {
color: #777;
}
2014-05-07 10:45:47 +02:00
2013-09-12 11:59:14 +02:00
input:-moz-placeholder,
textarea:-moz-placeholder {
color: #777;
}
/* Removes inner padding and border in FF3+ */
button::-moz-focus-inner,
input[type='button']::-moz-focus-inner,
input[type='reset']::-moz-focus-inner,
input[type='submit']::-moz-focus-inner {
border: 0;
padding: 0;
2014-05-07 10:45:47 +02:00
}