/**
 * Copyright (c) Enalean, 2020 - Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see http://www.gnu.org/licenses/.
 */

.gitlab-description {
    margin: 0;
}

.unlink-repository-gitlab {
    color: var(--tlp-danger-color);
}

.gitlab-administration-dropdown.tlp-dropdown-menu.tlp-dropdown-shown.tlp-dropdown-menu-on-icon {
    transform: translate(-13px, 4px);

    &[data-placement$="end"] {
        transform: translate(13px, 4px);
    }
}

.git-gitlab-icon {
    // This color is expected to not be dependent of the theme
    // It is the "Light Orange" described in the GitLab Brand Standards document
    // https://about.gitlab.com/handbook/marketing/corporate-marketing/brand-activation/brand-guidelines/
    color: #fca121;
}

.git-gitlab-icon-align-to-date {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.git-gitlab-integration-not-well-configured {
    margin: 0 0 0 var(--tlp-medium-spacing);
    color: var(--tlp-warning-color);
}

.gitlab-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--tlp-small-radius);
}

.default-gitlab-avatar {
    background-color: var(--tlp-background-color);
    color: var(--tlp-dimmed-color);
    text-align: center;
}

.gitlab-select-radio-button-container {
    width: 0;
}

.tlp-radio > .gitlab-select-radio-button {
    vertical-align: middle;
}

/* stylelint-disable-next-line selector-no-qualifying-type */
.tlp-table > tbody > tr > td.gitlab-select-avatar {
    width: 1.25rem;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.25rem;
    vertical-align: middle;
}

.fetch-gitlab-repositories-modal {
    width: max-content;
    min-width: 600px;
    max-width: 900px;
}

.gitlab-select-repository {
    cursor: pointer;

    .tlp-radio,
    .tlp-radio > input {
        cursor: pointer;
    }

    &.gitlab-select-repository-disabled {
        cursor: not-allowed;

        &.gitlab-select-radio-button-container,
        .gitlab-repository-name-namespace,
        .gitlab-avatar {
            opacity: 0.5;
        }

        .tlp-radio,
        .tlp-radio > input {
            cursor: not-allowed;
        }

        &.tlp-tooltip::before {
            opacity: 1;
        }
    }
}

.gitlab-repositories-list-table {
    margin: 0 0 var(--tlp-medium-spacing);
}

/* stylelint-disable-next-line selector-no-qualifying-type */
.tlp-table > tbody > tr > td.gitlab-repository-namespace {
    line-height: 1.2rem;
}

.gitlab-repository-path-namespace {
    display: block;
    color: var(--tlp-dimmed-color);
    font-size: 0.75rem;
}

.gitlab-tooltip-button-radio {
    &::before {
        top: -10px;
        left: 225px;
    }

    &::after {
        top: -10px;
        left: 225px;
    }
}

.gitlab-tooltip-avatar {
    &::before {
        top: 5px;
        left: 200px;
    }

    &::after {
        top: 5px;
        left: 200px;
    }
}

.gitlab-tooltip-name {
    &::before {
        left: 175px;
    }

    &::after {
        left: 175px;
    }
}

.gitlab-test-info-form-token-modal {
    width: min-content;
    min-width: 600px;
}
