r67753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67752‎ | r67753 | r67754 >
Date:19:52, 9 June 2010
Author:catrope
Status:deferred (Comments)
Tags:
Comment:
1.16wmf4: Merge some Vector fixes from trunk: r67537, r67544, r67576, r67631, r67640, r67703
Modified paths:
  • /branches/wmf/1.16wmf4/skins (modified) (history)
  • /branches/wmf/1.16wmf4/skins/Vector.php (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-a.css (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-b.css (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-c.css (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/experiments/new-tabs.css (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/main-ltr.css (modified) (history)
  • /branches/wmf/1.16wmf4/skins/vector/main-rtl.css (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/skins/Vector.php
@@ -38,7 +38,7 @@
3939 // wait for the CSS file to load before fetching the HTC file.
4040 $out->addScript(
4141 '<!--[if lt IE 7]><style type="text/css">body{behavior:url("' .
42 - $wgLocalStylePath .
 42+ htmlspecialchars( $wgLocalStylePath ) .
4343 '/vector/csshover.htc")}</style><![endif]-->'
4444 );
4545 // Add extra stylesheets
@@ -55,7 +55,7 @@
5656 * @private
5757 */
5858 function buildNavigationUrls() {
59 - global $wgContLang, $wgLang, $wgOut, $wgUser, $wgRequest, $wgArticle, $wgStylePath;
 59+ global $wgContLang, $wgLang, $wgOut, $wgUser, $wgRequest, $wgArticle;
6060 global $wgDisableLangConversion, $wgVectorUseIconWatch;
6161
6262 wfProfileIn( __METHOD__ );
@@ -448,8 +448,8 @@
449449 // Output HTML Page
450450 $this->html( 'headelement' );
451451 ?>
452 - <div id="page-base" class="noprint"></div>
453 - <div id="head-base" class="noprint"></div>
 452+ <div id="mw-page-base" class="noprint"></div>
 453+ <div id="mw-head-base" class="noprint"></div>
454454 <!-- content -->
455455 <div id="content"<?php $this->html('specialpageattributes') ?>>
456456 <a id="top"></a>
@@ -483,7 +483,7 @@
484484 <?php if ( $this->data['showjumplinks'] ): ?>
485485 <!-- jumpto -->
486486 <div id="jump-to-nav">
487 - <?php $this->msg( 'jumpto' ) ?><a href="#head"><?php $this->msg( 'jumptonavigation' ) ?></a>,
 487+ <?php $this->msg( 'jumpto' ) ?> <a href="#head"><?php $this->msg( 'jumptonavigation' ) ?></a>,
488488 <a href="#p-search"><?php $this->msg( 'jumptosearch' ) ?></a>
489489 </div>
490490 <!-- /jumpto -->
@@ -507,7 +507,7 @@
508508 </div>
509509 <!-- /content -->
510510 <!-- header -->
511 - <div id="head" class="noprint">
 511+ <div id="mw-head" class="noprint">
512512 <?php $this->renderNavigation( 'PERSONAL' ); ?>
513513 <div id="left-navigation">
514514 <?php $this->renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?>
@@ -518,7 +518,7 @@
519519 </div>
520520 <!-- /header -->
521521 <!-- panel -->
522 - <div id="panel" class="noprint">
 522+ <div id="mw-panel" class="noprint">
523523 <!-- logo -->
524524 <div id="p-logo"><a style="background-image: url(<?php $this->text( 'logopath' ) ?>);" href="<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?php echo $this->skin->tooltipAndAccesskey( 'p-logo' ) ?>></a></div>
525525 <!-- /logo -->
@@ -661,7 +661,7 @@
662662 * when UI is in RTL mode
663663 */
664664 private function renderNavigation( $elements ) {
665 - global $wgContLang, $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgStylePath;
 665+ global $wgContLang, $wgVectorUseSimpleSearch, $wgVectorShowVariantName;
666666
667667 // If only one element was given, wrap it in an array, allowing more
668668 // flexible arguments
Property changes on: branches/wmf/1.16wmf4/skins/Vector.php
___________________________________________________________________
Name: svn:mergeinfo
669669 - /branches/wmf-deployment/skins/Vector.php:60970
/trunk/phase3/skins/Vector.php:63545-63546,63549,63643,63764,63897-63901,65015,65387,65391,65555,65590,66374,66403
670670 + /branches/wmf-deployment/skins/Vector.php:60970
/trunk/phase3/skins/Vector.php:63545-63546,63549,63643,63764,63897-63901,65015,65387,65391,65555,65590,66374,66403,67537,67544,67576,67631,67640,67703
Index: branches/wmf/1.16wmf4/skins/vector/experiments/new-tabs.css
@@ -191,7 +191,7 @@
192192 direction: rtl;
193193 }
194194 /* @noflip */
195 - body #head div.vectorMenu h5 {
 195+ body #mw-head div.vectorMenu h5 {
196196 background-image: url(../images/arrow-down-icon.png);
197197 background-position: center center;
198198 background-repeat: no-repeat;
@@ -319,4 +319,4 @@
320320 }
321321 .wikiEditor-ui-tabs div.current a {
322322 background: #FFFFFF;
323 -}
\ No newline at end of file
 323+}
Index: branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-a.css
@@ -13,7 +13,7 @@
1414 }
1515
1616 /* Framework */
17 -#page-base {
 17+#mw-page-base {
1818 background-color: inherit !important;
1919 background-image: none !important;
2020 }
@@ -65,10 +65,10 @@
6666 font-family:sans-serif;
6767 font-weight:normal;
6868 }
69 -body #panel div.portal div.body {
 69+body #mw-panel div.portal div.body {
7070 background-image:url(images/new-portal-break-ltr.png);
7171 }
72 -body.rtl #panel div.portal div.body {
 72+body.rtl #mw-panel div.portal div.body {
7373 background-image:url(images/new-portal-break-rtl.png);
7474 }
7575 body div.vectorTabs li a, div.vectorTabs li a span{
@@ -101,7 +101,7 @@
102102 border: 1px solid #cccccc;
103103 background-color: #f7f7f7;
104104 }
105 -#panel div.portal h5 {
 105+#mw-panel div.portal h5 {
