diff --git a/themes/fid_bbi/scss/compiled.scss b/themes/fid_bbi/scss/compiled.scss index 1fd737b2fa6040129b7f792fc6468c89361fc198..bf5e23728cd53af63bec5a0ec702d13c7cea0a79 100644 --- a/themes/fid_bbi/scss/compiled.scss +++ b/themes/fid_bbi/scss/compiled.scss @@ -66,3 +66,5 @@ @import 'plugins/slim-select'; @import 'util/hacks'; + +@import 'util/print'; diff --git a/themes/fid_bbi/scss/util/print.scss b/themes/fid_bbi/scss/util/print.scss new file mode 100644 index 0000000000000000000000000000000000000000..f3cce897bca4d0c09338c4c415c470259d027d5b --- /dev/null +++ b/themes/fid_bbi/scss/util/print.scss @@ -0,0 +1,56 @@ +@media print { + * { + color: black !important; + background: none; + max-width: none; + } + + html, + body { + display: block; + overflow: auto; + } + + button { + display: none !important; + } + + dl { + break-inside: avoid; + } + + .footer, + .header, + .pagination, + .record-access, + .record-links, + .record-sidebar, + .record-tabs, + .result-actions, + .sidebar { + display: none !important; + } + + .box { + clip-path: none !important; + margin-bottom: g(); + padding: g() !important; + + &::after { + content: none !important; + } + } + + .main { + display: block; + padding: 0; + } + + .main-wrap { + width: auto; + } + + .result { + break-inside: avoid; + } +}