input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="week"],
input[type="number"],
input[type="search"],
input[type="tel"],
select,
textarea {
  border: $border;
  border-radius: $radius;
  padding: $pad-xsmall;
  display: inline-block;
  vertical-align: middle;
}

input:not([type]) {
  -webkit-appearance: none;
  background-clip: padding-box;
  border: $border;
  border-radius: $radius;
  padding: $pad-xsmall;
  display: inline-block;
  text-align: left;
}

input[name="name"] {
  display: block;
  max-width: 100%;
}

input#title {
  max-width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  border-color: $primary;
}

input:not([type]):focus {
  border-color: $primary;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: 1px thin $divider;
}

input[type="text"][disabled],
input[type="password"][disabled],
input[type="email"][disabled],
input[type="url"][disabled],
input[type="date"][disabled],
input[type="month"][disabled],
input[type="time"][disabled],
input[type="datetime"][disabled],
input[type="datetime-local"][disabled],
input[type="week"][disabled],
input[type="number"][disabled],
input[type="search"][disabled],
input[type="tel"][disabled],
input[type="color"][disabled],
select[disabled],
textarea[disabled] {
  background-color: $divider;
  color: $secondary;
  cursor: not-allowed;
}

input:not([type])[disabled] {
  background-color: $divider;
  color: $secondary;
  cursor: not-allowed;
}

input[readonly],
select[readonly],
textarea[readonly] {
  border-color: $divider;
  color: $secondary;}

select {
  -webkit-appearance: menulist-button;
}

textarea {
  display: block;
  margin-bottom: $pad-small;
  max-width: 100%;
  width: 100%;
  .update & {
    width: inherit;
  }
}

.field.title {
  margin: $pad-small 0;
}
