.ht-base-steps {
  .ivu-steps{
    .ivu-steps-head {
      background: none!important;
    }
  }
  &.ivu-steps-horizontal {
    //.ivu-steps-content {
    //  padding-left: 46px;
    //}

    .ivu-steps-title:after {
      background: @border-color-split;
    }

    .ivu-steps-status-finish {
      .ivu-steps-title:after {
        background: @primary-color;
      }
    }
  }

  //垂直步骤条
  &.ivu-steps-vertical {
    .ivu-steps-tail {
      padding: 34px 0 4px 0;
    }

    .ht-base-step:first-child {
      .ivu-steps-content {
        padding-left: 0;
      }
    }
  }

  .ht-base-step {
    &:first-child {
      .ivu-steps-content {
        padding-left: 36px;
      }
    }

    .ivu-steps-title {
      line-height: 24px;
      color: @sub-color;
      //background: none;
    }

    .ivu-steps-content {
      color: @disabled-color;
    }

    .ivu-steps-head-inner {
      width: 28px;
      height: 28px;
      line-height: 26px;
      border: 1px solid @border-color-base;

      .ivu-steps-icon.ivu-icon {
        font-size: 28px;
      }
    }

    &.ivu-steps-item.ivu-steps-status-wait {
      .ivu-steps-head-inner {
        span, .ivu-steps-icon {
          color: @disabled-color;
        }
      }
    }

    &.ivu-steps-item.ivu-steps-status-process {
      .ivu-steps-head-inner {
        border-color: @primary-color;
        background-color: @primary-color; //导致icon的有问题
      }

      .ivu-steps-title {
        color: @title-color;
      }

      .ivu-steps-content {
        color: @text-color;
      }
    }

    &.ivu-steps-item.ivu-steps-status-finish {
      .ivu-steps-head-inner {
        border-color: @primary-color;

        span, .ivu-steps-icon {
          color: @primary-color;
        }
      }
    }

    &.ivu-steps-item.ivu-steps-status-error {
      .ivu-steps-head-inner {
        border-color: @error-color;

        .ivu-steps-icon {
          color: @error-color;
        }
      }

      .ivu-steps-title {
        color: @error-color;
      }

      .ivu-steps-content {
        color: @error-color;
      }
    }

    //带图标
    &.ht-base-step.ivu-steps-custom {
      .ivu-steps-head-inner {
        .ivu-steps-icon {
          font-size: 24px;
          width: 24px;
          height: 24px;
          top: 4px;
        }
      }
    }

    &.ht-base-step.ivu-steps-status-process.ivu-steps-custom {
      .ivu-steps-head-inner {
        background-color: transparent;

        .ivu-steps-icon {
          color: @primary-color;
        }
      }
    }

  }

  //迷你
  &.ivu-steps-small {
    .ht-base-step {
      .ivu-steps-head-inner {
        width: 24px;
        height: 24px;
        line-height: 22px;

        .ivu-steps-icon.ivu-icon {
          font-size: 24px;
        }
      }
    }
  }

  //迷你垂直
  &.ivu-steps-vertical.ivu-steps-small {
    .ivu-steps-tail {
      left: 12px;
      padding: 28px 0 4px 0;
    }
  }
  &.ivu-steps-vertical{
    .ivu-steps-tail{
      padding: 28px 0 0 0;
      top: 3px;
      left: 14px;
    }
  }

  //点状
  &.ht-base-steps-dot{
    display: flex;
  }

  //指示器
  &.ht-base-steps-indicator{
    display: flex;
    .ht-base-step{
      flex: 1;
      height: 40px;
      background: @primary-1;
      margin-right: 16px;
      overflow: visible;
      line-height: 52px;
      .ivu-steps-head {
        background: none;
      }
      .ivu-steps-tail {
        i {
          height: 0;
        }
      }
      &:first-child{
       .ivu-steps-head{
         padding-left: 10px;
       }
      }

      .ivu-steps-main{
        .ivu-steps-title{
          background: none;
          &:after{
            height: 0;
          }
        }
      }
      .ivu-steps-head-inner{
        width: 24px;
        height: 24px;
        line-height: 22px;
        .ivu-icon{
          font-size: 24px;
        }
      }
      .ivu-steps-head,ivu-steps-main{
        vertical-align: baseline;
      }
      .ivu-steps-title{
        line-height: 40px;
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 0;
        width: 143px;
        height: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow:ellipsis;
        padding-right: 0;
      }
      &:before{
        content: '';
        height: 100%;
        border-top: 20px solid @primary-1;
        border-bottom: 20px solid @primary-1;
        border-left: 8px solid@white;
        position: absolute;
        left: -8px;
        top: 0;
        z-index: 999;
      }
      &:after{
        content: '';
        height: 100%;
        border-top: 20px solid@white;
        border-bottom: 20px solid@white;
        border-left: 8px solid @primary-1;
        position: absolute;
        right: -8px;
        top: 0;
        z-index: 999;
      }
      &.ivu-steps-status-wait{
        background: @background-color-base ;
        &:after{
          border-color: transparent transparent transparent #f5f5f5;
        }
        &:before{
          border-top-color: @background-color-base ;
          border-bottom-color: @background-color-base ;
          border-left-color: transparent;
        }
        .ivu-steps-head-inner{
          border-color: @background-color-base;
          background-color: @white;
          span{
            color: @sub-color;
          }
        }
        .ivu-steps-title{
          color: @sub-color;
        }
      }
      &.ivu-steps-status-process{
        background: @primary-color;
        &:before {
          border-top-color: @primary-color;
          border-bottom-color: @primary-color;
          border-left-color: transparent;
        }
        &:after {
          border-color: transparent transparent transparent @primary-color;
        }
        .ivu-steps-head-inner{
          border-color: @white;
          background-color: @white;
          span{
            color: @primary-color;
          }
        }
        .ivu-steps-title{
          color: @white;
        }
      }
      &.ivu-steps-status-finish{
        .ivu-steps-head-inner{
          border-color: @primary-color;
          background-color: @primary-color;
          .ivu-icon{
            color: @white;
          }
        }
        .ivu-steps-title{
          color: @primary-color;
        }
      }
      &.ivu-steps-custom{
        .ivu-steps-head-inner{
          background: transparent;
          line-height: 40px;
          .ivu-icon{
            top: -2px;
          }
        }
        &.ivu-steps-status-finish{
          .ivu-steps-head-inner{
            .ivu-icon{
              color: @primary-color;
            }
          }
        }
        &.ivu-steps-status-process{
          .ivu-steps-head-inner{
            .ivu-icon{
              color: @white;
            }
          }
        }
      }
    }
    &.ivu-steps-horizontal {
      .ivu-steps-item:not(:first-child) {
        .ivu-steps-head {
          padding-left: 20px;
        }
      }
    }
  }
}


