@import "var";

@componentsGap: 16px;

.@{prefixName}-index {
  height: 100%;

  &__inner {
    height: 100%;
  }

  &__scroll-view {
    height: 100%;
    padding-top: 8px;
    box-sizing: border-box;
  }

  &__mark {
    font-size: 0;
    height: 0;
  }

  &__group {
    margin-bottom: 10px;
  }

  &__abbreviation {
    position: fixed;
    right: 10px;
    top: 50%;
    color: @indexedListTextColor;
    line-height: 1.75;
    text-align: center;
    transform: translateY(-50%);
		font-size: 12px;

		&-mask {
			position: absolute;
			left: -50px;
			width: 50px;
			height: 40px;
			font-size: 16px;
			margin-top: -8px;
			line-height: 40px;
			font-weight: bold;
			text-align: center;
			box-sizing: border-box;
			border-radius: 4px;
			background-color: @indexedListBgColor;
			z-index: 9;
			display: none;

			&::after {
				position: absolute;
				display: block;
				content: '';
				border: 8px solid transparent;
				border-left-color: @indexedListBgColor;
				width: 0;
				height: 0;
				top: 50%;
				margin-top: -8px;
				left: 100%;
			}
		}

    &-item {
      padding-left: 10px;
      padding-right: 10px;

      &.is-active {
				color: @indexedListThemeColor;

				.@{prefixName}-index {
					&__abbreviation-mask {
						display: block;
					}
				}

        & + & {
          color: @indexedListTextColor;
        }
      }
    }
  }
}
