From c7a335c33ff924d18a95c0fa4617680005233dd7 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 12 Nov 2018 17:41:24 +0100 Subject: [PATCH] some print media css --- static/css/styles2.css | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/static/css/styles2.css b/static/css/styles2.css index 96d7bb23..69099bdf 100644 --- a/static/css/styles2.css +++ b/static/css/styles2.css @@ -660,10 +660,45 @@ } @media print { - header, user, nav, aside, footer { + .wrapper { + display: grid; + grid-template-areas: + "content" + "ad" + } + + header, ad, user, nav, aside, footer { display: none; } + body { + color:#000; + background: #fff; + } + + body, content { + width: 100%; + display: block; + min-height: 100%; + } + + @page { + margin: 2cm; + } + + h1, h2, h3 { + page-break-after: avoid; + } + + ul, img { + page-break-inside: avoid; + } + + table tr td { + vertical-align: middle; + } +} + aside .cd-accordion-menu.animated label::before { /* this class is used if you're using jquery to animate the accordion */ -webkit-transition: -webkit-transform 0.3s;