Soracom

Design System
  1. Home
  2. Design system
  3. Containers
  4. Rows

Rows

A generic container for row layout

Overview

The .ds-rows class (previously .ds-layout__rows) provides generic row layouts with options to implement fixed width child rows or columns.

The ds-rows class applied to a container element causes the containers child elements to display as a vertical list of horizontal rows, with a vertical gutter between each row. ds-rows is divided into 12 columns, with each row spanning all 12 columns (the full width of the container) by default.

Options

Basic usage

html
Copy

Indent

Indents the contents, this would generally be used on the main outer container of content.

Small

html
Copy

Medium (Default)

html
Copy

Large

html
Copy

A specific row can be "outdented" using ds-row--outdent

html
Copy

Column width

As an alternative ds-cols in some situations, ds-rows can be used to display column content.

If a direct child element of ds-rows has a class of .ds-span --X where X is a value betwen 1-12 that child element will display at that width.

Adjacent child elements with a .ds-span --X value will act like columns without the need of wrapping those rows in a parent element.

html
Copy

No gap

html
Copy

No col gap

html
Copy

No row gap

html
Copy

Examples

Nested indents

html
Copy