@import "./common/var.scss";

.vl-input {
  display: inline-block;
  position: relative;

  &__control {
    height: 34px;
    width: 100%;
    line-height: 34px;
    border-radius: $borderRadius;
    border: 1px solid $borderColor;
    font-size: 14px;
    background: none;
    outline: none;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  &__disabled {
    background: #f5f7fa;
    border-color: #e4e7ed;
    color: #c0c4cc;
    cursor: not-allowed;
  }

  .has-prefix {
    padding-left: 30px;
  }
  .has-suffix {
    padding-right: 30px;
  }
  .prefix-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: auto;
    top: 50%;
    width: 30px;
    transform: translateY(-50%);
  }
  .suffix-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: auto;
    right: 0;
    top: 50%;
    width: 30px;
    transform: translateY(-50%);
  }
}
