Hero-Area (Small Headlines)
CODE
×
HTML
<div class='hero-area-2'> <div class='image-2-small'> <div class='img-hero'></div> <div class='hero-img-teaser-small'><span class='teaser-label-white-small'>Label</span><h2 class="hero-area-small white">Hier soll eine passende Headline stehen</h2></div> </div> <div class='hero-area-right-col-2'> <div class='right-hero-teaser-small red'><span class='teaser-label-white-small'>Kanton Bern</span><h2 class="hero-area-small important">Dies ist eine längere zweizeilige Headline</h2></div> <div class='right-hero-teaser-small'><span class='teaser-label-small'>E-Service</span><h2 class="hero-area-small">Ausweise</h2></div> <div class='right-hero-teaser-small big'><span class='teaser-label-small'>Informationen</span><h2 class="hero-area-small">Abstimmungen, Wahlen und politische Geschäfte</h2></div> </div> <div class='hero-area-sub-2 clearfix'> <div class='sub-hero-teaser-small'><span class='teaser-label-small'>E-Service</span><h2 class="hero-area-small">Statistikportal</h2></div> <div class='sub-hero-teaser-small'><span class='teaser-label-small'>E-Service</span><h2 class="hero-area-small">Karten (Geoportal)</h2></div> <div class='sub-hero-teaser-small'><span class='teaser-label-small'>Kanton Bern</span><h2 class="hero-area-small">Stellenmarkt</h2></div> </div> </div>
CSS
@media screen and (max-width: 1119px) { div.hero-area-2 { margin-left: 30px; margin-right: 30px; } } @media screen and (max-width: 767px) { div.hero-area-2 { margin-left: 20px; margin-right: 20px; margin-bottom: 36px; } } span.teaser-label { display:block; font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size: 16px; line-height: 26px; letter-spacing: 0.01rem; word-spacing: 0.025rem; line-height: 125%; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; color: rgba(0,0,0,1); } span.teaser-label-white { display:block; font-family: 'Roboto'; font-style: normal; font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: 0.01rem; word-spacing: 0.025rem; line-height: 125%; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; color: rgba(255,255,255,1); } h2.hero-area-2 { font-size: 34px; line-height: 41px; font-family: 'Roboto'; font-style: normal; font-weight: 300; letter-spacing: 0.01rem; word-spacing: 0.025rem; color: rgba(0,0,0,1); position:absolute; left:0; bottom:0; overflow:hidden; text-overflow:ellipsis; margin-bottom: 30px; margin-left: 25px; width: calc(100% - 48px); } h2.hero-area-2.important { font-family: 'Roboto'; font-style: normal; font-weight: 400; color: rgba(255,255,255,1); margin-bottom: 30px; margin-left: 25px; } span.teaser-label-white { display:block; font-family: 'Roboto'; font-style: normal; font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: 0.01rem; word-spacing: 0.025rem; line-height: 125%; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; color: rgba(255,255,255,1); } h2.hero-area-2.white { font-family: 'Roboto'; font-style: normal; font-weight: 300; color: rgba(255,255,255,1); position:relative; margin-top: 24px; margin-right: 0; margin-bottom: 0; margin-left: 0; max-height: none; } @media screen and (max-width: 1119px) { div.hero-area-right-col-2 { clear:both; width: 100%; height: auto; } div.image-2-small { clear:both; width: 100%; height: auto; } } span.teaser-label-white { display:block; font-family: 'Roboto'; font-style: normal; font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: 0.01rem; word-spacing: 0.025rem; line-height: 125%; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; color: rgba(255,255,255,1); } h2.hero-area.white { font-family: 'Roboto'; font-style: normal; font-weight: 300; color: rgba(255,255,255,1); position:relative; margin-top: 24px; margin-right: 0; margin-bottom: 0; margin-left: 0; max-height: none; } .image-2:hover > .img-hero::before { opacity: 0; } div.clearfix:before { display:table-cell; } div.clearfix:after { position:-webkit-sticky;position:sticky; } .context-column + .clearfix { height: 15px; width: 100%; display: inline-block; } div.img-hero { -webkit-transition: transform 1800ms ease-in-out; transition: transform 1800ms ease-in-out; background-image: url('../img/bern-switzerland-shutterstock_1845136612.jpg_ecb4c93750.jpg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: cover; width: 100%; height: 623px; } div.sub-hero-teaser-small { cursor:pointer; background-color: rgba(247,233,210,1); float:left; position:relative; white-space:nowrap; -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out; margin-right: 17px; padding-top: 30px; padding-right: 25px; padding-bottom: 30px; padding-left: 25px; width: calc(33.3% - 11.34px); height: 143px; } div.right-hero-teaser-small.red { background-color: var(--red); max-width: 800px; } div.right-hero-teaser-small { background-color: rgba(247,233,210,1); cursor:pointer; position:relative; -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out; margin-bottom: 17px; padding-top: 27px; padding-right: 25px; padding-bottom: 27px; padding-left: 25px; width: 100%; height: 143px; } div.right-hero-teaser-small.big { white-space: normal; height: 303px; } div.hero-img-teaser-small { background-color: rgba(78,78,78,1); cursor:pointer; -webkit-transition: all 300ms ease-in-out; transition: all 300ms ease-in-out; padding-top: 28px; padding-right: 25px; padding-bottom: 28px; padding-left: 25px; width: calc(50% - 8.5px); min-height: 143px; } div.image-2-small > div.hero-img-teaser-small { position: absolute; bottom: 0px; left: 0px; } div.sub-hero-teaser-small:hover, div.sub-hero-teaser-small:focus { background-color: rgba(242,224,195,1); } div.right-hero-teaser-small.red:hover, div.right-hero-teaser-small.red:focus { background-color: var(--dark-red); } div.right-hero-teaser-small:hover, div.right-hero-teaser-small:focus { background-color: rgba(242,224,195,1); } div.hero-img-teaser-small:hover, div.hero-img-teaser-small:focus { background-color: rgba(64,64,64,1); } div.image-2-small:hover > div.img-hero, div.image-2-small:focus > div.img-hero { -webkit-transform: scale(1.03); transform: scale(1.03); } div.image-2-small:hover > div.hero-img-teaser-small, div.image-2-small:focus > div.hero-img-teaser-small { background-color:#404040; } div.sub-hero-teaser-small:last-of-type { margin-right: 0; } div.right-hero-teaser-small.red:last-of-type { margin-bottom: 0; } div.right-hero-teaser-small:last-of-type { margin-bottom: 0; } div.right-hero-teaser-small.big:last-of-type { margin-bottom: 0; } div.hero-img-teaser-small:last-of-type { margin-right: 0; } @media screen and (max-width: 1119px) { div.sub-hero-teaser-small { margin-bottom: 17px; width: 100%; } div.right-hero-teaser-small.big { white-space:nowrap; } div.hero-img-teaser-small { width: 100%; } div.hero-area-right-col-2 > div.right-hero-teaser-small.red { float: left; margin-right: 17px; width: calc(50% - 8.5px); } div.hero-area-right-col-2 > div.right-hero-teaser-small { float: right; width: calc(50% - 8.5px); } div.hero-area-right-col-2 > div.right-hero-teaser-small.big { clear: both; width: 100%; height: 143px; } } @media screen and (max-width: 767px) { div.img-hero { max-height: 64vh; } div.right-hero-teaser-small { padding-top: 25px; padding-right: 20px; padding-bottom: 25px; padding-left: 20px; } div.right-hero-teaser-small.big { white-space: normal; height: auto; } div.hero-img-teaser-small { padding-top: 25px; padding-right: 20px; padding-bottom: 25px; padding-left: 20px; min-height: auto; } div.hero-area-right-col-2 > div.right-hero-teaser-small.red { clear: both; margin-right: 0px; width: 100%; } div.hero-area-right-col-2 > div.right-hero-teaser-small { clear: both; width: 100%; } } div.right-hero-teaser-small { background-color: rgba(247,233,210,1); cursor:pointer; position:relative; -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out; margin-bottom: 17px; padding-top: 27px; padding-right: 25px; padding-bottom: 27px; padding-left: 25px; width: 100%; height: 143px; } div.right-hero-teaser-small:hover, div.right-hero-teaser-small:focus { background-color: rgba(242,224,195,1); } div.right-hero-teaser-small:last-of-type { margin-bottom: 0; } @media screen and (max-width: 767px) { div.right-hero-teaser-small { padding-top: 25px; padding-right: 20px; padding-bottom: 25px; padding-left: 20px; } } span.teaser-label { display:block; font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size: 16px; line-height: 26px; letter-spacing: 0.01rem; word-spacing: 0.025rem; line-height: 125%; margin-bottom: 15px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; color: rgba(0,0,0,1); } h2.hero-area { font-size: 34px; line-height: 41px; font-family: 'Roboto'; font-style: normal; font-weight: 300; letter-spacing: 0.01rem; word-spacing: 0.025rem; color: rgba(0,0,0,1); position:absolute; left:0; bottom:0; overflow:hidden; text-overflow:ellipsis; margin-bottom: 30px; margin-left: 25px; width: calc(100% - 48px); }
JS
Hero-Area (Small Headlines)
×
Label
Hier soll eine passende Headline stehen
Kanton Bern
Dies ist eine längere zweizeilige Headline
E-Service
Ausweise
Informationen
Abstimmungen, Wahlen und politische Geschäfte
E-Service
Statistikportal
E-Service
Karten (Geoportal)
Kanton Bern
Stellenmarkt