.steps-vertical() {
  display: block;
  .@{steps-prefix-cls} {
    &__icon {
      float: left;
      margin-right: 16px;
    }
    &__content {
      min-height: 48px;
      overflow: hidden;
      display: block;
    }
    &__title {
      line-height: @steps-icon-size;
    }
    &__description {
      padding-bottom: 12px;
    }
    &__item {
      display: block;
      overflow: visible;
    }
  }

  > .@{steps-prefix-cls}__item > .@{steps-prefix-cls}__tail {
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 1px;
    padding: @steps-icon-size + 6px 0 6px;
    &:after {
      height: 100%;
      width: 1px;
    }
  }

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

  > .@{steps-prefix-cls}__item > .@{steps-prefix-cls}__content > .@{steps-prefix-cls}__title {
    &:after {
      display: none;
    }
  }

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

.@{steps-prefix-cls}_vertical {
  .steps-vertical;
}

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