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

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

.@{search-prefix-cls} {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 25px 30px;
  background-color: #fff;

  &-search-icon {
    position: absolute;
    top: 50%;
    left: 60px;
    z-index: 1;
    font-size: 34px;
    color: #ccc;
    transform: translate(0, -50%);
  }

  &-input {
    padding-left: 74px;
  }

  &-input-wrap {
    flex: auto;
    transition: all 0.15s;
  }

  &-cancel {
    margin-left: 26px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 32px;
    font-weight: 400;
    line-height: 45px;
    color: rgba(51, 51, 51, 1);
    white-space: nowrap;
  }

  &-mask {
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: ~'@{search-prefix-cls}-fadeIn' 1s linear forwards;
  }
}

@keyframes ~'@{search-prefix-cls}-fadeIn' {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
