From 2751892e1273a0bc998084daffe476beb30757b8 Mon Sep 17 00:00:00 2001 From: Daniel Hug Date: Sat, 19 Apr 2014 00:02:03 -0700 Subject: [PATCH] CSS: Only show preview pane to printer --- public/res/styles/main.less | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/public/res/styles/main.less b/public/res/styles/main.less index f13c24b1..2ed6cb42 100644 --- a/public/res/styles/main.less +++ b/public/res/styles/main.less @@ -1375,3 +1375,29 @@ div.jGrowl { .box-shadow(none); } } + + +/************************************** + * Only show preview pane to printer + **************************************/ + +@media print { + html, body, .preview-container { + overflow: visible !important; + } + + body > :not(.preview-container) { + display: none !important; + } + + .preview-container { + width: auto !important; + height: auto !important; + position: static !important; + } + + #preview-contents { + max-width: none !important; + margin-bottom: 0 !important; + } +}