@keyframes webkit-autofill-on
  to
    background transparent
    color $form-autofill
@keyframes webkit-autofill-off
  to
    background transparent

.q-input-target, .q-input-shadow
  border 0
  outline 0
  padding 0
  background transparent
  min-height 18px
  font-size inherit
  overflow hidden
  resize none
  display flex
  align-items center
  color black
  &:-webkit-autofill
    -webkit-animation-name webkit-autofill-on
    -webkit-animation-fill-mode both
  &.q-input-autofill:not(:-webkit-autofill)
    -webkit-animation-name webkit-autofill-off
    -webkit-animation-fill-mode both
  &::-ms-clear, &::-ms-reveal
    display none
    width 0
    height 0
  &:invalid
    box-shadow inherit

input.q-input-target
  height 19px
  outline 0
.q-input-chips
  min-height 36px !important

.q-if
  .q-input-target-placeholder
    color $form-dark !important
  .q-input-target
    &::-webkit-input-placeholder /* Chrome/Opera/Safari */
      color $form-dark !important
    &::-moz-placeholder /* Firefox 19+ */
      color $form-dark !important
    &:-ms-input-placeholder /* IE 10+ */
      color $form-dark !important

    &::selection
      background black
      color white

.q-if-dark
  .q-input-target-placeholder
    color #979797 !important
  .q-input-target
    &::-webkit-input-placeholder /* Chrome/Opera/Safari */
      color #979797 !important
    &::-moz-placeholder /* Firefox 19+ */
      color #979797 !important
    &:-ms-input-placeholder /* IE 10+ */
      color #979797 !important

    &::selection
      background white
      color black

.q-if-inverted:not(.q-if-inverted-light)
  .q-input-target-placeholder
    color #ddd !important
  .q-input-target
    &::-webkit-input-placeholder /* Chrome/Opera/Safari */
      color #ddd !important
    &::-moz-placeholder /* Firefox 19+ */
      color #ddd !important
    &:-ms-input-placeholder /* IE 10+ */
      color #ddd !important

    &::selection
      background white
      color black

.q-input-shadow
  overflow hidden
  visibility hidden
  pointer-events none
  height auto