106106 font-weight:bold;
107107 margin-bottom:0;
108108 padding-bottom:0.05em;
Index: branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-b.css
@@ -8,7 +8,7 @@
99 }
1010
1111 /* Framework */
12 -#page-base {
 12+#mw-page-base {
1313 background-color: inherit !important;
1414 background-image: none !important;
1515 }
Index: branches/wmf/1.16wmf4/skins/vector/experiments/babaco-colors-c.css
@@ -1,7 +1,7 @@
22 /* Babaco Color Scheme C */
33
44 /* ridding ourselves of the gradient */
5 -#page-base {
 5+#mw-page-base {
66 background-color: inherit !important;
77 background-image: none !important;
88 }
@@ -53,7 +53,7 @@
5454 #toc h2, .toc h2 {
5555 font-weight:normal;
5656 }
57 -body #panel div.portal div.body {
 57+body #mw-panel div.portal div.body {
5858 background-image:url(images/new-portal-break-ltr.png);
5959 }
6060
@@ -77,7 +77,7 @@
7878 border: 1px solid #cccccc;
7979 background-color: #f7f7f7;
8080 }
81 -#panel div.portal h5 {
 81+#mw-panel div.portal h5 {
8282 font-weight:bold;
8383 margin-bottom:0;
8484 padding-bottom:0.05em;
Index: branches/wmf/1.16wmf4/skins/vector/main-ltr.css
@@ -37,14 +37,14 @@
3838 background-color: white;
3939 }
4040 /* Head */
41 -#page-base {
 41+#mw-page-base {
4242 height: 5em;
4343 background-color: white;
4444 background-image: url(images/page-fade.png?1);
4545 background-position: bottom left;
4646 background-repeat: repeat-x;
4747 }
48 -#head-base {
 48+#mw-head-base {
4949 margin-top: -5em;
5050 margin-left: 10em;
5151 height: 5em;
@@ -52,13 +52,13 @@
5353 background-position: bottom left;
5454 background-repeat: repeat-x;
5555 }
56 -#head {
 56+div#mw-head {
5757 position: absolute;
5858 top: 0;
5959 right: 0;
6060 width: 100%;
6161 }
62 -#head h5 {
 62+div#mw-head h5 {
6363 margin: 0;
6464 padding: 0;
6565 }
@@ -110,6 +110,7 @@
111111 /* @noflip */
112112 div.vectorTabs {
113113 float: left;
 114+ height: 2.5em;
114115 }
115116 div.vectorTabs {
116117 background-image: url(images/tab-break.png?1);
@@ -213,20 +214,20 @@
214215 }
215216 /* OVERRIDDEN BY COMPLIANT BROWSERS */
216217 /* @noflip */
217 - #head div.vectorMenu h5 {
 218+ div#mw-head div.vectorMenu h5 {
