@import './QueryInput';

.scope-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: auto;

    &__title {
        display: flex;
        align-items: center;
    }

    &__container {
        flex: 0 0 auto;
        margin-top: 4rem;
        width: 49rem;
        max-width: 90%;
        position: relative;
    }

    &__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-style: solid none;
        border-width: 0.5px;
        border-color: $color-border;
        height: 2.5rem;

        &:first-child:not(:last-child),
        &:not(:last-child) {
            border-bottom-width: 0;
        }
    }

    &__link {
        display: flex;

        &-icon {
            margin-right: 0.25rem;
        }
    }

    &__section {
        margin-bottom: 1.75rem;

        &-header {
            margin-bottom: 0.125rem;
        }
        &-search {
            width: 100%;
            display: flex;
        }
    }

    &__repos {
        margin-top: 2rem;
    }

    &__input-scope {
        display: flex;
        align-items: center;
        padding: 0.25rem 0.5rem;
        background: #1c2736;
        border: 1px solid $color-border;
        border-right: 0;
        border-radius: 0.25rem 0 0 0.25rem;
        max-width: 200px;

        &-text {
            opacity: 0.5;
            max-width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    &__count {
        margin-top: 1rem;
    }

    &__show-more {
        margin-bottom: 2rem;
    }

    .query-input2__input {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

.theme-light {
    .scope-page {
        &__row {
            border-color: $color-light-border;
        }
        &__link {
            color: #2b3750;
        }
        &__input-scope {
            background: $color-light-bg-2;
            border-color: $color-light-border;
        }
    }
}
