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.
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.
You can mix and match these variants to get a variety of display options.
.long-form--inversestyle attribute, set the URL of a background image
on the <section class="long-form"> element.
.long-form--bg-light-grey.long-form--bg-darken.long-form--bg-lighten.long-form--width-medium.long-form--width-full.long-form--padding-none.long-form--creditsThe following subpatterns may be used inside the <div class="long-form__content"> element.
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>
.align-centre or .align-center<aside> inside the content column.
.align-left<aside> to the left of the content column.
.align-right<aside> to the right of the content column.
.extend-left<aside> takes on the width of the content it contains.
.extend-right<aside> takes on the width of the content it contains.
.float-left.float-right.parallel-left<aside> in the left 2 grid columns directly parallel to the content that it precedes.
.parallel-right<aside> in the right 2 grid columns directly parallel to the content that it precedes.
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>
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 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.
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>
...
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.