/**
 * 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/>.
 */

.git-repository-shortlog-container {
    display: flex;
    align-items: flex-start;
}

.git-repository-shortlog-search {
    width: 300px;
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.git-repository-shortlog-results {
    width: 100%;

    > .git-repository-shortlog-day {
        margin: var(--tlp-large-spacing) 0 var(--tlp-small-spacing);

        &:first-child {
            margin: 0 0 var(--tlp-small-spacing);
        }
    }
}

.git-repository-shortlog-pagination {
    margin: var(--tlp-medium-spacing);
}

.git-repository-shortlog-day {
    margin: var(--tlp-large-spacing) var(--tlp-medium-spacing) 0;
}

.git-repository-commit-card {
    display: flex;
    position: relative;
    align-items: center;

    &.git-repository-commit-selected-for-diff {
        border: 1px solid var(--tlp-main-color);
        border-radius: 0;
        box-shadow: inset 0 0 0 1px var(--tlp-main-color);

        &:hover {
            border: 1px solid var(--tlp-main-color);
        }

        > .selected-for-diff {
            display: block;
        }
    }
}

.selected-for-diff {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.git-repository-commit-card-avatar {
    flex: 0 0 auto;
    margin: 0 var(--tlp-small-spacing) 0 0;
}

.git-repository-commit-card-info-title {
    margin: 0 0 var(--tlp-small-spacing);
}

.git-repository-commit-card-info-description {
    color: var(--tlp-dimmed-color);
    font-size: 14px;
}

.git-repository-commit-card-hash {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.git-repository-commit-card-info {
    flex: 1 1 auto;
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.git-repository-commit-card-info-metadata {
    color: var(--tlp-dimmed-color);
    font-size: 14px;
    line-height: 20px;
}

.git-repository-commit-card-info-metadata-username,
.git-repository-commit-card-info-metadata-date {
    margin: 0 var(--tlp-small-spacing) 0 0;
}

.git-repository-commit-card-info-metadata-date-icon {
    margin: 0 3px 0 0;
}

@media screen and (max-width: 900px) {
    .git-repository-shortlog-container {
        flex-direction: column;
    }

    .git-repository-shortlog-search {
        width: 100%;
        margin: 0 0 var(--tlp-medium-spacing);
    }
}
