Teaser in Hero-Image (small)
CODE
×
HTML
<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>
CSS
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.hero-img-teaser-small:hover, div.hero-img-teaser-small:focus { background-color: rgba(64,64,64,1); } div.hero-img-teaser-small:last-of-type { margin-right: 0; } @media screen and (max-width: 1119px) { div.hero-img-teaser-small { width: 100%; } } @media screen and (max-width: 767px) { div.hero-img-teaser-small { padding-top: 25px; padding-right: 20px; padding-bottom: 25px; padding-left: 20px; min-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; }
JS
Teaser in Hero-Image (small)
×
Label
Hier soll eine passende Headline stehen