Merge pull request #18007 from maapteh/fix-print
fix: make pages and techdocs nicely printable / export PDF
This commit is contained in:
+3
@@ -39,6 +39,9 @@ const useStyles = makeStyles({
|
||||
width: 'calc(100% - 34.4rem)',
|
||||
margin: '0 auto',
|
||||
},
|
||||
'@media print': {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
+3
@@ -39,6 +39,9 @@ const useStyles = makeStyles(theme => ({
|
||||
flexDirection: 'column',
|
||||
minHeight: 'auto',
|
||||
padding: theme.spacing(3, 3, 0),
|
||||
'@media print': {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -227,4 +227,18 @@ export default ({ theme, sidebar }: RuleOptions) => `
|
||||
width: 12.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media print {
|
||||
.md-sidebar,
|
||||
#toggle-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.md-content {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user