hedgedoc/frontend/global-styles/print.scss
Philip Molares 0fdcf58b89 feat(print): add more fixes to print mode
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2024-11-27 21:02:52 +01:00

43 lines
637 B
SCSS

/*!
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@media print {
.heading-anchor {
display: none;
}
mark {
print-color-adjust: exact;
}
h1, h2, h3, h4, h5 {
break-after: avoid;
}
table, figure, p, img, ul, ol, pre {
break-inside: avoid;
}
@page {
size: A4;
padding: 1.5cm;
margin: 1cm auto;
}
.print-link {
display: inline;
}
.markdown-body hr {
background-color: transparent !important;
border-bottom: 2px solid #bbbcbf;
}
}
@media screen {
.print-link {
display: none;
}
}