Adding margins to card styles

This commit is contained in:
Nikola Bjelo committed 2018-10-30 13:03:29 +01:00
1 parent 9c39f278f5
commit 943b67a4f9
4 files changed
+34 -58

No files matched your search

+2 -29
View File
@@ -7,34 +7,7 @@ import {
Button
} from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
const styles = theme => ({
root: {
flexGrow: 1,
padding: 20,
margin: 10
},
image: {
width: 128,
height: '100%',
cursor: 'default'
},
img: {
margin: 'auto',
display: 'block',
maxWidth: '100%',
maxHeight: '100%'
},
buttonList: {
margin: theme.spacing.unit,
float: 'right'
},
buttonGrid: {
marginTop: -20
}
})
import styles from './styles'
class Event extends React.Component {
render () {
@@ -48,7 +21,7 @@ class Event extends React.Component {
description
} = this.props.event
return (
<Paper className={classes.root}>
<Paper className={classes.card}>
<Grid container spacing={16}>
<Grid item xs>
<Typography gutterBottom variant='headline'> {name} </Typography>
@@ -1,4 +1,19 @@
const styles = theme => ({
card: {
flexGrow: 1,
padding: 20,
marginTop: 20,
marginBottom: 20,
marginLeft: 400,
marginRight: 400
},
buttonList: {
margin: theme.spacing.unit,
float: 'right'
},
buttonGrid: {
marginTop: -20
}
})
export default styles
+2 -29
View File
@@ -7,34 +7,7 @@ import {
Button
} from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
const styles = theme => ({
root: {
flexGrow: 1,
padding: 20,
margin: 10
},
image: {
width: 128,
height: '100%',
cursor: 'default'
},
img: {
margin: 'auto',
display: 'block',
maxWidth: '100%',
maxHeight: '100%'
},
buttonList: {
margin: theme.spacing.unit,
float: 'right'
},
buttonGrid: {
marginTop: -20
}
})
import styles from './styles'
class Event extends React.Component {
render () {
@@ -48,7 +21,7 @@ class Event extends React.Component {
description
} = this.props.event
return (
<Paper className={classes.root}>
<Paper className={classes.card}>
<Grid container spacing={16}>
<Grid item xs>
<Typography gutterBottom variant='headline'> {name} </Typography>
+15
View File
@@ -1,4 +1,19 @@
const styles = theme => ({
card: {
flexGrow: 1,
padding: 20,
marginTop: 20,
marginBottom: 20,
marginLeft: 400,
marginRight: 400
},
buttonList: {
margin: theme.spacing.unit,
float: 'right'
},
buttonGrid: {
marginTop: -20
}
})
export default styles