.nut-elevator {
  position: relative;
  display: flex;
  width: 100%;

  &-list {
    position: relative;
    top: 0;
    display: flex;
    width: 100%;
    overflow: hidden;

    &-inner {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      width: 100%;
      background-color: $elevator-list-bg-color;
      /* #ifndef dynamic*/
      overflow: auto;
      /* #endif */
    }

    &-item {
      display: flex;
      &-sublist {
        display: flex;
        flex-direction: column;
      }
      &-code {
        display: flex;
        align-items: center;
        height: $elevator-list-item-code-height;
        font-size: $elevator-list-item-code-font-size;
        color: $elevator-list-item-code-color;
        font-weight: $elevator-list-item-code-font-weight;
      }

      &-name {
        display: flex;
        align-items: center;
        height: $elevator-list-item-name-height;
        font-size: $elevator-list-font-size;
        color: $elevator-list-color;

        &-highcolor {
          color: $color-primary;
          font-weight: 600;
        }
      }
    }

    &-fixed {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      width: 100%;
      padding: $elevator-list-item-padding;
      height: $elevator-list-item-code-height;
      box-sizing: border-box;
      box-shadow: $elevator-list-fixed-box-shadow;
      background-color: $elevator-list-fixed-bg-color;
      &-title {
        font-size: $elevator-list-item-code-font-size;
        color: $elevator-list-fixed-color;
        font-weight: $elevator-list-item-code-font-weight;
      }
    }
  }

  &-code-current {
    position: absolute;
    right: $elevator-list-item-code-current-right;
    top: $elevator-list-item-code-current-top;
    transform: $elevator-bars-transform;
    display: flex;
    align-items: center;
    justify-content: center;
    width: $elevator-list-item-code-current-width;
    height: $elevator-list-item-code-current-height;
    border-radius: $elevator-list-item-code-current-border-radius;
    background: $elevator-list-item-code-current-bg-color;
    box-shadow: $elevator-list-item-code-current-box-shadow;
    color: $elevator-list-item-code-current-color;
  }

  &-bars {
    position: absolute;
    right: $elevator-bars-right;
    top: $elevator-bars-top;
    transform: $elevator-bars-transform;
    z-index: $elevator-bars-z-index;

    &-inner {
      display: flex;
      flex-direction: column;
      &-item {
        /* #ifdef dynamic*/
        display: flex;
        /* #endif */
        /* #ifndef dynamic*/
        display: inline-flex;
        /* #endif */
        align-items: center;
        justify-content: center;
        height: scale-px(16px);
        width: scale-px(16px);
        border-radius: 50%;
        margin: scale-px(1px) 0;
        color: $elevator-bars-color;
        font-size: $elevator-bars-font-size;
        cursor: pointer;
        &-active {
          font-weight: $font-weight-bold;
          color: $elevator-bars-active-color;
          /* #ifndef weapp jd*/
          background: linear-gradient(
            to right,
            $color-primary-stop-1,
            $color-primary
          );
          /* #endif */
          /* #ifdef weapp jd*/
          background: $color-primary;
          /* #endif */
        }
      }
    }
  }
  &-horizontal {
    .nut-elevator-list-item {
      &-code {
        width: $elevator-list-item-code-width;
        justify-content: center;
      }
    }
  }
  &-vertical {
    .nut-elevator-list-item {
      flex-direction: column;
      &-code {
        border-bottom: $elevator-list-item-code-border-bottom;
      }
      &-name,
      &-code {
        padding: $elevator-list-item-padding;
      }
    }
  }
}

[dir='rtl'] .nut-elevator,
.nut-rtl .nut-elevator {
  &-list {
    &-fixed {
      left: auto;
      right: 0;
    }
  }

  &-code-current {
    right: auto;
    left: $elevator-list-item-code-current-right;
  }

  &-bars {
    right: auto;
    left: $elevator-bars-right;
  }
}
