Skip to content

Commit 9b5ea85

Browse files
committed
Support RTL fully in HTML
تغییراتی که ارائه شده فهرست، تیترها، توضیحات عکس‌ها، هدر جداول و... را چپ به راست می‌کند.
1 parent 27dc32b commit 9b5ea85

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docinfo.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
<style>
2-
div, dl, dt, dd, ul, ol, li, h1, h2, h3, #toctitle, .sidebarblock>.content>.title, h4, h5, h6, form, p, blockquote, th, td, #content {
2+
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, #toctitle, .sidebarblock>.content>.title, form, p, blockquote, th, td, #content, .title {
33
direction: rtl;
4+
text-align: right; /* Fallback align for converted outputs such as Docx */
45
text-align: justify;
56
}
7+
code {
8+
direction: ltr;
9+
unicode-bidi: embed;
10+
}
11+
/* Force Right align to some elements */
12+
th, .title {
13+
text-align: right !important;
14+
}
15+
/* For TOC */
16+
ul[class^="sectlevel"] {
17+
margin-right: 1.25em;
18+
margin-left: 0;
19+
margin-bottom: 0;
20+
font-size: 1em;
21+
}
22+
/* For lists */
23+
ul, ol {
24+
margin-right: 1.5em;
25+
margin-left: 0;
26+
}
627
</style>

0 commit comments

Comments
 (0)