/**
 * 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 "./variables-common";

#logo {
    display: inline-block;
    flex: 0 0 auto;
    width: variables-common.$sidebar-width;
    max-width: variables-common.$sidebar-width;
    height: variables-common.$navbar-height;
    background: var(--tlp-main-color) url("/images/organization_logo.png") no-repeat center center;

    &.collapsed {
        width: variables-common.$sidebar-width-collapsed;
        max-width: variables-common.$sidebar-width-collapsed;
        background: var(--tlp-main-color) url("/images/organization_logo_small.png") no-repeat
            center center;
    }
}

.logo-svg-link {
    display: flex;
    align-items: center;
    height: variables-common.$navbar-height;
    margin: 0 0 0 var(--tlp-medium-spacing);

    > .logo-svg-normal > svg {
        width: auto;
        max-height: 34px;
    }
}

.logo-svg-fill-theme-color {
    fill: var(--tlp-main-color-lighter-15);
}

.logo-svg-fill-default-text-color {
    fill: var(--tlp-dark-color);
}

.logo-svg-normal {
    display: flex;
}

.logo-svg-small {
    display: none;
}

// stylelint-disable selector-no-qualifying-type
body.sidebar-collapsed {
    .logo-svg-link {
        justify-content: center;
        width: variables-common.$sidebar-width-collapsed;
        padding: 0;
    }

    .logo-svg-normal {
        display: none;
    }

    .logo-svg-small {
        display: flex;
    }
}
// stylelint-enable
