diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-01-04 11:24:21 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-01-04 11:41:13 +0000 |
| commit | ee087dcfc842bbc8e1b9cdcae80bf7e6e7426669 (patch) | |
| tree | 7d4564fb6fe30895952d0e6489430ad61093034e /root/static/style/print | |
| parent | turn static plugin into builtin again (diff) | |
| download | mmm-ee087dcfc842bbc8e1b9cdcae80bf7e6e7426669.tar.gz mmm-ee087dcfc842bbc8e1b9cdcae80bf7e6e7426669.zip | |
move style into root
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; +} |
