Skip to content

Commit

Permalink
Support RTL fully in HTML
Browse files Browse the repository at this point in the history
تغییراتی که ارائه شده فهرست، تیترها، توضیحات عکس‌ها، هدر جداول و... را چپ به راست می‌کند.
  • Loading branch information
Davoodeh committed Jun 1, 2020
1 parent 27dc32b commit 9b5ea85
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docinfo.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
<style>
div, dl, dt, dd, ul, ol, li, h1, h2, h3, #toctitle, .sidebarblock>.content>.title, h4, h5, h6, form, p, blockquote, th, td, #content {
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, #toctitle, .sidebarblock>.content>.title, form, p, blockquote, th, td, #content, .title {
direction: rtl;
text-align: right; /* Fallback align for converted outputs such as Docx */
text-align: justify;
}
code {
direction: ltr;
unicode-bidi: embed;
}
/* Force Right align to some elements */
th, .title {
text-align: right !important;
}
/* For TOC */
ul[class^="sectlevel"] {
margin-right: 1.25em;
margin-left: 0;
margin-bottom: 0;
font-size: 1em;
}
/* For lists */
ul, ol {
margin-right: 1.5em;
margin-left: 0;
}
</style>

0 comments on commit 9b5ea85

Please sign in to comment.