Skip to content

Commit

Permalink
[docs] Remove extra spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 6, 2017
1 parent 7c96b79 commit c4b9a32
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 19 deletions.
5 changes: 2 additions & 3 deletions docs/src/pages/demos/app-bar/ButtonAppBar.js
Expand Up @@ -10,9 +10,8 @@ import Button from 'material-ui/Button';
import IconButton from 'material-ui/IconButton';
import MenuIcon from 'material-ui-icons/Menu';

const styles = theme => ({
const styles = {
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
flex: {
Expand All @@ -22,7 +21,7 @@ const styles = theme => ({
marginLeft: -12,
marginRight: 20,
},
});
};

function ButtonAppBar(props) {
const { classes } = props;
Expand Down
5 changes: 2 additions & 3 deletions docs/src/pages/demos/app-bar/MenuAppBar.js
Expand Up @@ -13,9 +13,8 @@ import Switch from 'material-ui/Switch';
import { FormControlLabel, FormGroup } from 'material-ui/Form';
import Menu, { MenuItem } from 'material-ui/Menu';

const styles = theme => ({
const styles = {
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
flex: {
Expand All @@ -25,7 +24,7 @@ const styles = theme => ({
marginLeft: -12,
marginRight: 20,
},
});
};

class MenuAppBar extends React.Component {
state = {
Expand Down
5 changes: 2 additions & 3 deletions docs/src/pages/demos/app-bar/SimpleAppBar.js
Expand Up @@ -7,12 +7,11 @@ import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';

const styles = theme => ({
const styles = {
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
});
};

function SimpleAppBar(props) {
const { classes } = props;
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/demos/buttons/ButtonBases.js
Expand Up @@ -8,7 +8,6 @@ import Typography from 'material-ui/Typography';

const styles = theme => ({
root: {
marginTop: theme.spacing.unit * 3,
display: 'flex',
flexWrap: 'wrap',
minWidth: 300,
Expand Down
Expand Up @@ -12,7 +12,6 @@ import ExpandMoreIcon from 'material-ui-icons/ExpandMore';

const styles = theme => ({
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
heading: {
Expand Down
Expand Up @@ -17,7 +17,6 @@ import Divider from 'material-ui/Divider';

const styles = theme => ({
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
heading: {
Expand Down
Expand Up @@ -12,7 +12,6 @@ import ExpandMoreIcon from 'material-ui-icons/ExpandMore';

const styles = theme => ({
root: {
marginTop: theme.spacing.unit * 3,
width: '100%',
},
heading: {
Expand Down
5 changes: 1 addition & 4 deletions docs/src/pages/demos/snackbars/LongTextSnackbar.js
Expand Up @@ -13,9 +13,6 @@ const action = (
);

const styles = theme => ({
root: {
marginTop: theme.spacing.unit * 3,
},
snackbar: {
margin: theme.spacing.unit,
},
Expand All @@ -25,7 +22,7 @@ function LongTextSnackbar(props) {
const { classes } = props;

return (
<div className={classes.root}>
<div>
<SnackbarContent className={classes.snackbar} message="I love snacks." action={action} />
<SnackbarContent
className={classes.snackbar}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/style/Color.js
Expand Up @@ -45,8 +45,8 @@ export const styles = theme => ({
alignItems: 'center',
},
colorGroup: {
padding: '16px 0',
margin: '0 15px 0 0',
padding: 0,
margin: `0 ${theme.spacing.unit * 2}px 0 0`,
flexGrow: 1,
[theme.breakpoints.up('sm')]: {
flexGrow: 0,
Expand Down

0 comments on commit c4b9a32

Please sign in to comment.