@import './global.less';
.k-input-wp {
  position: relative;
  display: inline-block;
  width: 100%;
  .k-input {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    width: 100%;
    height: 30px;
    padding: 4px 7px;
    line-height: 1.5;
    font-size: 12px;
    border: 1px solid #dddee1;
    color: @333;
    background-color: #fff;
    background-image: none;
    cursor: text;
    transition: border .2s ease-in-out, background-color .2s ease-in-out, box-shadow .2s ease-in-out;
    border-radius: 2px;
    &:focus {
      // box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
      box-shadow: 0 0 3px fade(@main, 30%);
      border-color: @lightBlue;
    }
    &:disabled {
      border: 1px solid @ccc;
      background: #eee;
      cursor: not-allowed;
    }
  }
  .k-textarea {
    font-family: "微软雅黑";
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    font-size: 14px;
  }
  [class^="icon"] {
    position: absolute;
    top: 1px;
    right: 1px;
    height: 28px;
    line-height: 28px;
    width: 28px;
    text-align: center;
    font-size: 16px;
    color: #999;
    z-index: 1;
    &+.k-input {
      padding-right: 30px;
    }
  }
  .y-input-tag-icon{
    font-size: 12px;
    background: #eee;
  }
}

.k-input-icon-left {
  [class^="icon"] {
    left: 0;
    &+.k-input {
      padding-left: 32px;
      padding-right: 0;
    }
  }
}

.k-input-clearable {
  position: absolute;
  top: 50%;
  right: 6px;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  color: #aaa;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  &::before {
    display: inline-block;
    height: 16px;
    line-height: 13px;
    font-size: 12px;
    vertical-align: middle;
    // position: absolute;
    // left: 0;
    // top: 0;
    // color: #999;
    // width: 100%;
  }
  &:hover {
    background: #DADADA;
    // &::before {
    //   font-size: 12px;
    // }
  }
}
.k-input-area-wrap{
  position: relative;
}
.k-input-limit{
  position: absolute;
  left: 0;
  margin-top: 3px;
  color: @999;
  font-size: 12px;
  -webkit-transform: scale(0.84,0.84);
  *font-size: 10px;
}
/*.k-input-mini {
  line-height: 25px;
  .k-input {
    padding: 2px 7px;
    height: 25px;
  }
  .k-input-clearable {
    text-align: center;
    top: 0;
    right: 0;
    height: 25px;
    line-height: 25px;
    width: 25px;
    &::before {
      font-size: 12px;
    }
  }
  [class^="icon"] {
    height: 26px;
    line-height: 26px;
    width: 26px;
    font-size: 16px;
    &+.k-input {
      padding-right: 26px;
    }
  }
} */