Skip to content
Snippets Groups Projects
header.scss 3.51 KiB
Newer Older
/* --- header.css ----------------------------------------------------------- */
    box-sizing: border-box;
    padding-top: $bar-bottom-container-height;
    background-color: $base-color;
    border: 1px $brand-color-darker;
    color: $contrast-content-white;
    border-bottom-style: solid;
    height: $bar-bottom-container-height;
    width: 100%;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;

    transform: translate(0, 0) !important; // We need !important due to the horizontal scroll handler
    position: fixed;
#responsive-menu,
#site-title {
    flex: 0 0 auto;
    z-index: 2;
}

// Fix header covering relevant other areas
// $see https://gitlab.studip.de/studip/studip/-/issues/1019
    scroll-padding-top: calc($bar-bottom-container-height + 1em);
    > ul > li > a {
        margin: 0 6px;
        text-decoration: none;
        &:hover {
            text-decoration: underline;
    flex: 0 1 auto;
    justify-self: flex-end;
    > ul {
        display: flex;
        align-items: center;
        justify-content: space-between;
        list-style-type: none;
        height: 40px;
        padding: 0;
        > li {
            margin: 2px;
            padding: 0 10px;
#avatar-menu-container {
    display: inline-flex;
}

    height: 30px;
    margin: 0;
    vertical-align: text-bottom;
    z-index: 1003;

    .action-menu-icon {
        border: 1px solid $dark-gray-color-40;
        background-color: $dark-gray-color-5;
        margin: 0 32px 0 0;
        position: relative;
        width: 28px;
        z-index: 1;

        img {
            height: 100%;
            width: 100%;
        }

        // Add arrow on the right
        @include icon(after, arr_1down, info_alt);

        &::after {
            background-position: center;
            background-repeat: no-repeat;
            padding: 7px 8px;
            position: absolute;
            left: 100%;
            top: 0;
        }
    }
}
.action-menu.avatar-menu {
    z-index: 1002;

    .action-menu-title{
        margin: 0 0 0.3em;
    }

    .action-menu-content {
        position: absolute;
        top: 41px;
        right: 0;

        /*padding: 4px 28px 4px 8px;*/
        background: $white;
        box-shadow: 1px 1px 1px $dark-gray-color-60;
        text-align: left;
        white-space: nowrap;

        a:link,
        a:visited {
            color: $base-color;
            color: $active-color;
            color: $black;
    align-items: end;
    flex: 0;
    color: $white;
    margin-left: 0;
    line-height: $bar-bottom-container-height;
    white-space: nowrap;
}

.studip-logo {
    @include hide-text();
    background-repeat: no-repeat;

    @include retina-background-image('logos/studip4-logo.png', 'logos/studip4-logo@2x.png', 130px, 92px);
    background-image: none, url("#{$image-path}/logos/studip4-logo.svg");

    background-size: 130px 92px;
    display: block;
    width: 130px;
    height: 81px;
}

    margin-left: 20px;
    margin-right: 12px;
}

#navigation-level-1 {
    background-color: $dark-gray-color-5;
    height: $header-height;