Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Vertical templates

oysteinjs edited this page Jun 7, 2013 · 3 revisions

Requirements

Before reading this you should read the docs about blocks and figures, as well as how to create your first template.

Overview

As opposed to grid templates, vertical templates will show the content in a single column with a vertical scroll. They are mainly used on smaller screens without much room for multiple columns, but may also be used on larger screens.

The template uses alf-region-flexible in addition to alf-region, and alf-container-inline instead of alf-container.

A combination of both grid templates and vertical templates in the same article is possible, albeit highly discouraged.

The [article comes preformatted and structured](Article import format) in blocks and figures.

When building a template you create:

The markup

<div data-map="article" class="alf-template">
    <div class="alf-container" data-map="title"></div>
    <div class="alf-region alf-region-flexible">
		<div class="alf-container-inline" data-map="16x9-small 4x3-small"></div>
	</div>
</div>
Clone this wiki locally