From 7aef0c75cbe6c4ad51fb9602c11033eecab6c2a7 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 11 Dec 2014 16:47:36 +0100 Subject: [PATCH] Issue #1892006 by Outi, tompagabor, sqndr, BarisW, herom, skippednote, LewisNyman, vermario, frankbaele, criscom, kid_icarus, lauriii, jlyon, eporama: Include a print styling for Seven --- core/themes/seven/css/base/print.css | 79 +++++++++++++++++++++++++++ core/themes/seven/seven.libraries.yml | 1 + 2 files changed, 80 insertions(+) create mode 100644 core/themes/seven/css/base/print.css diff --git a/core/themes/seven/css/base/print.css b/core/themes/seven/css/base/print.css new file mode 100644 index 00000000000..871baa129be --- /dev/null +++ b/core/themes/seven/css/base/print.css @@ -0,0 +1,79 @@ +@media print { + * { + background-color: transparent !important; + color: #000 !important; /* Black prints faster: h5bp.com/s */ + box-shadow: none !important; + text-shadow: none !important; + } + body { + padding-top: 0; + } + a, + a:visited { + text-decoration: underline; + } + pre, + blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + thead { + display: table-header-group; /* h5bp.com/t */ + } + tr, + img { + page-break-inside: avoid; + } + img { + max-width: 100% !important; + } + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + h2, + h3 { + page-break-after: avoid; + } + a, + .link { + color: #000; + text-decoration: underline; + } + .button, .button--primary { + background: none !important; + } + #toolbar-administration { + display: none !important; + } + .messages { + border-width: 1px; + border-left-color: #999; + } + .is-collapse-enabled .tabs { + max-height: 999em; + } + .is-horizontal .tabs__tab { + margin: 0 4px !important; + border-radius: 4px 4px 0 0 !important; + } + .dropbutton-multiple .dropbutton .secondary-action { + display: block; + } + .js .dropbutton-widget, + .js td .dropbutton-widget /* Splitbuttons */ { + position: relative; + } + .js .dropbutton .dropbutton-toggle { + display: none; + } + .js .dropbutton-multiple .dropbutton-widget { + background: none; + border-radius: 4px; + } + input.form-autocomplete, input.form-text, input.form-tel, input.form-email, input.form-url, input.form-search, input.form-number, input.form-color, input.form-file, textarea.form-textarea, select.form-select { + border-width: 1px; + } +} diff --git a/core/themes/seven/seven.libraries.yml b/core/themes/seven/seven.libraries.yml index 478f9923ae7..9ac9590c155 100644 --- a/core/themes/seven/seven.libraries.yml +++ b/core/themes/seven/seven.libraries.yml @@ -4,6 +4,7 @@ global-styling: base: css/base/elements.css: {} css/base/typography.css: {} + css/base/print.css: {} component: css/components/admin-list.css: {} css/components/admin-options.css: {}