circle.scss 2.3 KB
/*完整度环*/
.progress_wrap {
  position: relative;
  margin: 0 0 0 .14rem;
  width: .92rem;
  height: .92rem;

  &.little {

    .under {

      .rightcircle, .leftcircle {
        border-top: $ progress_border_under_little;
      }

      .rightcircle {
        border-right: $ progress_border_under_little;
      }

      .leftcircle {
        border-left: $ progress_border_under_little;
      }

    }
    .up {

      .rightcircle, .leftcircle {
        border-top: $ progress_border_up_little;
      }

      .rightcircle {
        border-right: $ progress_border_up_little;
      }

      .leftcircle {
        border-left: $ progress_border_up_little;
      }

    }
    .up_left_cover {
      width: .47rem;
      height: .92rem;

      .leftcircle {
        top: -.02rem;
        width: .74rem;
        height: .74rem;
        border: .11rem solid transparent;
        border-top: $ progress_border_up_left_cover_little;
        border-left: $ progress_border_up_left_cover_little;
        -webkit-transform: rotate(-191deg);
      }

    }
  }
  &
  .more {

    .under {

      .rightcircle, .leftcircle {
        border-top: $ progress_border_under;
      }

      .rightcircle {
        border-right: $ progress_border_under;
      }

      .leftcircle {
        border-left: $ progress_border_under;
      }

    }
    .up {

      .rightcircle, .leftcircle {
        border-top: $ progress_border_up;
      }

      .rightcircle {
        border-right: $ progress_border_up;
      }

      .leftcircle {
        border-left: $ progress_border_up;
      }

    }
  }
  .right, .left {
    position: absolute;
    top: 0;
    overflow: hidden;
    width: .46rem;
    height: .92rem;

    .circleProgress {
      position: absolute;
      top: 0;
      width: .78rem;
      height: .78rem;
      border: .07rem solid transparent;
      border-radius: 50%;
    }

    .rightcircle {
      right: 0;
      -webkit-transform: rotate(15deg);
    }

    .leftcircle {
      left: 0;
      -webkit-transform: rotate(-15deg);
    }

  }
  .right {
    right: 0;
  }

  .left {
    left: 0;
  }

  .num {
    position: absolute;
    left: 50%;
    top: 50%;
    width: .5rem;
    transform: translate(-50%, -50%);
    font-size: .12rem;
    color: $ public_auxiliary_col;
    text-align: center;
    line-height: .26rem;
  }

}