Header (Application)
CODE
×
HTML
<div class='header-app sticky-header'> <a class='signet-application' href="#"> <img class='logo' alt='Logo des Kantons Bern' src='img/Kanton-Bern.svg'> <div class='logo-caption'>Applikationsname</div> </a> <div class='service-nav login' role='list'> <a class='service-menue i1' href='#' role='listitem'>Benutzungshinweise</a> <a class='service-menue login' href='#' role='listitem'>BE-Login</a> <div class='language-selector' role='list'><a href="#" role='listitem' class="language active">DE</a> <span>|</span> <a href="#" role='listitem' class="language" href="">FR</a> <span>|</span> <a href="#" role='listitem' class="language" href="">EN</a></div> </div> <div class='mobile-nav-2'> <a class='hamburger-icon'></a> </div> </div>
CSS
@media screen and (max-width: 1119px) { div.header-app.sticky-header { padding-top: 10px; height: 124px; margin-left: 30px; margin-right: 30px; width: calc(100% - 60px); } } @media screen and (max-width: 767px) { div.header-app.sticky-header { margin-left: 20px; margin-right: 20px; width: calc(100% - 40px); } } @media screen and (max-width: 1119px) { div.service-nav.login { display:none; } div.mobile-nav-2 { display:block; } } @media screen and (max-width: 767px) { div.mobile-nav-2 { top: 20px; } } a { color: var(--black); } a:hover, a:focus { color: var(--black); } img.logo { cursor:pointer; width: 150px; } div.language-selector { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size: 14px; line-height: 18px; color: var(--black); margin-left: calc(0.25vw + 8px); display:inline-block; } a.hamburger-icon { background-image: url('../img/hamburger-icon.svg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: auto; width: 32px; height: 32px; display:inline-block; float:right; } a.hamburger-icon:hover, a.hamburger-icon:focus { -webkit-animation-name: hvr-pop; animation-name: hvr-pop; -webkit-animation-duration: 0.7s; animation-duration: 0.7s; -webkit-animation-timing-function: linear; animation-timing-function: linear; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; } div.language-selector:after { display: block; content: ''; border-bottom: 2px solid #000; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: transform 100ms ease-in-out; transition: transform 100ms ease-in-out; } @media screen and (max-width: 1119px) { img.logo { width: 110px; } } a.service-menue { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: 0.01rem; word-spacing: 0.025rem; color: var(--black); display:inline-block; height: 20px; line-height: 1.3; margin: 0 calc(0.25vw + 15px) 0 calc(0.25vw + 15px); } a.service-menue:after { display: block; content: ''; border-bottom: 2px solid #000; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: transform 100ms ease-in-out; transition: transform 100ms ease-in-out; } a.service-menue { text-decoration: none !important; } a { color: var(--black); } a:hover, a:focus { color: var(--black); } div.logo-caption { font-size: 16px; line-height: 17px; letter-spacing: 0.01rem; word-spacing: 0.025rem; font-family: 'Roboto'; font-style: normal; font-weight: 400; color: var(--black); margin-top: 19px; max-width: 335px; } @media screen and (max-width: 1119px) { div.logo-caption { margin-top: 12px; max-width: 210px; font-size: 12px; line-height: 13px; letter-spacing: 0.01rem; word-spacing: 0.025rem; } }
JS
Header (Application)
Erstellt: 12.09.2024 - 16:48 Uhr
Letzte Änderung: 12.09.2024 - 17:00 Uhr
×
Applikationsname
Benutzungshinweise
BE-Login
DE
|
FR
|
EN