Panels
Panel Grid
Use .panel-grid in place of .panel-body when a panel's content should be split into bordered cells — for example a summary column next to label/value rows. Always pair .panel-grid with a column modifier.
A single row
The playground above always fills six cells, so every layout it shows wraps to two rows. A grid is just as often one row — a strip of summary figures across the top of a page, with .panel-grid-divided supplying the rules between them. Give it exactly as many cells as the column count and it stays on one line.
Pair the panel with .panel-default for the gray-200 border. .panel on its own draws a transparent border, which reads as a floating card; most panels in the system are .panel.panel-default, and a summary strip sitting above other content wants that edge.
Cell content is the consumer's — the grid supplies the columns, the rules and the cell padding, nothing else. The classes above (text-small, text-muted, font-size-xl) are ordinary typography utilities, not part of the panel-grid API.
Classes
| Class | Description |
|---|---|
.panel-grid | Grid container. Replaces .panel-body inside a .panel. |
.panel-grid-1 … .panel-grid-6 | Equal-width column count (1–6). Pair one with .panel-grid. |
.panel-grid-{bp}-{n} | Responsive equal-width column count. bp is a breakpoint (sm, lg, xl); n is 1–6. Applies from the breakpoint up. Chain nesting counts (e.g. panel-grid-1 panel-grid-sm-3 panel-grid-lg-6) to reflow. |
.panel-grid-30-70, .panel-grid-40-60, .panel-grid-60-40, .panel-grid-70-30 | Two columns at a fixed ratio. |
.panel-grid-aside | Two columns with a narrow first column, for a summary/aside next to detail rows. |
.panel-grid-divided | Adds vertical borders between columns. |
.panel-grid-inset | Insets the cell dividers from the grid edges. |
.panel-grid-cell | A single cell. The first row has no top border. |
.panel-grid-cell.panel-grid-header | A gray header cell. |
.panel-grid.panel-grid-cell | A nested .panel-grid that acts as a flush cell of a parent grid. |
Related
- Employee section grid — the same modifier vocabulary in the employee theme, sitting inside a
.bordered-sectionrather than a.panel.