Digital pattern library

Long-form content

The Long-form content pattern is designed to be used repetitively with a variety of options to achieve an engaging, story-telling experience that still remains consistent in look and feel. It is ideally suited to blend longer passages of text with images, video and audio. It also carries several subpatterns.

Usage

Examples for individual variants and subpatterns are below, but you can also see the full page example to get a sense for how to use the variants and subpatterns together.

Syntax

... CONTENT ...

Variants

You can mix and match these variants to get a variety of display options.

Text and backgrounds

Width

Vertical padding

Credits

Subpatterns

The following subpatterns may be used inside the <div class="long-form__content"> element.

Asides

Standard HTML5 <aside> elements are enhanced with a set of classes to flexibly position them relative to content. This approach removes the need for a dedicated sidebar. The <aside> element is often used to wrap <figure> elements, but can equally wrap any tangential content.

Note: These asides are only designed to work inside the default compressed content column, not the medium or full-width variants.

<aside class="ALIGNMENT">
    ...
</aside>

Aside variants

End piece

Long-form content articles should end with the End piece subpattern. It shows a square box with the date the article was published.

<p class="end">Tuesday 04 October 2016</p>

Lead paragraph

The opening <h1> is typically followed by a lead paragraph.

<p class="lead">Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

Pull quotes

Pull quotes are used to quote something from the flow of the article in a larger size to draw the reader into the article. This is different in purpose to a blockquote where you want to include a longish quotation in the flow of the narrative. Additionally, these pull quote elements are automatically populated with links to share on Twitter and Facebook.

<p class="pull-quote" data-quote="...there is nothing in the world so irresistibly contagious as laughter and good humour.">
    It is a fair, even-handed, noble adjustment of things, that while there is infection in disease and sorrow, there is nothing in the world so irresistibly contagious as laughter and good humour.
</p>

You may provide a custom tweet quote using the data-quote attribute. However, if the data-quote attribute is not present — or left blank — then the tweet quote will be created automatically; if required, it will be truncated to fit within 140 characters.

Thumbnail gallery

The thumbnail gallery provides a simple and elegant display of a collection of images in thumbnail format, additionally enhancing them by setting them to open up in the pattern library's theatre viewer for further navigation.

...

<div class="thumbnail-gallery">
    <h4 class="thumbnail-gallery__title">Scientists involved with Light Box</h4>

    <div class="thumbnail-gallery__images">

        <figure class="image">
            <img src="path/to/image.jpg" alt="Professor Ifor Samuel" title="Professor Ifor Samuel">
            <figcaption>Ifor Samuel<br><em>Physicist</em></figcaption>
        </figure><figure class="image">
            <img src="path/to/image.jpg" alt="John Allen" title="Ashu Kumar Bansal">
            <figcaption>John Allen<br><em>Physicist</em></figcaption>
        </figure><figure class="image">
            <img src="path/to/image.jpg" alt="Ashu Kumar Bansal" title="Ashu Kumar Bansal">
            <figcaption>Ashu Kumar Bansal<br><em>Optical physicist</em></figcaption>
        </figure><figure class="image">
            <img src="path/to/image.jpg" alt="Hien Nguyen" title="Hien Nguyen">
            <figcaption>Hien Nguyen<br><em>Polymer chemist</em></figcaption>
        </figure><figure class="image">
            <img src="path/to/image.jpg" alt="Olena Kulyk" title="Olena Kulyk">
            <figcaption>Olena Kulyk<br><em>Biomedical electronics engineer</em></figcaption>
        </figure>

    </div>

</div>
...

(BETA) Slider gallery

The Slider gallery provides an alternative interface for displaying large images in the long-form content pages. Note, this is a conceptual implementation currently and needs further engineering before being used in production situations.

Examples

standard

View | Code | Open in new window

background-light-grey

View | Code | Open in new window

background-image-white-text

View | Code | Open in new window

background-image-dark-text

View | Code | Open in new window

medium-width

View | Code | Open in new window

full-width

View | Code | Open in new window

no-padding

View | Code | Open in new window

credits

View | Code | Open in new window

asides

View | Code | Open in new window

end-piece

View | Code | Open in new window

lead-paragraph

View | Code | Open in new window

pull-quote

View | Code | Open in new window

thumbnail-gallery

View | Code | Open in new window

BETA-slider-gallery

View | Code | Open in new window