@import './var.less';

:root {
  --van-index-bar-sidebar-z-index: @index-bar-sidebar-z-index;
  --van-index-bar-index-font-size: @index-bar-index-font-size;
  --van-index-bar-index-line-height: @index-bar-index-line-height;
  --van-index-bar-index-active-color: @index-bar-index-active-color;
}

.van-index-bar {
  &__sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: var(--van-index-bar-sidebar-z-index);
    display: flex;
    flex-direction: column;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
  }

  &__index {
    padding: 0 var(--van-padding-xs) 0 var(--van-padding-md);
    font-weight: var(--van-font-weight-bold);
    font-size: var(--van-index-bar-index-font-size);
    line-height: var(--van-index-bar-index-line-height);

    &--active {
      color: var(--van-index-bar-index-active-color);
    }
  }
}
