diff --git a/modules/print/print_pdf/print_pdf.pages.inc b/modules/print/print_pdf/print_pdf.pages.inc index bc9e35a..ea31415 100644 --- a/modules/print/print_pdf/print_pdf.pages.inc +++ b/modules/print/print_pdf/print_pdf.pages.inc @@ -85,6 +85,8 @@ function print_pdf_generate_path($path, $cid = NULL, $pdf_filename = NULL) { return; } + $print['body_class'] = 'print-pdf'; + // Img elements must be set to absolute $pattern = '!<(img\s[^>]*?)>!is'; $print['content'] = preg_replace_callback($pattern, '_print_rewrite_urls', $print['content']); diff --git a/themes/zuitedesk/css/suitedesk.css b/themes/zuitedesk/css/suitedesk.css index 8610663..005ee8f 100644 --- a/themes/zuitedesk/css/suitedesk.css +++ b/themes/zuitedesk/css/suitedesk.css @@ -1212,25 +1212,25 @@ div.field-items img.imagefield[class$="_image"] { width: auto\9; /* IE8 */ } @media (max-width: 889px) { - div.stormfields { + body:not(.print-pdf) div.stormfields { margin-bottom: 0; } - div.stormfields div.label, - body.suitedesk div.field-label { + body:not(.print-pdf) div.stormfields div.label, + body:not(.print-pdf).suitedesk div.field-label { float: none; width: auto; line-height: 1.2em; } - div.stormfields div.value, - body.suitedesk div.field-items { + body:not(.print-pdf) div.stormfields div.value, + body:not(.print-pdf).suitedesk div.field-items { margin-left: 0; margin-right: 44%; line-height: 2em; } } @media (max-width: 529px) { - div.stormfields div.value, - body.suitedesk div.field-items { + body:not(.print-pdf) div.stormfields div.value, + body:not(.print-pdf).suitedesk div.field-items { margin-right: 0; } } /* diff --git a/themes/zuitedesk/templates/print.tpl.php b/themes/zuitedesk/templates/print.tpl.php index 52ab1b1..3b22ee9 100644 --- a/themes/zuitedesk/templates/print.tpl.php +++ b/themes/zuitedesk/templates/print.tpl.php @@ -22,7 +22,7 @@ - + '. $print['message'] .'';