rtl.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. Right-to-left fixes for Simple.
  3. Places sidebar on right, tweaks various alignment issues.
  4. Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
  5. Safari bugs (1.2.1):
  6. * Tabs are still appearing in left-to-right order. (Try after localizing)
  7. Opera bugs (7.23 linux):
  8. * Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
  9. IE/mac bugs:
  10. * The thing barfs on Hebrew and Arabic anyway, so no point testing.
  11. Missing features due to lack of support:
  12. * external link icons
  13. To test:
  14. * Opera6
  15. * IE 5.0
  16. * etc
  17. */
  18. body {
  19. direction: rtl;
  20. unicode-bidi: embed;
  21. }
  22. #column-content {
  23. margin: 0 -12.2em 0 0;
  24. float: left;
  25. }
  26. #column-content #content{
  27. margin-left: 0;
  28. margin-right: 12.2em;
  29. border-right: 1px solid #aaaaaa;
  30. border-left: none;
  31. }
  32. html>body .portlet {
  33. float: right;
  34. clear: right;
  35. }
  36. .editsection {
  37. float: left;
  38. margin-right: 5px;
  39. margin-left: 0; /* bug 9122: undo default LTR */
  40. }
  41. /* recover IEMac (might be fine with the float, but usually it's close to IE */
  42. *>body .portlet {
  43. float: none;
  44. clear: none;
  45. }
  46. .pBody {
  47. padding: 0 0.5em 0.3em 0.8em;
  48. }
  49. /* Fix alignment */
  50. .documentByLine,
  51. .portletDetails,
  52. .portletMore {
  53. text-align: left;
  54. }
  55. div div.thumbcaption {
  56. text-align: right;
  57. }
  58. div.magnify,
  59. #p-logo {
  60. left: auto;
  61. right: 0;
  62. }
  63. /* Fix margins for non-css2 browsers */
  64. /* top right bottom left */
  65. dd {
  66. margin-left: 0;
  67. margin-right: 1.6em;
  68. }
  69. #contentSub {
  70. margin-right: 1em;
  71. margin-left: 0;
  72. }
  73. .tocindent {
  74. margin-left: 0;
  75. margin-right: 2em;
  76. }
  77. div.tright, div.floatright, table.floatright {
  78. clear: none;
  79. }
  80. div.tleft, div.floatleft, table.floatleft {
  81. clear: left;
  82. }
  83. /* Fix link icons */
  84. .external, a.feedlink {
  85. padding: 0 !important;
  86. background: none !important;
  87. }
  88. #footer {
  89. clear: both;
  90. }
  91. * html #footer {
  92. margin-left: 0;
  93. margin-right: 13.6em;
  94. border-left: 0;
  95. border-right: 1px solid #fabd23;
  96. }
  97. * html #column-content {
  98. float: none;
  99. margin-left: 0;
  100. margin-right: 0;
  101. }
  102. * html #column-content #content {
  103. margin-left: 0;
  104. margin-top: 3em;
  105. }
  106. * html #column-one { right: 0; }
  107. /* js pref toc */
  108. #preftoc {
  109. margin-right: 1em;
  110. }
  111. .errorbox, .successbox, #preftoc li, .prefsection fieldset {
  112. float: right;
  113. }
  114. .prefsection {
  115. padding-right: 2em;
  116. }
  117. /* workaround for moz bug, displayed bullets on left side */
  118. #toc ul {
  119. text-align: right;
  120. }
  121. #toc ul ul {
  122. margin: 0 2em 0 0;
  123. }
  124. input#wpSave, input#wpDiff {
  125. margin-right: 0;
  126. margin-left: .33em;
  127. }
  128. #userlogin {
  129. float: right;
  130. margin: 0 0 1em 3em;
  131. }
  132. /* Convenience links to edit block, delete and protect reasons */
  133. p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
  134. p.mw-filedelete-editreasons, p.mw-delete-editreasons {
  135. float: left;
  136. }
  137. .toggle {
  138. margin-left: 0em;
  139. margin-right: 2em;
  140. }
  141. table.filehistory th {
  142. text-align: right;
  143. }
  144. /**
  145. * Lists:
  146. * The following lines don't have a visible effect on non-Gecko browsers
  147. * They fix a problem ith Gecko browsers rendering lists to the right of
  148. * left-floated objects in an RTL layout.
  149. */
  150. html > body div#bodyContent ul {
  151. display: table;
  152. }
  153. /* Special:Prefixindex styling */
  154. td#mw-prefixindex-nav-form {
  155. text-align: left;
  156. }