From c4363b1f5eb24c63318e8262a3ab136c9df7fa4a Mon Sep 17 00:00:00 2001 From: Martin Pohlack Date: Sat, 23 May 2020 20:41:16 +0200 Subject: [PATCH] Cleanup epub style Drop the unused parts, elements which do not actually occur in generated epubs. Also, more consistently format the CSS. Further, reduce the image size and move it to the right, so that screen-real-estate is not wasted. Fixes #1001. Signed-off-by: Martin Pohlack --- data/style/epubdefault.css | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/data/style/epubdefault.css b/data/style/epubdefault.css index 178a7edc3..d52fe3475 100644 --- a/data/style/epubdefault.css +++ b/data/style/epubdefault.css @@ -1,15 +1,8 @@ -div.recipe, div.index { font-style: Times, Serif; font-size: 12pt; margin-left: 7%; margin-right: 10%; padding: 1em; margin-top: 1em;} -div.recipe img {float: right; padding: 1em} body {} -span.label { font-weight: bold;min-width: 10em; display: inline-block;} -p.title { font-size: 120%; text-align: center} -p.title span.label {display: none} +span.label { font-weight: bold; min-width: 10em; display: inline-block;} div.header p {margin-top: 0; margin-bottom: 0.2em} -div.ing { padding: 1em; border: solid 1px; background-color: #eef} ul.ing { padding-left: 0.6em; } li.ing { list-style: none; border-top: 0.3em } -div.ingamount{ display:inline-block; min-width:3em;} -div.ingunit{ display:inline-block; min-width:3em;} -img{ max-width: 90%; display: block; margin-left: auto; margin-right: auto; } -div.header{margin-top: 1em; margin-bottom: 1em;} -div.ing h2{margin-top: 0} +div.ingamount { display:inline-block; min-width: 3em;} +div.ingunit { display:inline-block; min-width: 3em;} +img { max-width: 45%; display: block; float: right; }