Apply live hack from Wikimedia code base -- remove unused commented-out checker patte...
[lhc/web/wiklou.git] / skins / simple / 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 .editsection {
45 float: left;
46 margin-right: 5px;
47 margin-left: 0; /* bug 9122: undo default LTR */
48 }
49 /* recover IEMac (might be fine with the float, but usually it's close to IE */
50 *>body .portlet {
51 float: none;
52 clear: none;
53 }
54 .pBody {
55 padding: 0 0.5em 0.3em 0.8em;
56 }
57
58 /* Fix alignment */
59 .documentByLine,
60 .portletDetails,
61 .portletMore {
62 text-align: left;
63 }
64
65 div div.thumbcaption {
66 text-align: right;
67 }
68
69 div.magnify,
70 #div.townBox,
71 #p-logo {
72 left: auto;
73 right: 0;
74 }
75
76 /* Fix margins for non-css2 browsers */
77 /* top right bottom left */
78
79 dd {
80 margin-left: 0;
81 margin-right: 1.6em;
82 }
83 #contentSub {
84 margin-right: 1em;
85 margin-left: 0;
86 }
87 .tocindent {
88 margin-left: 0;
89 margin-right: 2em;
90 }
91 div.tright, div.floatright, table.floatright {
92 clear: none;
93 }
94 div.tleft, div.floatleft, table.floatleft {
95 clear: left;
96 }
97 div.townBox {
98 margin-left: 0;
99 margin-right: 1em;
100 }
101 div.townBox dl dd {
102 margin-left: 0;
103 margin-right: 1.1em;
104 }
105
106 /* Fix link icons */
107 .external {
108 padding: 0 !important;
109 background: none !important;
110 }
111 #footer {
112 clear: both;
113 }
114 * html #footer {
115 margin-left: 0;
116 margin-right: 13.6em;
117 border-left: 0;
118 border-right: 1px solid #fabd23;
119 }
120 * html #column-content {
121 float: none;
122 margin-left: 0;
123 margin-right: 0;
124 }
125 * html #column-content #content {
126 margin-left: 0;
127 margin-top: 3em;
128 }
129 * html #column-one { right: 0; }
130
131 /* js pref toc */
132
133 #preftoc {
134 margin-right: 1em;
135 }
136
137 .errorbox, .successbox, #preftoc li, .prefsection fieldset {
138 float: right;
139 }
140
141 .prefsection {
142 padding-right: 2em;
143 }
144
145 /* workaround for moz bug, displayed bullets on left side */
146
147 #toc ul {
148 text-align: right;
149 }
150
151 #toc ul ul {
152 margin: 0 2em 0 0;
153 }
154
155 input#wpSave, input#wpDiff {
156 margin-right: 0;
157 margin-left: .33em;
158 }
159
160 #userlogin {
161 float: right;
162 margin: 0 0 1em 3em;
163 }
164 /* Unblock and Ipblocklist links of Special:Blockip */
165 p.mw-ipb-conveniencelinks {
166 float: left;
167 }
168
169 .toggle {
170 margin-left: 0em;
171 margin-right: 2em;
172 }
173 table.filehistory th {
174 text-align: right;
175 }