@import './index';
@import './mixin';

@input-affix-margin: 8px;

.@{ant-prefix}-input {
  &-affix-wrapper {
    .input();
    display: inline-flex;

    &-disabled {
      .@{ant-prefix}-input[disabled] {
        background: transparent;
      }
    }

    > input.@{ant-prefix}-input {
      padding: 0;
      border: none;
      outline: none;

      &:focus {
        box-shadow: none;
      }
    }

    &::before {
      width: 0;
      visibility: hidden;
      content: '\a0';
    }
  }

  &-prefix,
  &-suffix {
    display: flex;
    flex: none;
    align-items: center;
  }

  &-prefix {
    margin-right: @input-affix-margin;
  }

  &-affix-wrapper-lg {
    .@{ant-prefix}-input-prefix {
      margin-right: 12px;
    }
  }
  &-affix-wrapper-md {
    .@{ant-prefix}-input-prefix {
      margin-right: 8px;
    }
  }
  &-affix-wrapper-sm {
    .@{ant-prefix}-input-prefix {
      margin-right: 6px;
    }
  }

  &-suffix {
    margin-left: @input-affix-margin;
  }
}
