Newer
Older
padding-top: $bar-bottom-container-height;
background-color: var(--base-color);
color: var(--contrast-content-white);
border-bottom: 1px solid var(--brand-color-darker);
height: $bar-bottom-container-height;
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;
#site-title {
flex: 1;
color: var(--white);
margin-left: 0;
z-index: 1002;
line-height: $bar-bottom-container-height;
white-space: nowrap;
}
#header-links {
flex: 0 1 auto;
justify-self: flex-end;
> ul {
display: flex;
align-items: center;
justify-content: space-between;
list-style-type: none;
height: 40px;
> a {
color: var(--white);
margin: 0 6px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
#navigation-level-1 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;

Jan-Hendrik Willms
committed
justify-content: flex-start;

Jan-Hendrik Willms
committed
background-color: var(--color--main-navigation-background);
border-bottom: 1px solid var(--color--main-navigation-border);
box-sizing: border-box;
min-width: $site-width;
width: 100%;
height: $header-height;
z-index: 3;
&.studip-logo {
@include hide-text();
@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;
background-position: left;
display: block;
width: 130px;
margin-right: 30px;
#current-page-structure {
display: flex;
position: relative;
width: 100%;
min-width: $site-width;
flex-direction: column;
flex-wrap: nowrap;
align-content: stretch;
align-items: stretch;
justify-content: flex-start;
flex-grow: 1;
background-color: var(--color--main-navigation-background);

Jan-Hendrik Willms
committed
.colorblock {
display: inline-block;
vertical-align: middle;
width: 8px;
height: 48px;
}
.contextless & {
.colorblock {
width: 0;

Jan-Hendrik Willms
committed
color: var(--color--font-primary);

Jan-Hendrik Willms
committed
background-color: var(--color--main-navigation-background);
> .context-avatar {
margin: 0 5px 0 -6px;
vertical-align: top;
max-width: 36px;
max-height: 36px;
> .course-name {
font-weight: 700;
}
> .course-semester {
font-style: oblique;
}
}
.tabs_wrapper {
display: flex;
flex-direction: row;

Jan-Hendrik Willms
committed
background-color: var(--color--main-navigation-background);
color: var(--color--font-primary);
min-height: ceil($font-size-navigation2 * 2.25); // 16px * 2.25 = 36px

Jan-Hendrik Willms
committed
border-bottom: 1px solid var(--color--main-navigation-border);
padding-right: $page-margin;

Jan-Hendrik Willms
committed
#tabs {
transition: margin-left;
transition-duration: var(--transition-duration);
transition-delay: 500ms;
}
> ul {
flex: 1 1 auto;
#responsive-menu,
#site-title {
flex: 0 0 auto;
z-index: 2;
#avatar-menu-container {
display: inline-flex;
&.header_avatar_container {
align-items: end;
flex: 0;
}
#avatar-menu {
height: 30px;
margin: 0;
vertical-align: text-bottom;
z-index: 1003;
.action-menu-icon {
border: 1px solid var(--dark-gray-color-40);
background-color: var(--dark-gray-color-5);
height: 28px;
position: relative;
width: 28px;
z-index: 1;

Jan-Hendrik Willms
committed

Jan-Hendrik Willms
committed
// Add arrow on the right
@include icon(after, arr_1down, info_alt);

Jan-Hendrik Willms
committed
&::after {
background-position: center;
background-repeat: no-repeat;
position: absolute;
left: 100%;
top: 0;
}

Jan-Hendrik Willms
committed
#notification-container + & {
border-left: 0;
}
}

Jan-Hendrik Willms
committed

Jan-Hendrik Willms
committed
.action-menu-content {
position: absolute;
top: 41px;
right: 0;
background: var(--white);
box-shadow: 1px 1px 1px var(--dark-gray-color-60);
text-align: left;
white-space: nowrap;

Jan-Hendrik Willms
committed
a:link,
a:visited {
color: var(--base-color);
}
a:hover,
a:active {
color: var(--active-color);
}

Jan-Hendrik Willms
committed
div {
color: var(--black);
}
}
}
}
// Fix header covering relevant other areas
// $see https://gitlab.studip.de/studip/studip/-/issues/1019
html {
scroll-padding-top: calc($bar-bottom-container-height + 1em);