@import '../base.scss';

.ss-step {
  position: relative;
  display: inline-block;
  margin-right: 12px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  &:last-child {
    flex: none;
    .ss-step-content-title::after{
      display: none;
    }
  }
}
.ss-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  margin-right: 12px;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
  border: 2px solid ;
  border-radius: 50%;
  transition: background .3s;
}
.ss-step-content {
  display: inline-block;
  .ss-step-content-title {
    display: inline-block;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    padding-right: 12px;
    &::after {
      content: "";
      position: absolute;
      top: 12px;
      left: 100%;
      display: block;
      width: 9999px;
      height: 1px;
      background-color: $textPlacehoider;
      transition: background .3s;
    }
  }
  .ss-step-content-desc {
    max-width: 200px;
    white-space: normal;
    font-size: 12px;
    font-weight: 400;
  }
}
.ss-step__process {
  .ss-step-icon {
    color: #ffffff;
    background-color: $mc;
    border-color: $mc;
  }
  .ss-step-content-title {
    color: $mc;
  }
  .ss-step-content-desc {
    color: $mc1;
  }
}
.ss-step__finish {
  .ss-step-icon {
    color: $mc;
    background-color: #ffffff;
    border-color: $mc;
  }
  .ss-step-content-title {
    color: rgba(0,0,0,.65);
    &::after {
      background-color: $mc1;
    }
  }
  .ss-step-content-desc {
    color: rgba(0,0,0,.45);
  }
}
.ss-step__wait {
  .ss-step-icon {
    color: $textPlacehoider;
    background-color: $white;
    border-color: $textPlacehoider;
  }
  .ss-step-content-title {
    color: $textSecondary;
  }
  .ss-step-content-desc {
    color: $textPlacehoider;
  }
}
.ss-step__error {
  .ss-step-icon {
    color: $ec;
    background-color: #ffffff;
    border-color: $ec;
  }
  .ss-step-content-title {
    color: $ec;
  }
  .ss-step-content-desc {
    color: $ec;
  }
}
.ss-steps__horizontal {
  .ss-step-tail {
    display: none;
  }
}
.ss-steps__vertical {
  .ss-step {
    display: block;
    &:last-child {
      .ss-step-tail {
        display: none;
      }
    }
  }

  .ss-step-tail {
    position: absolute;
    left: 16px;
    top: 0;
    padding: 38px 0 6px;
    width: 1px;
    height: 100%;
    &::after {
      content: "";
      display: inline-block;
      background: #e8e8e8;
      height: 100%;
      width: 1px;
      border-radius: 1px;
      transition: background .3s;
    }
  }
  .ss-step__finish {
      .ss-step-tail::after {
        background-color: $mc;
      }
    }
  .ss-step-content {
    .ss-step-content-title {
      &::after {
        display: none;
      }
    }
    .ss-step-content-desc {
      padding-bottom: 12px;
      max-width: none;
    }
  }
}
.ss-step-next-error {
  .ss-step-content {
    .ss-step-content-title::after {
      background-color: $ec;
    }
  }
  .ss-steps__vertical & .ss-step-tail::after {
    background-color: $ec;
  }
}
