From f8fcc83e6dc4e137fdb7f5cd58bef1bb9748f1ac Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 8 Apr 2018 17:17:25 +0200 Subject: [PATCH] changes --- rowers/templates/plannedsessions_print.html | 2 +- static/css/rowsandall.css | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/rowers/templates/plannedsessions_print.html b/rowers/templates/plannedsessions_print.html index f91ac599..34b065fc 100644 --- a/rowers/templates/plannedsessions_print.html +++ b/rowers/templates/plannedsessions_print.html @@ -63,7 +63,7 @@ Courses {% for ps in plannedsessions %} -
+

Session {{ ps.name }}

diff --git a/static/css/rowsandall.css b/static/css/rowsandall.css index 60918ee3..776bfd55 100644 --- a/static/css/rowsandall.css +++ b/static/css/rowsandall.css @@ -85,7 +85,21 @@ a:hover { text-decoration: underline; } +@media print { + h1 { + page-break-before: always; + page-break-after: avoid; + } + + h3, h4 { + page-break-after: avoid; + } + pre, blockquote, table { + page-break-inside: avoid; + } + +} h1 {