Macaw.Layout.Stack (macaw v0.6.0)

Copy Markdown View Source

The stack (spec/06 §3.3), the built-in layout :stack: one column, the cells in the order the surface gives, {:stack, order: ["header", "chart", "table"]}. It is what the grid collapses to on a narrow screen, chosen on purpose. A cell has no place.

iex> Macaw.Layout.Stack.container(%{order: ["a"]})
"mw-stack"

Summary

Functions

The stack's static stylesheet: one column of rows at least var(--mw-grid-row, 4rem) high, the grid's gap between them.

The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).

Functions

stylesheet()

@spec stylesheet() :: String.t()

The stack's static stylesheet: one column of rows at least var(--mw-grid-row, 4rem) high, the grid's gap between them.

stylesheet_path()

@spec stylesheet_path() :: String.t()

The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).