.steps-vertical() {
  display: block;
  .@{steps-prefix-cls}-item {
    display: block;
    overflow: visible;
    &-icon {
      float: left;
      margin-right: 10px;
    }
    &-content {
      display: block;
      min-height: 48px;
      overflow: hidden;
    }
    &-title {
      line-height: @steps-icon-size;
      display: inline-block;
      padding-right: 0px;
      margin-right: 20px;
    }
    &-description {
      padding-bottom: 12px;
      display: inline-block;
    }
  }

  > .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-tail {
    position: absolute;
    top: 0;
    left: 14px;
    width: 2px;
    // height: 100%;
    height: calc(100% - 28px);
    padding: @steps-icon-size 0 6px;//  + 6px
    &::before {
      width: 2px;
      height: 50%;
      display: inline-block;
      border-radius: 2px;
      -webkit-transition: background 0.3s;
      transition: background 0.3s;
      content: '';
    }
    &::after {
      width: 2px;
      height: 50%;
      display: inline-block;
      border-radius: 2px;
      -webkit-transition: background 0.3s;
      transition: background 0.3s;
      margin-top: -1px;
      margin-left: 0;
      content: '';
    }
  }

  > .@{steps-prefix-cls}-item:not(:last-child) > .@{steps-prefix-cls}-item-tail {
    display: block;
  }

  > .@{steps-prefix-cls}-item
    > .@{steps-prefix-cls}-item-content
    > .@{steps-prefix-cls}-item-title {
    &::after {
      display: none;
    }
  }

  &.@{steps-prefix-cls}-small {
    .@{steps-prefix-cls}-item-tail {
      position: absolute;
      top: 0;
      left: 12px;
      padding: @steps-small-icon-size + 6px 0 6px;
    }
    .@{steps-prefix-cls}-item-title {
      line-height: @steps-small-icon-size;
    }
  }
}

.@{steps-prefix-cls}-vertical {
  .steps-vertical;
  &-process > &-tail::before {
    background-color: @primary-color;
  }
}

@media (max-width: @screen-xs) {
  .@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
    .steps-vertical;
  }
}
