summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-12-11 16:47:36 +0100
committerAlex Pott2014-12-11 16:47:36 +0100
commit7aef0c75cbe6c4ad51fb9602c11033eecab6c2a7 (patch)
treea54a02622688b77a011056d4e46578ca1ef5cacf
parent2775f31111c83749fb6fecb13ea77e99eedc1aa4 (diff)
Issue #1892006 by Outi, tompagabor, sqndr, BarisW, herom, skippednote, LewisNyman, vermario, frankbaele, criscom, kid_icarus, lauriii, jlyon, eporama: Include a print styling for Seven
-rw-r--r--core/themes/seven/css/base/print.css79
-rw-r--r--core/themes/seven/seven.libraries.yml1
2 files changed, 80 insertions, 0 deletions
diff --git a/core/themes/seven/css/base/print.css b/core/themes/seven/css/base/print.css
new file mode 100644
index 0000000..871baa1
--- /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 478f992..9ac9590 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: {}