218219 float: left;
219220 background-image: url(images/tab-break.png?1);
220221 background-repeat: no-repeat;
221222 }
222223 /* IGNORED BY IE6 */
223 - #head div.vectorMenu > h5 {
 224+ div#mw-head div.vectorMenu > h5 {
224225 background-image: none;
225226 }
226 - #head div.vectorMenu h5 {
 227+ div#mw-head div.vectorMenu h5 {
227228 background-position: bottom left;
228229 margin-left: -1px;
229230 }
230 - #head div.vectorMenu h4 {
 231+ div#mw-head div.vectorMenu h4 {
231232 display: inline-block;
232233 float: left;
233234 font-size: 0.8em;
@@ -395,17 +396,17 @@
396397 background-color: silver;
397398 }
398399 /* Panel */
399 -#panel {
 400+div#mw-panel {
400401 position: absolute;
401402 top: 160px;
402403 padding-top: 1em;
403404 width: 10em;
404405 left: 0;
405406 }
406 - #panel div.portal {
 407+ div#mw-panel div.portal {
407408 padding-bottom: 1.5em;
408409 }
409 - #panel div.portal h5 {
 410+ div#mw-panel div.portal h5 {
410411 font-weight: normal;
411412 color: #444444;
412413 padding: 0.25em;
@@ -415,7 +416,7 @@
416417 border: none;
417418 font-size: 0.75em;
418419 }
419 - #panel div.portal div.body {
 420+ div#mw-panel div.portal div.body {
420421 margin: 0;
421422 padding-top: 0.5em;
422423 margin-left: 1.25em;
@@ -423,14 +424,14 @@
424425 background-repeat: no-repeat;
425426 background-position: top left;
426427 }
427 - #panel div.portal div.body ul {
 428+ div#mw-panel div.portal div.body ul {
428429 list-style: none;
429430 list-style-image: none;
430431 list-style-type: none;
431432 padding: 0;
432433 margin: 0;
433434 }
434 - #panel div.portal div.body ul li {
 435+ div#mw-panel div.portal div.body ul li {
435436 line-height: 1.125em;
436437 padding: 0;
437438 padding-bottom: 0.5em;
@@ -438,10 +439,10 @@
439440 overflow: hidden;
440441 font-size: 0.75em;
441442 }
442 - #panel div.portal div.body ul li a {
 443+ div#mw-panel div.portal div.body ul li a {
443444 color: #0645ad;
444445 }
445 - #panel div.portal div.body ul li a:visited {
 446+ div#mw-panel div.portal div.body ul li a:visited {
446447 color: #0b0080;
447448 }
448449 /* Footer */
Index: branches/wmf/1.16wmf4/skins/vector/main-rtl.css
@@ -37,14 +37,14 @@
3838 background-color: white;
3939 }
4040 /* Head */
41 -#page-base {
 41+#mw-page-base {
4242 height: 5em;
4343 background-color: white;
4444 background-image: url(images/page-fade.png?1);
4545 background-position: bottom right;
4646 background-repeat: repeat-x;
4747 }
48 -#head-base {
 48+#mw-head-base {
4949 margin-top: -5em;
5050 margin-right: 10em;
5151 height: 5em;
@@ -52,13 +52,13 @@
5353 background-position: bottom right;
5454 background-repeat: repeat-x;
5555 }
56 -#head {
 56+div#mw-head {
5757 position: absolute;
5858 top: 0;
5959 left: 0;
6060 width: 100%;
6161 }
62 -#head h5 {
 62+div#mw-head h5 {
6363 margin: 0;
6464 padding: 0;
6565 }
@@ -110,6 +110,7 @@
111111 /* @noflip */
112112 div.vectorTabs {
113113 float: left;
 114+ height: 2.5em;
114115 }
115116 div.vectorTabs {
116117 background-image: url(images/tab-break.png?1);
@@ -213,20 +214,20 @@
214215 }
215216 /* OVERRIDDEN BY COMPLIANT BROWSERS */
216217 /* @noflip */
217 - #head div.vectorMenu h5 {
 218+ div#mw-head div.vectorMenu h5 {
218219 float: left;
219220 background-image: url(images/tab-break.png?1);
220221 background-repeat: no-repeat;
221222 }
222223 /* IGNORED BY IE6 */
223 - #head div.vectorMenu > h5 {
 224+ div#mw-head div.vectorMenu > h5 {
224225 background-image: none;
225226 }
226 - #head div.vectorMenu h5 {
 227+ div#mw-head div.vectorMenu h5 {
