From d24b44dae9dc962ab62e272da7f1be109ff0888f Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Sat, 7 May 2022 23:21:42 +0200 Subject: [PATCH] break before img --- print.css | 3 ++- style.css | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/print.css b/print.css index 93be84f..dd85e83 100644 --- a/print.css +++ b/print.css @@ -51,7 +51,8 @@ .cover, .contributions, .contribution, - .index { + .index, + .content img { break-before: page; } diff --git a/style.css b/style.css index 5228e41..8542fb4 100644 --- a/style.css +++ b/style.css @@ -144,6 +144,12 @@ dd { } +.content img { + width: 100%; + object-fit: contain; + height: auto; +} + @namespace svg url(http://www.w3.org/2000/svg); /* Necessary to select only SVG elements, and not also HTML's. See warning below */