Introduction
The article component offers responsive two and three column layouts. It includes fixed-width sidebars.
Containing Elements
The article component is made up of three preassigned areas: header, sidebar, and body.
Unlike other Natura11y components, articles do not provide breakpoint modifiers. Instead, its layout changes from mobile to desktop view at the large viewport (1000px). For three-column layouts, the layout changes again at the extra-large viewport.
Header
.article__Header
Body
.article__body
Figure 1 (below) provides the HTML for the article component's containing selectors. The parent class .article--column-2
(line 1) sets the two-column layout.
Line # | Details |
---|---|
1 | The parent Here x equals the amount of columns (either 2 or 3). |
3-5 | The It holds the article's |
7-9 | The It holds the article's sidebar or navigation content. |
11-13 | The It holds the article's main content. |
Three column layouts use the .article--column-3
parent selector (Figure 2, line 1). They include a third .article__sidebar
child selector (Figure 2, lines 15-17).
Header
.article__Header
Body
.article__body
Layout With Sample Content
Consider the following two-column article layout. A backdrop component is present in the .article__header
selector. The article__sidebar
contains generic navigation. Finally, article__body
has some generic content.
Header with Backdrop
With the example below, the backdrop component is a direct child of the .article__header
selector. When this is the case, a left margin is placed on the first child of the .backdrop__cover
selector. This margin equals the width of the article's sidebar.