Repository navigation
Grid System
Jo Dickson edited this page Aug 3, 2017
·
2 revisions
Advanced positioning and layout of post content is possible using shortcodes for the Athena Framework's grid system. Keep in mind that nested grids are not supported due to limitations with the WordPress Shortcode API.
Generates a container.
| Shortcode Attribute | Name | Description | Default Value |
|---|---|---|---|
| type | Container Type | Specify the type of container to use. Standard, fixed-width containers are used by default. Valid Options:
|
container is applied if no option is specified |
| class | CSS Classes | Separate each class with a single space. Refer to the Athena Framework documentation for available classes. |
container or container-fluid is always applied, depending on the value of the "type" attribute |
| style | Inline Styles | Any additional styles for the element. |
Generates a row.
| Shortcode Attribute | Name | Description | Default Value |
|---|---|---|---|
| no_gutters | Disable gutters | When enabled, the generated row's child columns will not have left- or right-hand gutters. | false |
| class | CSS Classes | Separate each class with a single space. Refer to the Athena Framework documentation for available classes. |
row is always applied |
| style | Inline Styles | Any additional styles for the element. |
Generates a column. Note that you must provide at least one column size attribute for the column to render correctly; the shortcode does not provide a default column size.
| Shortcode Attribute | Name | Description | Default Value |
|---|---|---|---|
|
Column Sizes | The size of the column at the given breakpoint and up. Valid options:
|
|
|
Offsets | The offset of the column (number of grid columns to skip) at the given breakpoint and up. | |
|
Pushes | Pushes the column the specified number of column widths at the given breakpoint and up. | |
|
Pulls | Pulls the column the specified number of column widths at the given breakpoint and up. | |
| class | CSS Classes | Separate each class with a single space. Refer to the Athena Framework documentation for available classes. | |
| style | Inline Styles | Any additional styles for the element. |
TODO