Revert last two commits. Broke wikibits and don't know how to fix it at the moment.
[lhc/web/wiklou.git] / skins / monobook / rtl.css
1 /*
2 Right-to-left fixes for MonoBook.
3 Places sidebar on right, tweaks various alignment issues.
4
5 Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
6
7 Safari bugs (1.2.1):
8 * Tabs are still appearing in left-to-right order. (Try after localizing)
9
10 Opera bugs (7.23 linux):
11 * Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
12
13 IE/mac bugs:
14 * The thing barfs on Hebrew and Arabic anyway, so no point testing.
15
16 Missing features due to lack of support:
17 * external link icons
18
19 To test:
20 * Opera6
21 * IE 5.0
22 * etc
23
24 */
25 body {
26 direction: rtl;
27 /* unicode-bidi: bidi-override;*/
28 unicode-bidi: embed;
29 }
30 #column-content {
31 margin: 0 -12.2em 0 0;
32 float: left;
33 }
34 #column-content #content{
35 margin-left: 0;
36 margin-right: 12.2em;
37 border-right: 1px solid #aaaaaa;
38 border-left: none;
39 }
40 html>body .portlet {
41 float: right;
42 clear: right;
43 }
44 div.editsection {
45 float: left;
46 margin-right: 5px;
47 }
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;
52 }
53 .pBody {
54 padding-right: 0.8em;
55 padding-left: 0.5em;
56 }
57
58 /* Fix alignment */
59 .documentByLine,
60 .portletDetails,
61 .portletMore,
62 #p-personal {
63 text-align: left;
64 }
65
66 div div.thumbcaption {
67 text-align: right;
68 }
69
70 div.magnify,
71 #div.townBox,
72 #p-logo {
73 left: auto;
74 right: 0;
75 }
76 #p-personal {
77 left: auto;
78 right: 0;
79 }
80
81 #p-cactions {
82 left: auto;
83 right: 11.5em;
84 padding-left: 0;
85 padding-right: 1em;
86 }
87 #p-cactions li {
88 margin-left: 0.3em;
89 margin-right: 0;
90 float: right;
91 }
92 * html #p-cactions li a {
93 display: block;
94 padding-bottom: 0;
95 }
96 * html #p-cactions li a:hover {
97 padding-bottom: 0.2em;
98 }
99 /* offsets to distinguish the tab groups */
100 li#ca-talk {
101 margin-right: auto;
102 margin-left: 1.6em;
103 }
104 li#ca-watch,li#ca-unwatch {
105 margin-right: 1.6em !important;
106 }
107
108 /* Fix margins for non-css2 browsers */
109 /* top right bottom left */
110
111 ul {
112 margin-left: 0;
113 margin-right: 1.5em;
114 }
115 ol {
116 margin-left: 0;
117 margin-right: 2.4em;
118 }
119 dd {
120 margin-left: 0;
121 margin-right: 1.6em;
122 }
123 #contentSub {
124 margin-right: 1em;
125 margin-left: 0;
126 }
127 .tocindent {
128 margin-left: 0;
129 margin-right: 2em;
130 }
131 div.tright, div.floatright, table.floatright {
132 clear: none;
133 }
134 div.tleft, div.floatleft, table.floatleft {
135 clear: left;
136 }
137 div.townBox {
138 margin-left: 0;
139 margin-right: 1em;
140 }
141 div.townBox dl dd {
142 margin-left: 0;
143 margin-right: 1.1em;
144 }
145 #p-personal li {
146 margin-left: 0;
147 margin-right: 1em;
148 }
149
150 li#ca-talk,
151 li#ca-watch {
152 margin-right: auto;
153 margin-left: 1.6em;
154 }
155
156 #p-personal li {
157 float: left;
158 }
159 /* Fix link icons */
160 .external {
161 padding: 0 !important;
162 background: none !important;
163 }
164 #footer {
165 clear: both;
166 }
167 * html #footer {
168 margin-left: 0;
169 margin-right: 13.6em;
170 border-left: 0;
171 border-right: 1px solid #fabd23;
172 }
173 * html #column-content {
174 float: none;
175 margin-left: 0;
176 margin-right: 0;
177 }
178 * html #column-content #content {
179 margin-left: 0;
180 margin-top: 3em;
181 }
182 * html #column-one { right: 0; }
183
184 /* js pref toc */
185
186 #preftoc {
187 margin-right: 1em;
188 }
189
190 .errorbox, .successbox, #preftoc li, .prefsection fieldset {
191 float: right;
192 }
193
194 .prefsection {
195 padding-right: 2em;
196 }
197
198 /* workaround for moz bug, displayed bullets on left side */
199
200 #toc ul {
201 text-align: right;
202 }
203
204 #toc ul ul {
205 margin: 0 2em 0 0;
206 }
207
208 input#wpSave, input#wpDiff {
209 margin-right: 0;
210 margin-left: .33em;
211 }
212
213 #userlogin {
214 float: right;
215 margin: 0 0 1em 3em;
216 }