From ef367d58affc519f45040c84d0fbf3b3d2679355 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 16 Nov 2018 18:59:12 +0100 Subject: [PATCH] a new demo --- .../pages/demos/dividers/MiddleDividers.js | 76 ++++++++++++------- docs/src/pages/demos/dividers/dividers.md | 8 +- 2 files changed, 51 insertions(+), 33 deletions(-) diff --git a/docs/src/pages/demos/dividers/MiddleDividers.js b/docs/src/pages/demos/dividers/MiddleDividers.js index 884bc74a8f935d..1834e2bf7d1a6a 100644 --- a/docs/src/pages/demos/dividers/MiddleDividers.js +++ b/docs/src/pages/demos/dividers/MiddleDividers.js @@ -1,14 +1,11 @@ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; -import List from '@material-ui/core/List'; -import ListItem from '@material-ui/core/ListItem'; -import ListItemText from '@material-ui/core/ListItemText'; -import Avatar from '@material-ui/core/Avatar'; -import ImageIcon from '@material-ui/icons/Image'; -import WorkIcon from '@material-ui/icons/Work'; -import BeachAccessIcon from '@material-ui/icons/BeachAccess'; +import Chip from '@material-ui/core/Chip'; +import Button from '@material-ui/core/Button'; +import Grid from '@material-ui/core/Grid'; import Divider from '@material-ui/core/Divider'; +import Typography from '@material-ui/core/Typography'; const styles = theme => ({ root: { @@ -16,33 +13,54 @@ const styles = theme => ({ maxWidth: 360, backgroundColor: theme.palette.background.paper, }, + chip: { + marginRight: theme.spacing.unit, + }, + section1: { + margin: `${theme.spacing.unit * 3}px ${theme.spacing.unit * 2}px`, + }, + section2: { + margin: theme.spacing.unit * 2, + }, + section3: { + margin: `${theme.spacing.unit * 6}px ${theme.spacing.unit * 2}px ${theme.spacing.unit * 2}px`, + }, }); function MiddleDividers(props) { const { classes } = props; return ( - - - - - - - - - - - - - - - - - - - - - - +
+
+ + + Toothbrush + + + $4.50 + + + + Pinstriped cornflower blue cotton blouse takes you on a walk to the park or just down the + hall. + +
+ +
+ Select type +
+ + + + +
+
+
+ +
+
); } diff --git a/docs/src/pages/demos/dividers/dividers.md b/docs/src/pages/demos/dividers/dividers.md index 4ae5dde83e171a..a29e0c2fea740f 100644 --- a/docs/src/pages/demos/dividers/dividers.md +++ b/docs/src/pages/demos/dividers/dividers.md @@ -27,10 +27,10 @@ The `inset` property has now been deprecated. You should now use `variant="inset {{"demo": "pages/demos/dividers/InsetDividers.js"}} -## Middle Dividers +## Subheader Dividers -{{"demo": "pages/demos/dividers/MiddleDividers.js"}} +{{"demo": "pages/demos/dividers/SubheaderDividers.js"}} -## Subheader Dividers +## Middle Dividers -{{"demo": "pages/demos/dividers/SubheaderDividers.js"}} \ No newline at end of file +{{"demo": "pages/demos/dividers/MiddleDividers.js"}}