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

@use "./milestone";
@use "./loader";

.milestones {
    display: flex;
    flex-direction: column-reverse;
}

.milestones-load-closed {
    display: flex;
    flex: 1 1 auto;
}

.milestones-load-closed-link {
    margin: 50px auto;
    font-size: 14px;
}

.milestones-separator {
    position: relative;
    top: 20px;
    margin: 0 0 50px;
    color: var(--tlp-main-color-transparent-70);
    font-size: 0.9em;
    text-align: center;

    > span {
        padding: 10px;
        background: var(--tlp-background-color);
    }

    &::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        border-bottom: 1px solid var(--tlp-main-color-transparent-85);
    }
}

.milestones-loading {
    @extend %loader;
}

.no-open-milestones,
.no-closed-milestones {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 var(--tlp-medium-spacing);
    color: var(--tlp-main-color-transparent-70);
    font-size: 14px;
    text-align: center;
}

.no-milestone-image {
    margin: var(--tlp-medium-spacing) 0 10px;
    fill: var(--tlp-main-color-transparent-80);
}
