@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "./mixin";

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

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

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

  // https://github.com/dt-design/dt-design/issues/6144
  .@{dt-prefix}-input {
    min-height: 100%;  // use min-height, assume that no smaller height to override
  }
}
.dt-input-placeholder-span {
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  z-index: 2;
  line-height: 0;
  color: #999;
  left:@input-padding-horizontal-base;
  &.dt-input-placeholder-span-prefix{
    left:@input-padding-horizontal-base + @input-affix-width;
  }
}

@import "./search-input";
