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

@use "../../../common/css/platform-banner/platform-banner";

.platform-banner {
    box-sizing: border-box;
}

// stylelint-disable selector-no-qualifying-type
body.has-visible-project-banner .platform-banner {
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 10%);
}
// stylelint-enable

@mixin override-navbar-important-definitions($button-color) {
    border: 0 !important;
    background: $button-color !important;

    &:hover,
    &:hover:not(.btn-link, :disabled) {
        background: $button-color !important;
    }
}

.platform-banner-navbar-button {
    width: 40px;
    padding: 0;
    border-radius: 50%;

    &.btn-danger {
        @include override-navbar-important-definitions(var(--tlp-danger-color));
    }

    &.btn-warning {
        @include override-navbar-important-definitions(var(--tlp-warning-color));
    }

    &.btn-info {
        @include override-navbar-important-definitions(var(--tlp-info-color));
    }
}
