/**
 * Copyright (c) Enalean, 2023 - 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 "pkg:@tuleap/mention";

$writing-zone-content-height: 254px;

.pull-request-comment-writing-zone-header {
    border-top-left-radius: var(--tlp-medium-radius);
    border-top-right-radius: var(--tlp-medium-radius);
    background: var(--tlp-fade-background-color);
}

.pull-request-comment-writing-zone-header-tabs {
    display: flex;
    margin: 0;
    padding: 0 0 0 var(--tlp-medium-spacing);
    cursor: pointer;
}

.pull-request-comment-writing-zone-header-tabs-spacer {
    flex: 1;
}

.pull-request-comment-writing-zone-textarea {
    width: 100%;
    padding: var(--tlp-medium-spacing);
    border: unset;
    font-size: 0.875rem;
    line-height: 1.375rem;
    resize: none;

    &:focus {
        border-color: unset;
        box-shadow: unset;
    }
}

.pull-request-comment-writing-zone-commonmark-preview {
    height: $writing-zone-content-height;
    padding: var(--tlp-medium-spacing);
    overflow: hidden scroll;
}
