/**
 * Copyright (c) Enalean, 2017-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 "variables-common";

// stylelint-disable selector-no-qualifying-type
body {
    padding: 0;

    &.widgetable {
        background: var(--tlp-background-color);
    }

    &.project-administration {
        background: var(--tlp-background-color);

        .content {
            padding: 0;
        }
    }

    > .wrapper {
        position: relative;
        min-height: 100%;
    }

    &.has-sidebar.sidebar-collapsed > .main {
        margin-left: variables-common.$sidebar-width-collapsed;
    }

    .main {
        margin: 0;
    }

    &.has-sidebar .main {
        margin: 0 0 0 variables-common.$sidebar-width;
    }

    &.search-page .main .content {
        padding: 0;
    }

    &.mediawiki .main .content {
        padding: 0;
    }

    &.account-maintenance .main .content {
        padding: 0;

        h3.account-title {
            font-size: 1.2em;

            i.help-button {
                vertical-align: initial;
            }
        }
    }
}
