@import '../../style/theme/default.less';

@textarea-prefix-cls: ~'@{kui-prefix}-textarea';

.@{textarea-prefix-cls} {
  display: block;
  width: 100%;
  font-family: PingFangSC-Regular, PingFang SC;
  font-size: 32px;
  font-weight: 400;
  line-height: 44px;
  color: @text-color;
  text-align: justify;
  touch-action: manipulation;
  background-color: rgba(247, 247, 247, 1);
  -webkit-appearance: none;

  &::placeholder {
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 32px;
    font-weight: 400;
    line-height: 44px;
    color: rgba(153, 153, 153, 1);
  }

  &-wrap {
    position: relative;
    padding: 20px 20px;
    background-color: rgba(247, 247, 247, 1);
    border-radius: 8px;

    &-clear {
      padding-right: 70px;
    }

    &-pagination {
      padding-bottom: 70px;
    }
  }

  &-pagination {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
    color: #999;
    text-align: right;

    &-warning {
      color: @warning-color;
    }
  }

  &-clear-icon {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 100%;
    font-size: 30px;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.15s;
    transform: translateY(-50%);

    &-show {
      opacity: 1;
    }
  }
}
