6 #permalink Teaser

Base implementation to create various types of teasers from

Source: teaser/css/teaser.css, line 1

6.1 #permalink .teaser

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

A teaser is a element which always contains a teaser_head area to display various media elements as well as a teaser_body area for the text content. The text content can be composed of various text elements which serve the purpose. The example code renders the teaser aligned on the x-axis. If you need a teaser which is aligned along the y-axis, remove the col--XXX-X modifiers.

Example
Content goes into here
Markup
<div class="teaser">
    <div class="teaser_head cols--1000-6">
        <img src="https://unsplash.it/g/800/450" alt="">
    </div>
    <div class="teaser_body cols--1000-6">
        Content goes into here
    </div>
</div>
Source: teaser/css/teaser.css, line 11

6.1.1 #permalink .teaser_insert

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

This is a teaser enhancement, which allows to render a category or flag into the head part of a teaser which layers above the contents. You may also use it to create caption text elements inside the teaser, just add the caption class to it. To make the insert span the whole width, add a col--12 class (or whichever fits your needs)

Examples
Default styling
A flag or caption
Content goes into here
.teaser_insert--topl
Places the label into the left upper corner (default)
A flag or caption
Content goes into here
.teaser_insert--topr
Places the label into the right upper corner
A flag or caption
Content goes into here
.teaser_insert--bottoml
Places the label into the left lower corner
A flag or caption
Content goes into here
.teaser_insert--bottomr
Places the label into the right lower corner
A flag or caption
Content goes into here
Markup
<div class="teaser">
    <div class="teaser_head cols--1000-6">
        <span class="teaser_insert {modifiers}">
            A flag or caption
        </span>
        <img src="https://unsplash.it/g/800/450" alt="">
    </div>
    <div class="teaser_body cols--1000-6">
        Content goes into here
    </div>
</div>
Source: teaser/css/teaser.css, line 62