Skip to content

Commit f1a98b0

Browse files
authored
Merge pull request #2003 from dscho/render-persian-translation-right-to-left
book: render the Persian translation right-to-left
2 parents 3c38897 + a177856 commit f1a98b0

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)