13e7aa91f44862faac2fd79ff14dd36651d10f18
[lhc/web/wiklou.git] / skins / simple / rtl.css
1 /*
2 Right-to-left fixes for Simple.
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: 0 0.5em 0.3em 0.8em;
55 }
56
57 /* Fix alignment */
58 .documentByLine,
59 .portletDetails,
60 .portletMore {
61 text-align: left;
62 }
63
64 div div.thumbcaption {
65 text-align: right;
66 }
67
68 div.magnify,
69 #div.townBox,
70 #p-logo {
71 left: auto;
72 right: 0;
73 }
74
75 /* Fix margins for non-css2 browsers */
76 /* top right bottom left */
77
78 dd {
79 margin-left: 0;
80 margin-right: 1.6em;
81 }
82 #contentSub {
83 margin-right: 1em;
84 margin-left: 0;
85 }
86 .tocindent {
87 margin-left: 0;
88 margin-right: 2em;
89 }
90 div.tright, div.floatright, table.floatright {
91 clear: none;
92 }
93 div.tleft, div.floatleft, table.floatleft {
94 clear: left;
95 }
96 div.townBox {
97 margin-left: 0;
98 margin-right: 1em;
99 }
100 div.townBox dl dd {
101 margin-left: 0;
102 margin-right: 1.1em;
103 }
104
105 /* Fix link icons */
106 .external {
107 padding: 0 !important;
108 background: none !important;
109 }
110 #footer {
111 clear: both;
112 }
113 * html #footer {
114 margin-left: 0;
115 margin-right: 13.6em;
116 border-left: 0;
117 border-right: 1px solid #fabd23;
118 }
119 * html #column-content {
120 float: none;
121 margin-left: 0;
122 margin-right: 0;
123 }
124 * html #column-content #content {
125 margin-left: 0;
126 margin-top: 3em;
127 }
128 * html #column-one { right: 0; }
129
130 /* js pref toc */
131
132 #preftoc {
133 margin-right: 1em;
134 }
135
136 .errorbox, .successbox, #preftoc li, .prefsection fieldset {
137 float: right;
138 }
139
140 .prefsection {
141 padding-right: 2em;
142 }
143
144 /* workaround for moz bug, displayed bullets on left side */
145
146 #toc ul {
147 text-align: right;
148 }
149
150 #toc ul ul {
151 margin: 0 2em 0 0;
152 }
153
154 input#wpSave, input#wpDiff {
155 margin-right: 0;
156 margin-left: .33em;
157 }
158
159 #userlogin {
160 float: right;
161 margin: 0 0 1em 3em;
162 }
163 /* Convenience links to edit block and delete reasons */
164 p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
165 float: left;
166 }
167
168 .toggle {
169 margin-left: 0em;
170 margin-right: 2em;
171 }
172 table.filehistory th {
173 text-align: right;
174 }
175
176 /**
177 * Lists:
178 * The following lines don't have a visible effect on non-Gecko browsers
179 * They fix a problem ith Gecko browsers rendering lists to the right of
180 * left-floated objects in an RTL layout.
181 */
182 html > body div#bodyContent ul {
183 display: table;
184 }
185 html > body div#bodyContent ol {
186 display: table;
187 }