@import './variables.scss';

@mixin colorBtn($color) {
  background: $color;

  &:hover {
    color: $color;

    &:before,
    &:after {
      background: $color;
    }
  }
}

.custom-btn{
  outline: none;
  cursor: pointer;
}

.line-btn {
  @extend .custom-btn;
  width: 88px;
  height: 28px;
  border-radius: 5px;
  font: 400 14px PingFangSC-Regular, PingFang SC;
}

.blue-btn{
  @extend .line-btn;
  border: none;
  color: #fff;
  background-color: #1890ff;

  &:hover {
    color: #fff;
  }
}

.light-blue-btn {
  @include colorBtn($light-blue)
}

.gray-btn {
  @extend .line-btn;
  border: 1px solid #ddd;
  color: #999;
  background-color: #eee;
}

.red-btn {
  @include colorBtn($red)
}

.pink-btn {
  @include colorBtn($pink)
}

.green-btn {
  @include colorBtn($green)
}

.tiffany-btn {
  @include colorBtn($tiffany)
}

.yellow-btn {
  @include colorBtn($yellow)
}

.pan-btn {
  font-size: 14px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  outline: none;
  transition: 600ms ease all;
  position: relative;
  display: inline-block;

  &:hover {
    background: #fff;

    &:before,
    &:after {
      width: 100%;
      transition: 600ms ease all;
    }
  }

  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: 400ms ease all;
  }

  &::after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
  }
}


