Skip to content

Commit

Permalink
docs(grid): expands design guidelines for grid layout. (#3672)
Browse files Browse the repository at this point in the history
* docs: expands design guidelines for grid layout.

* Updates with images and placeholder images.

* Updates image paths.

* Updates content to ready for review.

* Apply suggestions from code review

* Fix merge issues.

* Update packages/documentation-site/patternfly-docs/content/design-guidelines/layouts/grid.md

* Update packages/documentation-site/patternfly-docs/content/design-guidelines/layouts/grid.md

---------

Co-authored-by: Margot <[email protected]>
  • Loading branch information
edonehoo and mmenestr authored Sep 27, 2023
1 parent 5a328aa commit 9c4d902
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,25 @@
id: Grid
section: layouts
---
Use a **Grid** to layout content on a fixed-size 12 column grid.
The **grid** layout places content on a fixed 12 column grid.

## Elements

![Example of grid layout.](./img/grid-example.png)
1. **Grid**: The grid container, which holds all grid items.
1. **Grid item**: An individual section of content to be placed in the grid.

## Usage

Grid items can be ordered in a number of ways to create groups. The span value of all grid items must equal 12, but this can be achieved by modifying the span of each item to create different combinations of section sizes:


![Example of grid layout with adjusted span.](./img/adjusted-grid-span.png)

## Variations

### Gutters around items

To adjust spacing between items, you can apply gutters.

![Example of grid layout with gutters](./img/grid-gutters.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c4d902

Please sign in to comment.