@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './mixin';

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

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

// Input with affix: prefix or suffix
.@{yee-prefix}-input-affix-wrapper {
  .yee-reset-component;
  .yee-input-affix-wrapper(~'@{yee-prefix}-input');
}

.@{yee-prefix}-input-password-icon {
  color: @yee-text-color-secondary;
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    color: #333;
  }
}

.@{yee-prefix}-input-clear-icon {
  .yee-clear-icon;
  vertical-align: 0;
}

.@{yee-prefix}-input-textarea-clear-icon {
  .yee-clear-icon;
  position: absolute;
  top: 0;
  right: 0;
  margin: 8px 8px 0 0;
}

@import './search-input';
