.@{yee-steps-prefix-cls}-navigation {
  padding-top: 12px;

  &.@{yee-steps-prefix-cls}-small {
    .@{yee-steps-prefix-cls}-item {
      &-container {
        margin-left: -12px;
      }
    }
  }

  .@{yee-steps-prefix-cls}-item {
    overflow: visible;
    text-align: center;

    &-container {
      display: inline-block;
      height: 100%;
      margin-left: -16px;
      padding-bottom: 12px;
      text-align: left;
      transition: opacity 0.3s;

      .@{yee-steps-prefix-cls}-item-content {
        max-width: @yee-steps-nav-content-max-width;
      }

      .@{yee-steps-prefix-cls}-item-title {
        max-width: 100%;
        padding-right: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        &::after {
          display: none;
        }
      }
    }

    &:not(.@{yee-steps-prefix-cls}-item-active) {
      .@{yee-steps-prefix-cls}-item-container[role='button'] {
        cursor: pointer;
        &:hover {
          opacity: 0.85;
        }
      }
    }

    &:last-child {
      flex: 1;
      &::after {
        display: none;
      }
    }

    &::after {
      position: absolute;
      top: 50%;
      left: 100%;
      display: inline-block;
      width: 12px;
      height: 12px;
      margin-top: -14px;
      margin-left: -2px;
      border: 1px solid @yee-steps-nav-arrow-color;
      border-bottom: none;
      border-left: none;
      transform: rotate(45deg);
      content: '';
    }

    &::before {
      position: absolute;
      bottom: 0;
      left: 50%;
      display: inline-block;
      width: 0;
      height: 3px;
      background-color: @yee-steps-nav-active-color;
      transition:
        width 0.3s,
        left 0.3s;
      transition-timing-function: ease-out;
      content: '';
    }
  }

  .@{yee-steps-prefix-cls}-item.@{yee-steps-prefix-cls}-item-active::before {
    left: 0;
    width: 100%;
  }
}

@media (max-width: @yee-screen-xs) {
  .@{yee-steps-prefix-cls}-navigation {
    > .@{yee-steps-prefix-cls}-item {
      margin-right: 0 !important;
      &::before {
        display: none;
      }
      &.@{yee-steps-prefix-cls}-item-active::before {
        top: 0;
        right: 0;
        left: unset;
        display: block;
        width: 3px;
        height: calc(100% - 24px);
      }
      &::after {
        position: relative;
        top: -2px;
        left: 50%;
        display: block;
        width: 8px;
        height: 8px;
        margin-bottom: 8px;
        text-align: center;
        transform: rotate(135deg);
      }
      > .@{yee-steps-prefix-cls}-item-container > .@{yee-steps-prefix-cls}-item-tail {
        visibility: hidden;
      }
    }
  }
}