227228 background-position: bottom right;
228229 margin-right: -1px;
229230 }
230 - #head div.vectorMenu h4 {
 231+ div#mw-head div.vectorMenu h4 {
231232 display: inline-block;
232233 float: right;
233234 font-size: 0.8em;
@@ -395,17 +396,17 @@
396397 background-color: silver;
397398 }
398399 /* Panel */
399 -#panel {
 400+div#mw-panel {
400401 position: absolute;
401402 top: 160px;
402403 padding-top: 1em;
403404 width: 10em;
404405 right: 0;
405406 }
406 - #panel div.portal {
 407+ div#mw-panel div.portal {
407408 padding-bottom: 1.5em;
408409 }
409 - #panel div.portal h5 {
 410+ div#mw-panel div.portal h5 {
410411 font-weight: normal;
411412 color: #444444;
412413 padding: 0.25em;
@@ -415,7 +416,7 @@
416417 border: none;
417418 font-size: 0.75em;
418419 }
419 - #panel div.portal div.body {
 420+ div#mw-panel div.portal div.body {
420421 margin: 0;
421422 padding-top: 0.5em;
422423 margin-right: 1.25em;
@@ -423,14 +424,14 @@
424425 background-repeat: no-repeat;
425426 background-position: top right;
426427 }
427 - #panel div.portal div.body ul {
 428+ div#mw-panel div.portal div.body ul {
428429 list-style: none;
429430 list-style-image: none;
430431 list-style-type: none;
431432 padding: 0;
432433 margin: 0;
433434 }
434 - #panel div.portal div.body ul li {
 435+ div#mw-panel div.portal div.body ul li {
435436 line-height: 1.125em;
436437 padding: 0;
437438 padding-bottom: 0.5em;
@@ -438,10 +439,10 @@
439440 overflow: hidden;
440441 font-size: 0.75em;
441442 }
442 - #panel div.portal div.body ul li a {
 443+ div#mw-panel div.portal div.body ul li a {
443444 color: #0645ad;
444445 }
445 - #panel div.portal div.body ul li a:visited {
 446+ div#mw-panel div.portal div.body ul li a:visited {
446447 color: #0b0080;
447448 }
448449 /* Footer */
Property changes on: branches/wmf/1.16wmf4/skins/vector
___________________________________________________________________
Name: svn:mergeinfo
449450 - /branches/wmf-deployment/skins/vector:60970
/trunk/phase3/skins/vector:63545-63546,63549,63643,63764,63897-63901,64456,65015,65383,65387,65391,65555,65590-65591,65965,66151,66158,66614
450451 + /branches/wmf-deployment/skins/vector:60970
/trunk/phase3/skins/vector:63545-63546,63549,63643,63764,63897-63901,64456,65015,65383,65387,65391,65555,65590-65591,65965,66151,66158,66614,67537,67544,67576,67631,67640,67703
Property changes on: branches/wmf/1.16wmf4/skins
___________________________________________________________________
Name: svn:mergeinfo
451452 - /branches/wmf-deployment/skins:60970
/trunk/phase3/skins:63545-63546,63549,63643,63764,63897-63901,65015,65387,65391,65555,65590
452453 + /branches/wmf-deployment/skins:60970
/trunk/phase3/skins:63545-63546,63549,63643,63764,63897-63901,65015,65387,65391,65555,65590,67537,67544,67576,67631,67640,67703

Follow-up revisions

RevisionCommit summaryAuthorDate
r680061.16wmf4: Fix r67753: incomplete merge of r67703catrope17:49, 14 June 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r67537(bug 23800) Add missing space between "Jump to:" and "navigation, search" in ...catrope14:20, 7 June 2010
r67544(bug 23570) Fix an instance of a javascript: link in corecatrope16:19, 7 June 2010
r67576Fixed CSS bug for Netfront (PS3). Ryan Kaldari Rules! (this was his find).tparscal00:29, 8 June 2010
r67631Escape for html $wgLocalStylePath....platonides16:12, 8 June 2010
r67640follow-up to r67631: add semicolon backashley16:55, 8 June 2010
r67703Prefix Vector specific ids (head-base|page-base|head|panel) with mw- per bug ......platonides11:28, 9 June 2010

Comments

#Comment by TheDJ (talk | contribs)   13:18, 11 June 2010

This skipped the wikibits.js change, and now accesskey tooltips are not properly updated on browsers.

#Comment by Catrope (talk | contribs)   17:50, 14 June 2010

Fixed in r68006.

Status & tagging log