@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './mixin';
@import './affix';
@import './allow-clear';

// Input styles
.@{ant-prefix}-input {
  .reset-component;
  .input;

  //== Style for input-group: input with label, with button or dropdown...
  &-group {
    .reset-component;
    .input-group(~'@{ant-prefix}-input');
    &-wrapper {
      display: inline-block;
      width: 100%;
      text-align: start;
      vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
    }
  }

  &-password-icon {
    color: @grey-5;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
      color: @grey-8;
    }
  }

  &[type='color'] {
    height: @input-height-base;

    &.@{ant-prefix}-input-lg {
      height: @input-height-lg;
    }
    &.@{ant-prefix}-input-md {
      height: @input-height-md;
    }
    &.@{ant-prefix}-input-sm {
      height: @input-height-sm;
      padding-top: 3px;
      padding-bottom: 3px;
    }
  }

  &::placeholder {
    color: @input-placeholder-color;
    font-family: @font-family;
  }
}

@import './search-input';
@import './rtl';
