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

.pull-request-files-header {
    display: flex;
    margin: 0 0 var(--tlp-medium-spacing);
}

.pull-request-file-switcher {
    flex: 1 1 auto;
    margin: 0 var(--tlp-small-spacing) 0 0;

    .fa-caret-down {
        margin: 0 0 0 10px;
    }
}

#file-switcher-dropdown-button {
    display: flex;
    align-items: center;

    .pull-request-file-changes {
        flex: 0 0 auto;
        width: auto;
    }
}

#file-switcher-dropdown-content {
    width: 100%;
    max-height: 280px;
    overflow-y: scroll;
}

.pull-request-file {
    display: flex;
    width: 100%;
}

.pull-request-file-selected {
    background-color: #f3f3f3;
}

.pull-request-file-status {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    font-weight: 600;
    text-align: center;

    /* stylelint-disable-next-line selector-class-pattern */
    &.pull-request-file-status-A {
        color: var(--tlp-success-color);
    }

    /* stylelint-disable-next-line selector-class-pattern */
    &.pull-request-file-status-M {
        color: var(--tlp-warning-color);
    }

    /* stylelint-disable-next-line selector-class-pattern */
    &.pull-request-file-status-D {
        color: var(--tlp-danger-color);
    }
}

.pull-request-file-path {
    flex: 1 1 auto;
    text-align: left;
}

.pull-request-file-changes {
    flex: 0 0 auto;
    width: 50px;

    &:not(.pull-request-file-show-changes) {
        visibility: hidden;
    }

    &.pull-request-file-lines-added {
        margin: 0 5px 0 0;
        text-align: right;
    }
}

.pull-request-modified-files-loading {
    height: 30px;
    margin: 0 0 var(--tlp-medium-spacing);
    background: url("../../../../../src/www/themes/BurningParrot/images/spinner.gif") no-repeat
        center center;
}
