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 */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}btn {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: inline-block;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* forms items */
|
|
|
|
form,
|
|
|
|
fieldset {
|
2015-07-01 13:47:48 +02:00
|
|
|
border: none;
|
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,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
label,
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}btn {
|
2015-07-01 13:47:48 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-04-14 16:47:19 +02:00
|
|
|
button,
|
|
|
|
input,
|
|
|
|
optgroup,
|
|
|
|
select,
|
|
|
|
textarea {
|
2015-07-01 13:47:48 +02:00
|
|
|
color: $base-color;
|
2015-04-14 16:47:19 +02:00
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
label {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: pointer;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
legend {
|
2015-07-01 13:47:48 +02:00
|
|
|
border: 0;
|
|
|
|
white-space: normal;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
textarea {
|
2015-07-01 13:47:48 +02:00
|
|
|
min-height: 5em;
|
|
|
|
vertical-align: top;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
resize: vertical;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-06-26 14:04:31 +02:00
|
|
|
select {
|
2015-07-01 13:47:48 +02:00
|
|
|
-webkit-appearance: menulist-button;
|
2015-06-26 14:04:31 +02:00
|
|
|
}
|
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
/* 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 {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: none;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
::-webkit-input-placeholder {
|
2015-07-01 13:47:48 +02:00
|
|
|
color: #777;
|
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:-moz-placeholder,
|
|
|
|
textarea:-moz-placeholder {
|
2015-07-01 13:47:48 +02:00
|
|
|
color: #777;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}btn:focus,
|
2015-04-17 11:12:02 +02:00
|
|
|
input[type="button"]:focus,
|
2015-03-30 11:36:37 +02:00
|
|
|
button:focus {
|
2015-07-01 13:47:48 +02:00
|
|
|
outline: 0;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2015-04-14 10:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* unstyled forms */
|
2015-04-17 11:12:02 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
button.#{$kna-namespace}unstyled,
|
|
|
|
input[type="button"].#{$kna-namespace}unstyled,
|
|
|
|
input[type="submit"].#{$kna-namespace}unstyled,
|
|
|
|
input[type="reset"].#{$kna-namespace}unstyled {
|
2015-07-01 13:47:48 +02:00
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
line-height: 1;
|
|
|
|
text-align: left;
|
|
|
|
background: none;
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
}
|