From c81b7f27415820271cbb4fe84caea32c39dd2eec Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Mon, 19 Apr 2021 09:00:16 +0200 Subject: [PATCH] refs #19665 [fid_bbi] include print.scss from issue/18965 also refs #18965 author: "Aspectis <tobias@aspectis.net>" --- themes/fid_bbi/scss/compiled.scss | 2 ++ themes/fid_bbi/scss/util/print.scss | 56 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 themes/fid_bbi/scss/util/print.scss diff --git a/themes/fid_bbi/scss/compiled.scss b/themes/fid_bbi/scss/compiled.scss index 1fd737b2fa6..bf5e23728cd 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 00000000000..f3cce897bca --- /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; + } +} -- GitLab