Skip to content

Commit

Permalink
epub.css: a few updates for RTL documents
Browse files Browse the repository at this point in the history
Just invert margin-left/right where they are not balanced.
  • Loading branch information
poire-z committed Sep 28, 2019
1 parent 7ba6985 commit 60a8700
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cr3gui/data/epub.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -86,6 +94,10 @@ dt {
dd {
margin-left: 1.3em;
}
dd:dir(rtl) {
margin-left: 0;
margin-right: 1.3em;
}

/* Tables */
table {
Expand Down

0 comments on commit 60a8700

Please sign in to comment.