@import '../symbols/SymbolIcon';

.repo-rev-sidebar-symbols {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;

    &-node {
        &__link {
            display: block;
            padding: 0.125rem 0.5rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: $secondary;
            &--active,
            &:hover {
                background-color: $color-bg-2;
            }
        }

        &__name {
            color: $color-text-2;
        }

        &__container-name {
            margin-left: 0.25rem;
        }

        &__path {
            &::before {
                content: ' – ';
            }
        }

        &__container-name,
        &__path {
            .theme-dark & {
                color: #566e9f;
            }
        }
    }
}

.theme-light {
    .repo-rev-sidebar-symbols {
        &-node {
            &__link {
                color: $color-light-text-2;
                &--active,
                &:hover {
                    background-color: $color-light-bg-3;
                }
            }

            &__name {
                color: $color-light-text-1;
            }
        }
    }
}
