@import "../../definitions"; // Topbar $mobile_topbar_height: 42px; $topbar_height: 49px; // Attention with following breakpoints: In logged in state there is an additional menu point $topbar_showswitches: 27em; // up to this breakpoint, the language and currency switches are shown as an select $topbar_showlabels: 43em; // up to this breakpoint only icons are displayed .header { background:#fff; padding-top:$mobile_topbar_height; @include responsive-md { padding-top:$topbar_height; } &__topbar { height:$mobile_topbar_height; @include responsive-md { height:$topbar_height; } background: $color-background-primary; position: fixed; z-index: 100; top: 0; left: 0; width: 100%; font-size:0.9rem; color:#000; .hamburger { float:left; padding: 9px 15px 9px 0; @include responsive-md { display:none; } } .hamburger-box { vertical-align:middle; } .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { background:#000; height:2px; width:30px; } .hamburger-inner::before { top:-7px; } .hamburger-inner::after { bottom:-7px; } > .container { height:100%; } } &__topmenus { float:right; display:flex; height:100%; } &__topmenu { @include resetList; float:left; display:flex; li { float:left; } a { color:#000; display:block; padding: 0.9em 1.6em; height:100%; &.active { font-weight: $font-weight-medium; } @media (min-width: $topbar_showlabels) { padding:1em 1.6em; } &.icon { font-size:0; &:before { content:' '; width: 16px; height:$mobile_topbar_height; display: inline-block; background-repeat: no-repeat; background-position: center; background-size: contain; vertical-align: baseline; margin: 0 15px; @media (min-width: $topbar_showlabels) { margin:0; height:1.5em; margin-right:0.5em; margin-bottom: -4px; } } &--rememberlist:before { background-image:url(/assets/icons/headericon_rememberlist.svg); } &--login:before { background-image:url(/assets/icons/headericon_login.svg); } &--logout:before { background-image:url(/assets/icons/headericon_logout.svg); } &--profile:before { background-image:url(/assets/icons/headericon_profile.svg); } &--help:before { background-image:url(/assets/icons/headericon_help.svg); } &--dropdown:before { background-image:url(/assets/icons/headericon_dropdown.svg); background-size:60%; } @media (min-width: $topbar_showlabels) { font-size:0.9rem; } } } /* Fallback-Styles für die Selects, für den Zeitraum bis styledInput geladen und initialisiert ist */ select { padding: 1.2em 3.5em 1.2em 1.3em; border: 0; height: 100%; background-image: url(/assets/icons/dropdown.svg); background-position: center right 1.6em; background-repeat: no-repeat; color:#000; font-size:0.9rem; margin-bottom:0; } a, .styledInput { @include smooth; &:hover, &.active { background: lighten($color-background-primary,3%); } } &--pages { background:#fff; a { &:hover, &.active { background: darken($color-background-primary,3%); } } } &--switches { } #header_openswitches { @media (min-width: $topbar_showswitches) { display:none; } } &_mobiledropdown { display:none; position: fixed; top: $mobile_topbar_height; background: #fff; box-shadow:2px 2px 3px rgba(0,0,0,0.5); &.open { display:block; } @media (min-width: $topbar_showswitches) { display:flex; position:relative; top:auto; margin-left:0; background: transparent; box-shadow:none; } } } .styledInput { display:block; float:left; > span { padding: 1em 1.5em; @include responsive-md { padding: 1.09em 1.5em; } &:after { right:1.5rem; } } } &__content { position:relative; margin-top: $gutter; margin-bottom: $gutter; @include responsive-md { margin-top:30px; margin-bottom:20px; } } &__logobox { img { height:40px; @include responsive-md { height:70px; } } } &__searchbox { position:relative; margin-top:1rem; @include responsive-md { margin-top:0; } form { position:relative; @include responsive-lg { margin-right: $gutter; } } input[type="text"] { padding-right:4rem; width:100%; text-overflow: ellipsis; } input[type="submit"] { position: absolute; right: 0; top: 0; background-color:transparent; background-image:url(/assets/icons/search.svg); background-position:center; background-repeat:no-repeat; background-size: 36%; width: 4rem; height: 100%; @include smooth; &:hover { opacity:0.5; } } } &__actions { white-space:nowrap; text-align:right; @include responsive-lg { margin-top:0; text-align:right; } } &__menucontainer { position: fixed; z-index:98; background: #fff; top: $mobile_topbar_height - 1px; left: 0; width: 100%; font-weight: $font-weight-medium; overflow:hidden; max-height:0; transition:max-height .2s ease; &.is-active { max-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; } @include responsive-md { position:relative; max-height:none; box-shadow:none; top:auto; margin-top:65px; height:auto !important; } } &__menuinner { padding:20px ($gutter/2); @include responsive-md { padding:0; } ul { @include resetList; line-height:230%; li { display:block; padding: $gutter 0; border-bottom: 1px solid $color-background-primary; &:first-child { padding-top: 0; } @include responsive-md { border: none; padding: 0; display:inline-block; } } } } &__menu { a { font-size:1.5rem; color: $color-secondary; @include responsive-md { font-size:1.3rem; } &:hover { color:$color-secondary-hover; } &.active { font-weight: $font-weight-bold; color:#000; + ul { max-height:2000px; transition:max-height .5s ease; } } } ul { max-height:0; overflow:hidden; padding-left:1rem; li { border: none; padding: $gutter/4 0; &:first-child { padding-top: $gutter/4; } } a { font-size:1.2rem; @include responsive-md { font-size:1rem; } } @include responsive-md { display:none; } } @include responsive-md { > li { > a { margin-right:2.8em; } &:last-child { > a { margin-right:0; } } } } } }