@import "../vars.less";

.hive-progress {

  &__message {
    color: @text-color-lighter-1;
  }

  &--type-bar {
    width: 210px;
    >div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      min-height: 20px;
    }
    .hive-progress {
      &__bar {
        flex: 1;
        background: #E9E9E9;
        height: @progress-height-default;
        border-radius: @progress-border-radius-default;
      }

      &__bar-inner {
        background: @primary-color;
        transition: width 0.3s;
        height: 100%;
        border-radius: inherit;
      }

      &__valuetext {
        flex: none;
        padding-left: 8px;
        font-size: 14px;
        width: 50px;
      }
    }
  }

  // circle
  &--type-circle {
    >div {
      display: inline-block;
      position: relative;
    }

    svg {
      display: block;

      path {
        transition: all 0.3s;

        &:first-child {
          stroke: #E9E9E9;
        }

        &:last-child {
          stroke: @primary-color;
        }
      }
    }

    .hive-progress {
      &__valuetext {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-size: 20px;
      }
      &__message {
        text-align: center;
      }
    }
  }

  &--size-default {
    &.hive-progress {
      &--type-circle {
        svg {
          width: 90px;
        }
      }
    }
  }

  &--size-large {
    &.hive-progress {
      &--type-circle {
        svg {
          width: 146px;
        }
        .hive-progress {
          &__valuetext {
            font-size: 32px;
          }
        }
      }

      &--type-bar {
        width: 300px;
        .hive-progress {
          &__bar {
            height: @progress-height-large;
            border-radius: @progress-border-radius-large;
          }
        }
      }
    }
  }

  &--inline {
    display: inline-block;
  }

  &--block&--type-bar {
    width: 100%;
  }
}
