$rate-prefix-cls: "#{$css-prefix}rate";

.#{$rate-prefix-cls} {
  display: inline-block;
  margin: $rate-margin;
  padding: $rate-padding;
  font-size: $rate-font-size;
  vertical-align: middle;
  font-weight: normal;
  font-style: normal;

  &-disabled &-star {
    &::before,
    &-content::before {
      cursor: default;
    }

    &:hover {
      transform: scale(1);
    }
  }

  &-star-full,
  &-star-zero {
    position: relative;
  }

  &-star-first {
    position: absolute;
    left: $rate-star-first-left;
    top: $rate-star-first-top;
    width: 50%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
  }

  &-star-first,
  &-star-second {
    user-select: none;
    transition: all 0.3s ease;
    color: $rate-star-first-color;
    cursor: pointer;
  }

  &-star-chart {
    display: inline-block;
    margin: $rate-star-chart-margin;
    padding: $rate-star-chart-padding;
    margin-right: $rate-star-chart-margin-right;
    position: relative;
    font-family: Ionicons, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
    transition: all 0.3s ease;

    &:hover {
      transform: scale(1);//***************************************************88

      //&-star-first, &-star-second {
      //    color: @rate-star-color;
      //}
    }
  }
  &-star-chart.#{$rate-prefix-cls}-star-full &-star-first, &-star-chart.#{$rate-prefix-cls}-star-full &-star-second {
    color: $rate-star-color;
  }
  &-star-chart.#{$rate-prefix-cls}-star-half &-star-first {
    opacity: 1;
    color: $rate-star-color;
  }

  &-star {
    display: inline-block;
    margin: $rate-star-margin;
    padding: $rate-star-padding;
    margin-right: $rate-star-margin-right;
    position: relative;
    font-family: iconfont, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
    transition: all 0.3s ease;

    &:hover {
      transform: scale(1.1);
    }

    &::before,
    &-content::before {
      color: $rate-star-before-color;
      cursor: pointer;
      content: "\e63b";
      transition: all $transition-time $ease-in-out;
      display: block;
    }

    &-content {
      position: absolute;
      left: 0;
      top: 0;
      width: 50%;
      height: 100%;
      overflow: hidden;

      &::before {
        color: transparent;
      }
    }

    &-half &-content::before,
    &-full::before {
      color: $rate-star-color;
    }

    &-half:hover &-content::before,
    &-full:hover::before {
      color: tint($rate-star-color, 20%);
    }
  }

  &-text {
    margin-left: $rate-text-margin-left;
    vertical-align: middle;
    display: inline-block;
    font-size: $font-size-small;
  }
}
