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

.tuleap-artifact-modal-followups {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 35%;
    padding: var(--tlp-medium-spacing);
    overflow-y: auto;
    border-left: 1px solid var(--tlp-neutral-normal-color);
    background: var(--tlp-white-color);
}

.tuleap-artifact-modal-followups-title {
    flex: 0 0 auto;
    order: 0;
    cursor: default;
}

.tuleap-artifact-modal-followups-title-icon {
    margin: 0 5px 0 0;
}

.tuleap-artifact-modal-followups-comments {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    order: 1;
    width: 100%;

    &.invert-order {
        order: 2;
    }
}

.artifact-modal-followups-add-form {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    order: 3;
    margin: var(--tlp-x-large-spacing) 0 0;

    &.invert-order {
        order: 1;
        margin: 0 0 var(--tlp-x-large-spacing);
    }
}

.tuleap-artifact-modal-followups-comments-empty {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    margin: var(--tlp-medium-spacing);
    color: var(--tlp-main-color-transparent-70);
    font-style: italic;
}

.tuleap-artifact-modal-followups-comment {
    margin: 0 0 var(--tlp-large-spacing);

    &:last-child {
        margin: 0;
    }

    a {
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.tuleap-artifact-modal-followups-comment-header {
    display: flex;
    margin: 0 0 var(--tlp-small-spacing);

    > .tlp-avatar {
        margin: 0 5px 0 0;
    }
}

.tuleap-artifact-modal-followups-comment-header-authors {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-around;
    font-size: 12px;

    &.multiple-authors > .tuleap-artifact-modal-followups-comment-header-author {
        flex-direction: row;

        > .tuleap-artifact-modal-followups-comment-header-time {
            margin: 0 0 0 5px;
        }
    }
}

.tuleap-artifact-modal-followups-comment-header-author {
    display: flex;
    flex-direction: column;
}

.tuleap-artifact-modal-followups-comment-content {
    font-size: 14px;
    line-height: 18px;

    p,
    ul,
    ol,
    a,
    blockquote {
        font-size: 14px;
        line-height: 18px;
    }

    img {
        max-width: 100%;
    }
}
