Skip to content
Snippets Groups Projects
Commit 95884684 authored by esikkala's avatar esikkala
Browse files

Fix info header margins

parent 2f6e22d0
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,7 @@ const theme = createMuiTheme({ ...@@ -19,8 +19,7 @@ const theme = createMuiTheme({
marginTop: 8, marginTop: 8,
marginBottom: 8 marginBottom: 8
} }
},
}
} }
} }
}); });
......
...@@ -12,11 +12,17 @@ import Grid from '@material-ui/core/Grid'; ...@@ -12,11 +12,17 @@ import Grid from '@material-ui/core/Grid';
const styles = theme => ({ const styles = theme => ({
root: { root: {
position: 'absolute', position: 'absolute',
marginTop: 64, //marginTop: 64,
paddingTop: theme.spacing(1), paddingTop: theme.spacing(1),
paddingLeft: theme.spacing(1.5), paddingLeft: theme.spacing(1.5),
paddingRight: theme.spacing(1.5), paddingRight: theme.spacing(1.5),
backgroundColor: '#bdbdbd', backgroundColor: '#bdbdbd',
[theme.breakpoints.down('sm')]: {
marginTop: 56,
},
[theme.breakpoints.up('sm')]: {
marginTop: 64,
},
}, },
panel: { panel: {
width: '100%' width: '100%'
...@@ -25,7 +31,8 @@ const styles = theme => ({ ...@@ -25,7 +31,8 @@ const styles = theme => ({
paddingLeft: theme.spacing(1), paddingLeft: theme.spacing(1),
}, },
summaryContent: { summaryContent: {
display: 'block' display: 'block',
marginBottom: `${theme.spacing(1)}px !important`
}, },
label: { label: {
marginTop: theme.spacing(1), marginTop: theme.spacing(1),
......
...@@ -105,12 +105,12 @@ const styles = theme => ({ ...@@ -105,12 +105,12 @@ const styles = theme => ({
backgroundColor: '#bdbdbd', backgroundColor: '#bdbdbd',
padding: theme.spacing(1), padding: theme.spacing(1),
[theme.breakpoints.down('sm')]: { [theme.breakpoints.down('sm')]: {
marginTop: 308, // 56 + 244 + 8 marginTop: 296, // 56 + 232 + 8
height: 'calc(100% - 308px)', height: 'calc(100% - 296px)',
}, },
[theme.breakpoints.up('sm')]: { [theme.breakpoints.up('sm')]: {
marginTop: 316, // 64 + 244 + 8 marginTop: 304, // 64 + 232 + 8
height: 'calc(100% - 316px)', height: 'calc(100% - 304px)',
}, },
}, },
instancePageContainer: { instancePageContainer: {
...@@ -122,7 +122,7 @@ const styles = theme => ({ ...@@ -122,7 +122,7 @@ const styles = theme => ({
height: 'calc(100% - 177px)', height: 'calc(100% - 177px)',
}, },
[theme.breakpoints.up('sm')]: { [theme.breakpoints.up('sm')]: {
marginTop: 185, // 64 + 113 + 8 marginTop: 181,
height: 'calc(100% - 185px)', height: 'calc(100% - 185px)',
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment