Typo
[mediawiki.git] / skins / monobook / rtl.css
blobfbd5ab35eafb4447c31d68d2448e7a79afcd2b7d
1 /*
2 Right-to-left fixes for MonoBook.
3 Places sidebar on right, tweaks various alignment issues.
5 Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
7 Safari bugs (1.2.1):
8 * Tabs are still appearing in left-to-right order. (Try after localizing)
10 Opera bugs (7.23 linux):
11 * Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
13 IE/mac bugs:
14 * The thing barfs on Hebrew and Arabic anyway, so no point testing.
16 Missing features due to lack of support:
17 * external link icons
19 To test:
20 * Opera6
21 * IE 5.0
22 * etc
25 body {
26 direction: rtl;
27 unicode-bidi: embed;
29 #column-content {
30 margin: 0 -12.2em 0 0;
31 float: left;
33 #column-content #content{
34 margin-left: 0;
35 margin-right: 12.2em;
36 border-right: 1px solid #aaaaaa;
37 border-left: none;
39 html > body .portlet {
40 float: right;
41 clear: right;
43 .editsection {
44 float: left;
45 margin-right: 5px;
46 margin-left: 0; /* bug 9122: undo default LTR */
48 /* recover IEMac (might be fine with the float, but usually it's close to IE */
49 *>body .portlet {
50 float: none;
51 clear: none;
53 .pBody {
54 padding-right: 0.8em;
55 padding-left: 0.5em;
58 /* Fix alignment */
59 .documentByLine,
60 .portletDetails,
61 .portletMore,
62 #p-personal {
63 text-align: left;
66 div div.thumbcaption {
67 text-align: right;
70 div.magnify,
71 #p-logo {
72 left: auto;
73 right: 0;
75 #p-personal {
76 left: auto;
77 right: 0;
80 #p-cactions {
81 left: auto;
82 right: 11.5em;
83 padding-left: 0;
84 padding-right: 1em;
86 #p-cactions li {
87 margin-left: 0.3em;
88 margin-right: 0;
89 float: right;
91 * html #p-cactions li a {
92 display: block;
93 padding-bottom: 0;
95 * html #p-cactions li a:hover {
96 padding-bottom: 0.2em;
98 /* offsets to distinguish the tab groups */
99 li#ca-talk {
100 margin-right: auto;
101 margin-left: 1.6em;
103 li#ca-watch,li#ca-unwatch {
104 margin-right: 1.6em !important;
107 /* Fix margins for non-css2 browsers */
108 /* top right bottom left */
110 ul {
111 margin-left: 0;
112 margin-right: 1.5em;
114 ol {
115 margin-left: 0;
116 margin-right: 2.4em;
118 dd {
119 margin-left: 0;
120 margin-right: 1.6em;
122 #contentSub {
123 margin-right: 1em;
124 margin-left: 0;
126 .tocindent {
127 margin-left: 0;
128 margin-right: 2em;
130 div.tright, div.floatright, table.floatright {
131 clear: none;
133 div.tleft, div.floatleft, table.floatleft {
134 clear: left;
136 #p-personal li {
137 margin-left: 0;
138 margin-right: 1em;
141 li#ca-talk,
142 li#ca-watch {
143 margin-right: auto;
144 margin-left: 1.6em;
147 #p-personal li {
148 float: left;
150 /* Fix link icons */
151 .external {
152 padding: 0 !important;
153 background: none !important;
155 #footer {
156 clear: both;
158 * html #footer {
159 margin-left: 0;
160 margin-right: 13.6em;
161 border-left: 0;
162 border-right: 1px solid #fabd23;
164 * html #column-content {
165 float: none;
166 margin-left: 0;
167 margin-right: 0;
169 * html #column-content #content {
170 margin-left: 0;
171 margin-top: 3em;
173 * html #column-one { right: 0; }
175 /* js pref toc */
177 #preftoc {
178 margin-right: 1em;
181 .errorbox, .successbox, #preftoc li, .prefsection fieldset {
182 float: right;
185 .prefsection {
186 padding-right: 2em;
189 /* workaround for moz bug, displayed bullets on left side */
191 #toc ul {
192 text-align: right;
195 #toc ul ul {
196 margin: 0 2em 0 0;
199 input#wpSave, input#wpDiff {
200 margin-right: 0;
201 margin-left: .33em;
204 #userlogin {
205 float: right;
206 margin: 0 0 1em 3em;
208 /* Convenience links to edit block, delete and protect reasons */
209 p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
210 p.mw-filedelete-editreasons, p.mw-delete-editreasons {
211 float: left;
214 .toggle {
215 margin-left: 0em;
216 margin-right: 2em;
218 table.filehistory th {
219 text-align: right;
223 * Lists:
224 * The following lines don't have a visible effect on non-Gecko browsers
225 * They fix a problem ith Gecko browsers rendering lists to the right of
226 * left-floated objects in an RTL layout.
228 html > body div#bodyContent ul {
229 display: table;
231 html > body div#bodyContent ul#filetoc {
232 display: block;