Newer
Older
/* --- header.css ----------------------------------------------------------- */
#layout_wrapper {
box-sizing: border-box;
padding-top: $bar-bottom-container-height;
background-color: $base-color;
border: 1px $brand-color-darker;
color: $contrast-content-white;
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;
z-index: 10000;
}
#barBottomLeft,
#barTopFont {
flex: 0 0 auto;
// Fix header covering relevant other areas
// $see https://gitlab.studip.de/studip/studip/-/issues/1019
scroll-padding-top: calc($bar-bottom-container-height + 1em);
#layout_footer,
#barBottomright {
> ul > li > a {
margin: 0 6px;
text-decoration: none;
&:hover {
}
}
}
#layout_footer {
> ul {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
list-style-type: none;
min-height: 30px;
margin-left: 2px;
margin-right: 2px;
}
}
}
#barBottomright {
flex: 0 1 auto;
justify-self: flex-end;
> ul {
display: flex;
align-items: center;
justify-content: space-between;
list-style-type: none;
height: 40px;
}
}
}
#barTopAvatar {
display: inline-flex;
}
#header_avatar_menu {
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;
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{
}
.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 {
}
a:hover,
a:active {
}
}
}
.header_avatar_container {
align-items: center;
}
#barTopFont {
flex: 1;
line-height: $bar-bottom-container-height;
white-space: nowrap;
}
.studip-logo {
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-top: -10px;
}
#barTopStudip {
margin-left: 20px;
margin-right: 12px;
}
#barTopLogo {
left: 0;
position: absolute;
top: 0;
}
#flex-header {
height: $header-height;
background-color: $dark-gray-color-5;
position: relative;
z-index: 3;
}
// Slide menu in header navigation
#barBottomLeft {
box-sizing: border-box;
overflow-x: hidden;
padding: 0;
text-indent: -150px;
@media not prefers-reduced-motion {
}
body.fixed {
#barBottomLeft {
overflow-x: visible;
padding: 0 15px;
text-indent: 0;
}
}