Index: trunk/phase3/skins/Vector.php |
— | — | @@ -42,6 +42,17 @@ |
43 | 43 | $wgStylePath . |
44 | 44 | '/vector/csshover.htc")}</style><![endif]-->' |
45 | 45 | ); |
| 46 | + // Append common IE fixes, which perhaps should be included in all |
| 47 | + // skins, but for now it seems each skin needs to include them |
| 48 | + // explicitly |
| 49 | + $out->addScript( |
| 50 | + '<!--[if lt IE 7]><script type="' . $wgJsMimeType . '" src="' . |
| 51 | + $wgStylePath . |
| 52 | + '/common/IEFixes.js?' . |
| 53 | + $wgStyleVersion . |
| 54 | + '"></script>' . |
| 55 | + '<meta http-equiv="imagetoolbar" content="no" /><![endif]-->' |
| 56 | + ); |
46 | 57 | } |
47 | 58 | /** |
48 | 59 | * Builds a structured array of links used for tabs and menus |
Index: trunk/phase3/skins/vector/main-ltr.css |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | margin: 0; |
23 | 23 | padding: 0; |
24 | 24 | font-family: sans-serif; |
25 | | - font-size: small; |
| 25 | + font-size: 9.75pt; |
26 | 26 | } |
27 | 27 | body { |
28 | 28 | background-color: #f3f3f3; |
— | — | @@ -190,14 +190,15 @@ |
191 | 191 | /* Variants and Actions */ |
192 | 192 | /* @noflip */ |
193 | 193 | div.vectorMenu { |
| 194 | + direction: ltr; |
194 | 195 | float: left; |
195 | | - direction: ltr; |
196 | | - } |
197 | | - div.vectorMenu { |
198 | 196 | background-image: url(images/arrow-down-icon.png); |
199 | 197 | background-position: center center; |
200 | 198 | background-repeat: no-repeat; |
201 | 199 | } |
| 200 | + body.rtl div.vectorMenu { |
| 201 | + direction: rtl; |
| 202 | + } |
202 | 203 | /* @noflip */ |
203 | 204 | div.vectorMenu h5 { |
204 | 205 | float: left; |
— | — | @@ -220,7 +221,21 @@ |
221 | 222 | position: relative; |
222 | 223 | display: none; |
223 | 224 | clear: both; |
| 225 | + text-align: left; |
224 | 226 | } |
| 227 | + /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
| 228 | + body.rtl div.vectorMenu div.menu { |
| 229 | + margin-right: 24px; |
| 230 | + } |
| 231 | + /* IGNORED BY IE6 */ |
| 232 | + body.rtl div.vectorMenu > div.menu { |
| 233 | + margin-right: auto; |
| 234 | + } |
| 235 | + /* Fixes old versions of FireFox */ |
| 236 | + body.rtl div.vectorMenu > div.menu, |
| 237 | + x:-moz-any-link { |
| 238 | + margin-right: 24px; |
| 239 | + } |
225 | 240 | div.vectorMenu:hover div.menu { |
226 | 241 | display: block; |
227 | 242 | } |
— | — | @@ -233,7 +248,13 @@ |
234 | 249 | padding: 0; |
235 | 250 | margin: 0; |
236 | 251 | margin-left: -1px; |
| 252 | + text-align: left; |
237 | 253 | } |
| 254 | + /* Fixes old versions of FireFox */ |
| 255 | + div.vectorMenu ul, |
| 256 | + x:-moz-any-link { |
| 257 | + min-width: 6em; |
| 258 | + } |
238 | 259 | div.vectorMenu li { |
239 | 260 | padding: 0; |
240 | 261 | margin: 0; |
Index: trunk/phase3/skins/vector/main-rtl.css |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | margin: 0; |
23 | 23 | padding: 0; |
24 | 24 | font-family: sans-serif; |
25 | | - font-size: small; |
| 25 | + font-size: 9.75pt; |
26 | 26 | } |
27 | 27 | body { |
28 | 28 | background-color: #f3f3f3; |
— | — | @@ -190,14 +190,15 @@ |
191 | 191 | /* Variants and Actions */ |
192 | 192 | /* @noflip */ |
193 | 193 | div.vectorMenu { |
| 194 | + direction: ltr; |
194 | 195 | float: left; |
195 | | - direction: ltr; |
196 | | - } |
197 | | - div.vectorMenu { |
198 | 196 | background-image: url(images/arrow-down-icon.png); |
199 | 197 | background-position: center center; |
200 | 198 | background-repeat: no-repeat; |
201 | 199 | } |
| 200 | + body.rtl div.vectorMenu { |
| 201 | + direction: rtl; |
| 202 | + } |
202 | 203 | /* @noflip */ |
203 | 204 | div.vectorMenu h5 { |
204 | 205 | float: left; |
— | — | @@ -220,7 +221,21 @@ |
221 | 222 | position: relative; |
222 | 223 | display: none; |
223 | 224 | clear: both; |
| 225 | + text-align: right; |
224 | 226 | } |
| 227 | + /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
| 228 | + body.rtl div.vectorMenu div.menu { |
| 229 | + margin-left: 24px; |
| 230 | + } |
| 231 | + /* IGNORED BY IE6 */ |
| 232 | + body.rtl div.vectorMenu > div.menu { |
| 233 | + margin-left: auto; |
| 234 | + } |
| 235 | + /* Fixes old versions of FireFox */ |
| 236 | + body.rtl div.vectorMenu > div.menu, |
| 237 | + x:-moz-any-link { |
| 238 | + margin-left: 24px; |
| 239 | + } |
225 | 240 | div.vectorMenu:hover div.menu { |
226 | 241 | display: block; |
227 | 242 | } |
— | — | @@ -233,7 +248,13 @@ |
234 | 249 | padding: 0; |
235 | 250 | margin: 0; |
236 | 251 | margin-right: -1px; |
| 252 | + text-align: right; |
237 | 253 | } |
| 254 | + /* Fixes old versions of FireFox */ |
| 255 | + div.vectorMenu ul, |
| 256 | + x:-moz-any-link { |
| 257 | + min-width: 6em; |
| 258 | + } |
238 | 259 | div.vectorMenu li { |
239 | 260 | padding: 0; |
240 | 261 | margin: 0; |