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

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

  // custom
  &.@{mk-prefix}-input-li {
    .li_border();
    &:focus,
    &:active,
    &:hover {
      border-bottom-color: @primary-color;
    }
    &.@{mk-prefix}-input-disabled {
      border-bottom: @border-width-base @border-style-disable @border-color-base;
      background-color: #fff;
      + .mk-calendar-picker-icon {
        display: none;
      }
      &:hover {
        .li_border_disabled();
      }
    }
    &.@{mk-prefix}-input-focused {
      .li_border();
    }
  }

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



  &-password-icon {
    color: @text-color-secondary;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
      color: @input-icon-hover-color;
    }
  }

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

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

.@{mk-prefix}-input-password {
  &.@{mk-prefix}-input-password-li {
    .li_border();
    &:focus,
    &:active,
    &:hover {
      .li_border_active();
    }
  }
}

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