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

.svn-homepage {
    width: 50%;
    padding: var(--tlp-medium-spacing);

    @media screen and (max-width: 1200px) {
        width: 100%;
    }
}

.svn-homepage-repository {
    position: relative;
    margin: 0 0 var(--tlp-medium-spacing);

    &:last-child {
        margin: 0;
    }
}

.svn-homepage-repository-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.svn-homepage-repository-date {
    display: block;
    margin: var(--tlp-medium-spacing) 0 0;
    font-size: 0.875rem;
}

.svn-homepage-repository-date-icon {
    margin: 0 4px 0 0;
}

.svn-homepage-repository-settings {
    position: absolute;
    top: var(--tlp-medium-spacing);
    right: var(--tlp-medium-spacing);
    transition: color ease-in-out 150ms;
    color: var(--tlp-dimmed-color-transparent-50);

    &:hover,
    &:focus {
        color: var(--tlp-dimmed-color);

        + .svn-homepage-repository-card {
            border-color: var(--tlp-main-color);
        }
    }
}

.svn-homepage-create-repository-button {
    margin: 0 0 0 var(--tlp-medium-spacing);
}
