DLN-Tile (Aufruf von Detailseite)
CODE
×
HTML
<div class='dln-tile i4'> <div class='dln-header i4'> <h4 class='i4'>Schweizer Vertretungen im Ausland</h4> <div class='close-icon' tabindex='0'></div> <div class='back-icon'></div> </div> <div class='menue-page i1x'> <a class='main-menue-sub i1'>Übersicht</a> </div> <div class='menue-page active'> <a class='main-menue-sub i9'>Visumsvorschriften</a> </div> <div class='menue-item i6'> <a class='main-menue-sub i8'>Über uns</a> </div> <div class='offcanvas-service-nav'> <a class='service-menue i1' href='#' role='listitem'>Kontakt</a> <a class='service-menue i3' href='#' role='listitem'>Startseite Kanton Bern</a> <div class='dln user-account'><span>Max Mustermann</span> <i class="login-dropdown-dln"> <a class="menue-item-dd v1" href="#"><span>Mein Profil</span></a> <a class="menue-item-dd v2" href="#"><span>Mein Postfach (3)</span></a> <a class="menue-item-dd v3" href="#"><span>Abmelden</span></a> </i></div> <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>
CSS
@media screen and (max-width: 1119px) { div.dln-tile.i4 { width:100%; } } @media screen and (max-width: 1119px) { div.dln-tile { width:100%; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } } @media screen and (max-width: 767px) { div.dln-tile { padding-left: 30px; padding-right: 30px; } } div.menue-item:hover::after, div.menue-item:focus::after, div.menue-item:active::after { -webkit-transform: translate(18px); transform: translate(18px); } div.menue-item:hover > a.main-menue-sub::after, div.menue-item:focus > a.main-menue-sub::after, div.menue-item:active > a.main-menue-sub::after { transform: scaleX(1); } div.menue-page:hover > a.main-menue-sub::after, div.menue-page:focus > a.main-menue-sub::after, div.menue-page:active > a.main-menue-sub::after { transform: scaleX(1); } div.menue-item { padding-top: 11px; padding-bottom: 10px; width:100%; position:relative; margin-bottom: 3px; display: flex; align-items: center; } div.menue-item:after { content: ' '; position: absolute; width: 20px; height: 50px; right: 0; background-image: url(../img/arrow-right_large.svg); background-size: 12px 18px; background-position: center left; background-repeat: no-repeat; transition: all 250ms ease-in-out; transform: translate(0px); -webkit-transform: translate(0px); } a.main-menue-sub { color: rgba(0,0,0,1); font-family: 'Roboto'; font-style: normal; font-weight: 300; font-size: 18px; line-height: 21px; letter-spacing: 0.01rem; word-spacing: 0.025rem; text-decoration:none !important; display:inline-block; max-width: calc(100% - 60px); width: auto; margin-top: 5px; white-space: normal; } a.main-menue-sub:after { display: block; content: ''; height: 1px; margin-top: 4px; background-color: #000; transform: scaleX(0); transition: all 100ms ease-in-out; } div.menue-item:hover::after, div.menue-item:focus::after, div.menue-item:active::after { -webkit-transform: translate(18px); transform: translate(18px); } div.menue-item:hover > a.main-menue-sub::after, div.menue-item:focus > a.main-menue-sub::after, div.menue-item:active > a.main-menue-sub::after { transform: scaleX(1); } @media screen and (max-width: 1119px) { div.offcanvas-service-nav { display:block; max-width: none; margin-bottom: 36px; } } 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.main-menue-sub.i9 { color: var(--red); font-family: 'Roboto'; font-style: normal; font-weight: 500; } div.close-icon { background-image: url('../img/close-icon.svg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: auto; width: 24px; height: 24px; -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out; cursor:pointer; } div.back-icon { background-image: url('../img/go-back.svg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: auto; -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out; width: 32px; height: 32px; } div.dln.user-account { position:relative; height: 20px; line-height: 1.3; margin: 0 calc(0.25vw + 15px) 0 calc(0.25vw + 15px); display:inline-block; border:none; 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); } div.dln-header.i4 > h4.i4 { position: absolute; bottom: 8px; } div.dln-header.i4 > div.close-icon { position: absolute; top: 30px; right: -4px; } div.dln-header.i4 > div.back-icon { display: none; position: absolute; top: 26px; left: -1px; } div.offcanvas-service-nav > a.service-menue.i1 { display: table; margin-bottom: 30px; margin-right: 0px; margin-left: 0px; } div.offcanvas-service-nav > a.service-menue.i3 { display: table; margin-bottom: 30px; margin-right: 0px; margin-left: 0px; } div.offcanvas-service-nav > div.language-selector { display: block; margin-top: 74px; margin-bottom: 0px; margin-right: 0px; margin-left: -7px; } div.close-icon:hover, div.close-icon:focus { -webkit-transform: scale(1.68); -ms-transform: scale(1.68); transform: scale(1.68); } div.back-icon:hover, div.back-icon:focus { -webkit-transform: scale(1.5); -ms-transform: scale(1.5); transform: scale(1.5); } div.dln.user-account:before { background-image: url('../img/logout.svg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: auto; } 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) { h4.i4 { font-size: 24px; line-height: 28px; } div.dln-header.i4 > div.back-icon { display: block; } } @media screen and (max-width: 767px) { div.offcanvas-service-nav > div.language-selector { margin-left: -14px; } } div.dln.user-account { display: table; position: relative; margin-bottom: 0; margin-right: -25px; margin-left: -25px; width: calc(100% + 50px); padding: 15px 25px 18px 48px; margin-top: -15px; cursor: pointer; } div.dln.user-account::before { width: 21px; height: 19px; content: " "; position: absolute; left: 24px; background-size: 21px 19px; background-repeat: no-repeat; } div.dln.user-account > span { border-bottom: 2px solid rgba(234,22,31,1); } div.dln.user-account:hover > span, div.dln.user-account:focus > span { border-bottom: 2px solid #000; } div.dln.user-account.open { background-color: #FCF8F3; font-weight: 500; padding-bottom: 5px; } .login-dropdown-dln { background-color: #FCF8F3; display: none; } .login-dropdown-dln.open { background-color: #FCF8F3; display: block; width: 100%; margin: 0; padding-top: 15px; } .login-dropdown-dln.open > a { 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); width: 100%; min-width: auto; margin: 0; padding: 15px 0; height: fit-content; } .login-dropdown-dln.open > a::before { width: 9px; height: 15px; right: 16px; top: 16px; } .login-dropdown-dln.open > a:hover::before, .login-dropdown-dln.open > a:focus::before{ right: 8px; } 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); } a.main-menue-sub { color: var(--black); font-family: 'Roboto'; font-style: normal; font-weight: 300; font-size: 18px; line-height: 21px; letter-spacing: 0.01rem; word-spacing: 0.025rem; text-decoration:none; display:inline-block; max-width: calc(100% - 35px); width: auto; margin-top: 5px; white-space: normal; } a.main-menue-sub:after { display: block; content: ''; height: 2px; margin-top: 2px; background-color: #000; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); transition: all 100ms ease-in-out; } h4 { margin: 0 0 12px -1px; max-width: 800px; font-family: 'Roboto'; font-style: normal; font-weight: 300; letter-spacing: 0.01rem; word-spacing: 0.025rem; color: var(--black); font-size: 24px; line-height: 28px; margin-left: -1px; } @media screen and (max-width: 1119px) { h4 { margin-left: 0px; } } @media screen and (max-width: 767px) { h4 { font-size: 21px; line-height: 25px; margin-left: 0px; } }
JS
DLN-Tile (Aufruf von Detailseite)
×
Schweizer Vertretungen im Ausland
Übersicht
Visumsvorschriften
Über uns
Kontakt
Startseite Kanton Bern
Max Mustermann
Mein Profil
Mein Postfach (3)
Abmelden
DE
|
FR
|
EN