Skip to content

Commit

Permalink
Better (?) CSS Grid documentation
Browse files Browse the repository at this point in the history
As discussed in mui#9513 starting at mui#9513 (comment) the current documentation was a little confusing and not really located in a logical place.

I'm not sure there *is* a logical place for this information, but it seems like the end of the document is better than in the middle of information talking about grid stuff that MUI *does* support.

I made the fact that Material UI doesn't provide any CSS Grid functionality explicit.

I also took out the warning about CSS Grid only being supported in the latest browsers.  As of right now it has 90% browser coverage at https://caniuse.com/#feat=css-grid.
  • Loading branch information
dmwyatt authored Apr 24, 2019
1 parent d1df9a8 commit 3babf77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/src/pages/layout/grid/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ The following demo doesn't follow the Material Design specification, but illustr

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

## CSS Grid Layout

**CSS Grid Layout** excels at dividing a page into major regions, or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives.

⚠️ Unfortunately, CSS grid is only supported by the most recent browsers.

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

## Nested Grid

The `container` and `item` properties are two independent booleans. They can be combined.
Expand Down Expand Up @@ -133,3 +125,11 @@ The properties which define the number of grids the component will use for a giv
(`xs`, `sm`, `md`, `lg`, and `xl`) are focused on controlling width
and do **not** have similar effects on height within `column` and `column-reverse` containers.
If used within `column` or `column-reverse` containers, these properties may have undesirable effects on the width of the `Grid` elements.


## CSS Grid Layout

Material UI does not provide any CSS Grid functionality itself, but as seen below you can easily use CSS Grid to layout your pages.


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

0 comments on commit 3babf77

Please sign in to comment.