Prevent page breaking in some elements when printing

This commit is contained in:
BBaoVanC 2023-01-27 16:39:04 -06:00
parent f2f9e78559
commit 1caa7acdc9
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 4 additions and 3 deletions

View File

@ -113,6 +113,7 @@
@media print { @media print {
:root { :root {
--background-0: #fff; --background-0: #fff;
--text-0: #000;
} }
} }
@ -996,9 +997,9 @@ li.disabled > .page-link:hover {
max-width: 100%; max-width: 100%;
} }
pre { table,
white-space: pre-wrap; aside,
overflow-wrap: anywhere; .code-block {
break-inside: avoid; break-inside: avoid;
} }