Merge pull request #18007 from maapteh/fix-print

fix: make pages and techdocs nicely printable / export PDF
This commit is contained in:
Fredrik Adelöw
2023-06-07 13:26:54 +02:00
committed by GitHub
9 changed files with 44 additions and 0 deletions
@@ -39,6 +39,9 @@ const useStyles = makeStyles({
width: 'calc(100% - 34.4rem)',
margin: '0 auto',
},
'@media print': {
display: 'none',
},
},
});
@@ -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%;
}
}
`;