/**
 * Copyright (c) 2017-Present Enalean
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

@use "pkg:@tuleap/burningparrot-theme/css/includes/global-variables";

.sidebar {
    display: flex;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    flex-direction: column;
    width: global-variables.$sidebar-expanded-width;
    height: 100vh;
    background: var(--tlp-dark-color);
}

.sidebar-about {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    margin: var(--tlp-medium-spacing) 0 var(--tlp-small-spacing);
    padding: 0 var(--tlp-medium-spacing);
    cursor: pointer;

    &:hover {
        text-decoration: none;
    }

    > .sidebar-about-logo,
    .sidebar-about-logo-without-product-name {
        height: 20px;

        > .tuleap-logo {
            transition: fill ease-in-out 100ms;
            fill: var(--tlp-theme-orange);
        }
    }
}

.sidebar-about-logo-without-product-name {
    display: none;
}

.sidebar-copyright {
    margin: 0 var(--tlp-medium-spacing) var(--tlp-small-spacing);
    text-align: center;
}

.sidebar-about > .sidebar-about-version,
.sidebar-copyright,
.sidebar-copyright a {
    transition: color ease-in-out 100ms;
    color: var(--tlp-neutral-dark-color-transparent-40);
    font-size: 0.625rem;
    line-height: 0.875rem;
}

.sidebar-about:hover > .sidebar-about-version,
.sidebar-copyright a:hover {
    color: var(--tlp-white-color);
    text-decoration: none;
}

.sidebar-content-vertical-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tlp-dark-color-lighter-10) transparent;

    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--tlp-dark-color-lighter-10);
    }
}
