/**
 * Copyright (c) Enalean, 2018-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/>.
 */

.tracker-form-element-artifactlink-section-loading-spinner {
    margin: 0 5px 0 0;
}

.tracker-form-element-artifactlink-tab-spinner {
    margin: 0 0 0 5px;
}

.tracker-form-element-artifactlink-renderer-async {
    height: 100px;
    background: url("@tuleap/burningparrot-theme/images/spinner.gif") no-repeat center center;

    &.loaded {
        height: auto;
        background: none;
    }
}

.tracker-form-element-artifactlink-add {
    margin-left: 20px;
}

.tracker-form-element-artifactlink-list {
    margin-bottom: 0;
    padding-top: 0;
}

.tracker-form-element-artifactlink-list-nav {
    margin: var(--tlp-small-spacing) 0 var(--tlp-medium-spacing);

    > li:not(.tracker-form-element-artifactlink-list-nav-label)
        + .tracker-form-element-artifactlink-list-nav-label {
        margin-left: 30px;
    }
}

/* stylelint-disable selector-no-qualifying-type */
body .nav-tabs > li.tracker-form-element-artifactlink-list-nav-label,
body .nav-tabs > li.tracker-form-element-artifactlink-list-nav-label:hover {
    padding: 10px 20px 10px 0;
    border: 2px solid transparent;
    box-shadow: none;
    color: #747474;
}
/* stylelint-enable */

/* stylelint-disable-next-line selector-no-qualifying-type, selector-class-pattern */
h5.artifack_link_subtitle {
    margin: 0;
    color: #606060;
}

.tracker-form-element-artifactlink-list > div {
    padding-top: 0;
}

.tracker-form-element-artifactlink-selector {
    vertical-align: middle;
}

.tracker-form-element-artifactlink-gototracker {
    font-size: 0.8em;
    text-align: right;
}

/* stylelint-disable-next-line selector-no-qualifying-type */
ul.tracker-form-element-artifactlink-list {
    margin-top: 0;
    padding-left: 0.5em;
    list-style-type: none;
}

.tracker-form-element-artifactlink-trackerpanel {
    > .table {
        margin: 0;
    }
}

.artifact-link-value-reverse {
    padding: var(--tlp-x-large-spacing) 0 0;
}

/* stylelint-disable-next-line selector-class-pattern */
.tracker_artifact_field {
    .artifact-link-value,
    .artifact-link-value-reverse {
        .tracker-form-element-artifactlink-trackerpanel h3 {
            font-size: 1em;
            font-weight: normal;
            line-height: 1.1em;
        }
    }
}
