Skip to content

Commit a177856

Browse files
committed
book: render the Persian translation right-to-left
The Persian translation needs to be rendered right-to-left, as suggested in progit/progit2-fa#1 (comment). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent caa9023 commit a177856

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/sass/book.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ ol.book-toc {
156156
margin: -20px 40px 0 40px;
157157
}
158158

159+
#content[dir="rtl"] .book-wrapper {
160+
float: left;
161+
}
162+
159163
@media (min-width: $mobile-m) {
160164
.book-toc {
161165
width: 60%

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h1>Redirecting&hellip;</h1>
9393
<div class="inner">
9494
<div id="content-wrapper">
9595
{{ partial "sidebar.html" . }}
96-
<div id="content">
96+
<div id="content"{{ if eq "fa" .Params.book.language_code }} dir="rtl"{{ end }}>
9797
{{ if isset .Params.book "front_page" }}
9898
{{ partial "book-front-page.html" . }}
9999
{{ else }}

0 commit comments

Comments
 (0)