diff options
Diffstat (limited to 'root/static/style/print')
| -rw-r--r-- | root/static/style/print/text$x-scss.scss | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/root/static/style/print/text$x-scss.scss b/root/static/style/print/text$x-scss.scss new file mode 100644 index 0000000..c221fa4 --- /dev/null +++ b/root/static/style/print/text$x-scss.scss @@ -0,0 +1,45 @@ +.print-only { + display: none; + + @media print { + display: block; + } +} + +.screen-only { + @media print { + display: none; + } +} + +@media print { + h1, h2, h3, h4, h5 { + break-after: avoid-page; + + + * { + break-before: avoid-page; + } + } + + .view { + flex: 1 0 auto; + + .content { + flex: 1 0 auto; + } + } + + body { + background: $white; + } +} + +.print-ownpage { + break-before: page; + break-after: page; +} + +@page { + size: a4; + margin: 2.5cm 0 2.5cm; +} |
