From fa3f1cdf6ca6a04d554f8503da35ef51d6b33e2f Mon Sep 17 00:00:00 2001 From: poire-z Date: Sat, 28 Sep 2019 22:53:05 +0200 Subject: [PATCH] epub.css: a few updates for RTL documents Just invert margin-left/right where they are not balanced. --- cr3gui/data/epub.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cr3gui/data/epub.css b/cr3gui/data/epub.css index ca157f46c..f94f33db8 100644 --- a/cr3gui/data/epub.css +++ b/cr3gui/data/epub.css @@ -51,6 +51,10 @@ blockquote { margin-left: 2em; margin-right: 1em; } +blockquote:dir(rtl) { + margin-left: 1em; + margin-right: 2em; +} hr { height: 2px; background-color: #808080; @@ -69,6 +73,10 @@ ol { list-style-type: decimal; margin-left: 1em; } +ul:dir(rtl), ol:dir(rtl) { + margin-left: 0; + margin-right: 1em; +} li { display: list-item; text-indent: 0; @@ -86,6 +94,10 @@ dt { dd { margin-left: 1.3em; } +dd:dir(rtl) { + margin-left: 0; + margin-right: 1.3em; +} /* Tables */ table {