(bug 14647) Remove unused 'townBox' class from global CSS.
[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: embed;
28 }
29 #column-content {
30 margin: 0 -12.2em 0 0;
31 float: left;
32 }
33 #column-content #content{
34 margin-left: 0;
35 margin-right: 12.2em;
36 border-right: 1px solid #aaaaaa;
37 border-left: none;
38 }
39 html > body .portlet {
40 float: right;
41 clear: right;
42 }
43 .editsection {
44 float: left;
45 margin-right: 5px;
46 margin-left: 0; /* bug 9122: undo default LTR */
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 #p-logo {
72 left: auto;
73 right: 0;
74 }
75 #p-personal {
76 left: auto;
77 right: 0;
78 }
79
80 #p-cactions {
81 left: auto;
82 right: 11.5em;
83 padding-left: 0;
84 padding-right: 1em;
85 }
86 #p-cactions li {
87 margin-left: 0.3em;
88 margin-right: 0;
89 float: right;
90 }
91 * html #p-cactions li a {
92 display: block;
93 padding-bottom: 0;
94 }
95 * html #p-cactions li a:hover {
96 padding-bottom: 0.2em;
97 }
98 /* offsets to distinguish the tab groups */
99 li#ca-talk {
100 margin-right: auto;
101 margin-left: 1.6em;
102 }
103 li#ca-watch,li#ca-unwatch {
104 margin-right: 1.6em !important;
105 }
106
107 /* Fix margins for non-css2 browsers */
108 /* top right bottom left */
109
110 ul {
111 margin-left: 0;
112 margin-right: 1.5em;
113 }
114 ol {
115 margin-left: 0;
116 margin-right: 2.4em;
117 }
118 dd {
119 margin-left: 0;
120 margin-right: 1.6em;
121 }
122 #contentSub {
123 margin-right: 1em;
124 margin-left: 0;
125 }
126 .tocindent {
127 margin-left: 0;
128 margin-right: 2em;
129 }
130 div.tright, div.floatright, table.floatright {
131 clear: none;
132 }
133 div.tleft, div.floatleft, table.floatleft {
134 clear: left;
135 }
136 #p-personal li {
137 margin-left: 0;
138 margin-right: 1em;
139 }
140
141 li#ca-talk,
142 li#ca-watch {
143 margin-right: auto;
144 margin-left: 1.6em;
145 }
146
147 #p-personal li {
148 float: left;
149 }
150 /* Fix link icons */
151 .external {
152 padding: 0 !important;
153 background: none !important;
154 }
155 #footer {
156 clear: both;
157 }
158 * html #footer {
159 margin-left: 0;
160 margin-right: 13.6em;
161 border-left: 0;
162 border-right: 1px solid #fabd23;
163 }
164 * html #column-content {
165 float: none;
166 margin-left: 0;
167 margin-right: 0;
168 }
169 * html #column-content #content {
170 margin-left: 0;
171 margin-top: 3em;
172 }
173 * html #column-one { right: 0; }
174
175 /* js pref toc */
176
177 #preftoc {
178 margin-right: 1em;
179 }
180
181 .errorbox, .successbox, #preftoc li, .prefsection fieldset {
182 float: right;
183 }
184
185 .prefsection {
186 padding-right: 2em;
187 }
188
189 /* workaround for moz bug, displayed bullets on left side */
190
191 #toc ul {
192 text-align: right;
193 }
194
195 #toc ul ul {
196 margin: 0 2em 0 0;
197 }
198
199 input#wpSave, input#wpDiff {
200 margin-right: 0;
201 margin-left: .33em;
202 }
203
204 #userlogin {
205 float: right;
206 margin: 0 0 1em 3em;
207 }
208 /* Convenience links to edit block and delete reasons */
209 p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
210 float: left;
211 }
212
213 .toggle {
214 margin-left: 0em;
215 margin-right: 2em;
216 }
217 table.filehistory th {
218 text-align: right;
219 }
220
221 /**
222 * Lists:
223 * The following lines don't have a visible effect on non-Gecko browsers
224 * They fix a problem ith Gecko browsers rendering lists to the right of
225 * left-floated objects in an RTL layout.
226 */
227 html > body div#bodyContent ul {
228 display: table;
229 }
230 html > body div#bodyContent ol {
231 display: table;
232 }
233 html > body div#bodyContent ul#filetoc {
234 display: block;
235 }