Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Improve grid demo descriptions #12112

Merged
merged 1 commit into from
Jul 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/src/pages/layout/grid/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,22 @@ Spacing can be 8, 16, 24, 32 or 40dp wide.

{{"demo": "pages/layout/grid/SpacingGrid.js"}}

## Full-width vs Centered
## Fluid grids

**Full-width grids**: use fluid columns and breakpoints to determine when a layout needs to change.
Fluid grids use columns that scale and resize content. A fluid grid’s layout can use breakpoints to determine if the layout needs to change dramatically.

{{"demo": "pages/layout/grid/FullWidthGrid.js"}}
### Basic grid

**Centered grids**: use fixed columns and re-flow the layout when all columns (plus a defined margin) no longer fit on the screen.
The column widths apply at all breakpoints (i.e. `xs` and up).

{{"demo": "pages/layout/grid/CenteredGrid.js"}}

### Grid with breakpoints

Some columns have multiple widths defined, causing the layout to change at the defined breakpoint.

{{"demo": "pages/layout/grid/FullWidthGrid.js"}}

## Interactive

Below is an interactive demo that lets you explore the visual results of the different settings:
Expand Down