@import 'variables';

.@{stepsPrefixClass}-navigation {
  padding-top: 8px;
  &.@{stepsPrefixClass}-horizontal {
    .@{stepsPrefixClass}-item-description {
      max-width: @stepNavContentMaxWidth;
    }
  }

  .@{stepsPrefixClass}-item {
    box-sizing: border-box;
    text-align: center;
    overflow: visible;

    &-container {
      text-align: left;
      padding-bottom: 8px;
      outline: none;
    }

    &-title {
      max-width: @stepNavContentMaxWidth;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      &:after {
        display: none;
      }
    }

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

    &:after {
      content: '';
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 1px solid #ccc;
      border-bottom: none;
      border-left: none;
      transform: rotate(45deg);
      position: absolute;
      top: 50%;
      left: 100%;
      margin-top: -12px;
      margin-left: -8px;
    }

    &-active {
      .@{stepsPrefixClass}-item-container {
        padding-bottom: 5px;
        border-bottom: 3px solid @primary-color;
      }
    }
  }
}
