r67703 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67702‎ | r67703 | r67704 >
Date:11:28, 9 June 2010
Author:platonides
Status:ok
Tags:
Comment:
Prefix Vector specific ids (head-base|page-base|head|panel) with mw- per bug 23597.
It may be a good idea to rename further the confusing head (eg. to mw-skin-head).
Lots of mentions of headers, <head>, document.getElementsByTagName('head')... but no real usage of that.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleNav/CollapsibleNav.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Vector/Vector.combined.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Vector/Vector.combined.min.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.min.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/vector.collapsibleNav.css (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/skins/Vector.php (modified) (history)
  • /trunk/phase3/skins/common/wikibits.js (modified) (history)
  • /trunk/phase3/skins/vector/experiments/babaco-colors-a.css (modified) (history)
  • /trunk/phase3/skins/vector/experiments/babaco-colors-b.css (modified) (history)
  • /trunk/phase3/skins/vector/experiments/babaco-colors-c.css (modified) (history)
  • /trunk/phase3/skins/vector/experiments/new-tabs.css (modified) (history)
  • /trunk/phase3/skins/vector/main-ltr.css (modified) (history)
  • /trunk/phase3/skins/vector/main-rtl.css (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/wikibits.js
@@ -247,7 +247,7 @@
248248 // optimization technique.
249249 var linkContainers = [
250250 'column-one', // Monobook and Modern
251 - 'head', 'panel', 'p-logo' // Vector
 251+ 'mw-head', 'mw-panel', 'p-logo' // Vector
252252 ];
253253 for ( var i in linkContainers ) {
254254 var linkContainer = document.getElementById( linkContainers[i] );
Index: trunk/phase3/skins/Vector.php
@@ -470,8 +470,8 @@
471471 // Output HTML Page
472472 $this->html( 'headelement' );
473473 ?>
474 - <div id="page-base" class="noprint"></div>
475 - <div id="head-base" class="noprint"></div>
 474+ <div id="mw-page-base" class="noprint"></div>
 475+ <div id="mw-head-base" class="noprint"></div>
476476 <!-- content -->
477477 <div id="content"<?php $this->html('specialpageattributes') ?>>
478478 <a id="top"></a>
@@ -529,7 +529,7 @@
530530 </div>
531531 <!-- /content -->
532532 <!-- header -->
533 - <div id="head" class="noprint">
 533+ <div id="mw-head" class="noprint">
534534 <?php $this->renderNavigation( 'PERSONAL' ); ?>
535535 <div id="left-navigation">
536536 <?php $this->renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?>
@@ -540,7 +540,7 @@
541541 </div>
542542 <!-- /header -->
543543 <!-- panel -->
544 - <div id="panel" class="noprint">
 544+ <div id="mw-panel" class="noprint">
545545 <!-- logo -->
546546 <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>
547547 <!-- /logo -->
Index: trunk/phase3/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: trunk/phase3/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: trunk/phase3/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: trunk/phase3/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: trunk/phase3/skins/vector/main-ltr.css
@@ -38,14 +38,14 @@
3939 color: black;
4040 }
4141 /* Head */
42 -#page-base {
 42+#mw-page-base {
4343 height: 5em;
4444 background-color: white;
4545 background-image: url(images/page-fade.png?1);
4646 background-position: bottom left;
4747 background-repeat: repeat-x;
4848 }
49 -#head-base {
 49+#mw-head-base {
5050 margin-top: -5em;
5151 margin-left: 10em;
5252 height: 5em;
@@ -53,13 +53,13 @@
5454 background-position: bottom left;
5555 background-repeat: repeat-x;
5656 }
57 -div#head {
 57+div#mw-head {
5858 position: absolute;
5959 top: 0;
6060 right: 0;
6161 width: 100%;
6262 }
63 -div#head h5 {
 63+div#mw-head h5 {
6464 margin: 0;
6565 padding: 0;
6666 }
@@ -215,20 +215,20 @@
216216 }
217217 /* OVERRIDDEN BY COMPLIANT BROWSERS */
218218 /* @noflip */
219 - div#head div.vectorMenu h5 {
 219+ div#mw-head div.vectorMenu h5 {
220220 float: left;
221221 background-image: url(images/tab-break.png?1);
222222 background-repeat: no-repeat;
223223 }
224224 /* IGNORED BY IE6 */
225 - div#head div.vectorMenu > h5 {
 225+ div#mw-head div.vectorMenu > h5 {
226226 background-image: none;
227227 }
228 - div#head div.vectorMenu h5 {
 228+ div#mw-head div.vectorMenu h5 {
229229 background-position: bottom left;
230230 margin-left: -1px;
231231 }
232 - div#head div.vectorMenu h4 {
 232+ div#mw-head div.vectorMenu h4 {
233233 display: inline-block;
234234 float: left;
235235 font-size: 0.8em;
@@ -386,17 +386,17 @@
387387 height: 100%;
388388 }
389389 /* Panel */
390 -div#panel {
 390+div#mw-panel {
391391 position: absolute;
392392 top: 160px;
393393 padding-top: 1em;
394394 width: 10em;
395395 left: 0;
396396 }
397 - div#panel div.portal {
 397+ div#mw-panel div.portal {
398398 padding-bottom: 1.5em;
399399 }
400 - div#panel div.portal h5 {
 400+ div#mw-panel div.portal h5 {
401401 font-weight: normal;
402402 color: #444444;
403403 padding: 0.25em;
@@ -406,7 +406,7 @@
407407 border: none;
408408 font-size: 0.75em;
409409 }
410 - div#panel div.portal div.body {
 410+ div#mw-panel div.portal div.body {
411411 margin: 0;
412412 padding-top: 0.5em;
413413 margin-left: 1.25em;
@@ -414,14 +414,14 @@
415415 background-repeat: no-repeat;
416416 background-position: top left;
417417 }
418 - div#panel div.portal div.body ul {
 418+ div#mw-panel div.portal div.body ul {
419419 list-style: none;
420420 list-style-image: none;
421421 list-style-type: none;
422422 padding: 0;
423423 margin: 0;
424424 }
425 - div#panel div.portal div.body ul li {
 425+ div#mw-panel div.portal div.body ul li {
426426 line-height: 1.125em;
427427 padding: 0;
428428 padding-bottom: 0.5em;
@@ -429,10 +429,10 @@
430430 overflow: hidden;
431431 font-size: 0.75em;
432432 }
433 - div#panel div.portal div.body ul li a {
 433+ div#mw-panel div.portal div.body ul li a {
434434 color: #0645ad;
435435 }
436 - div#panel div.portal div.body ul li a:visited {
 436+ div#mw-panel div.portal div.body ul li a:visited {
437437 color: #0b0080;
438438 }
439439 /* Footer */
Index: trunk/phase3/skins/vector/main-rtl.css
@@ -38,14 +38,14 @@
3939 color: black;
4040 }
4141 /* Head */
42 -#page-base {
 42+#mw-page-base {
4343 height: 5em;
4444 background-color: white;
4545 background-image: url(images/page-fade.png?1);
4646 background-position: bottom right;
4747 background-repeat: repeat-x;
4848 }
49 -#head-base {
 49+#mw-head-base {
5050 margin-top: -5em;
5151 margin-right: 10em;
5252 height: 5em;
@@ -53,13 +53,13 @@
5454 background-position: bottom right;
5555 background-repeat: repeat-x;
5656 }
57 -div#head {
 57+div#mw-head {
5858 position: absolute;
5959 top: 0;
6060 left: 0;
6161 width: 100%;
6262 }
63 -div#head h5 {
 63+div#mw-head h5 {
6464 margin: 0;
6565 padding: 0;
6666 }
@@ -215,20 +215,20 @@
216216 }
217217 /* OVERRIDDEN BY COMPLIANT BROWSERS */
218218 /* @noflip */
219 - div#head div.vectorMenu h5 {
 219+ div#mw-head div.vectorMenu h5 {
220220 float: left;
221221 background-image: url(images/tab-break.png?1);
222222 background-repeat: no-repeat;
223223 }
224224 /* IGNORED BY IE6 */
225 - div#head div.vectorMenu > h5 {
 225+ div#mw-head div.vectorMenu > h5 {
226226 background-image: none;
227227 }
228 - div#head div.vectorMenu h5 {
 228+ div#mw-head div.vectorMenu h5 {
229229 background-position: bottom right;
230230 margin-right: -1px;
231231 }
232 - div#head div.vectorMenu h4 {
 232+ div#mw-head div.vectorMenu h4 {
233233 display: inline-block;
234234 float: right;
235235 font-size: 0.8em;
@@ -386,17 +386,17 @@
387387 height: 100%;
388388 }
389389 /* Panel */
390 -div#panel {
 390+div#mw-panel {
391391 position: absolute;
392392 top: 160px;
393393 padding-top: 1em;
394394 width: 10em;
395395 right: 0;
396396 }
397 - div#panel div.portal {
 397+ div#mw-panel div.portal {
398398 padding-bottom: 1.5em;
399399 }
400 - div#panel div.portal h5 {
 400+ div#mw-panel div.portal h5 {
401401 font-weight: normal;
402402 color: #444444;
403403 padding: 0.25em;
@@ -406,7 +406,7 @@
407407 border: none;
408408 font-size: 0.75em;
409409 }
410 - div#panel div.portal div.body {
 410+ div#mw-panel div.portal div.body {
411411 margin: 0;
412412 padding-top: 0.5em;
413413 margin-right: 1.25em;
@@ -414,14 +414,14 @@
415415 background-repeat: no-repeat;
416416 background-position: top right;
417417 }
418 - div#panel div.portal div.body ul {
 418+ div#mw-panel div.portal div.body ul {
419419 list-style: none;
420420 list-style-image: none;
421421 list-style-type: none;
422422 padding: 0;
423423 margin: 0;
424424 }
425 - div#panel div.portal div.body ul li {
 425+ div#mw-panel div.portal div.body ul li {
426426 line-height: 1.125em;
427427 padding: 0;
428428 padding-bottom: 0.5em;
@@ -429,10 +429,10 @@
430430 overflow: hidden;
431431 font-size: 0.75em;
432432 }
433 - div#panel div.portal div.body ul li a {
 433+ div#mw-panel div.portal div.body ul li a {
434434 color: #0645ad;
435435 }
436 - div#panel div.portal div.body ul li a:visited {
 436+ div#mw-panel div.portal div.body ul li a:visited {
437437 color: #0b0080;
438438 }
439439 /* Footer */
Index: trunk/phase3/includes/DefaultSettings.php
@@ -1676,7 +1676,7 @@
16771677 * to ensure that client-side caches do not keep obsolete copies of global
16781678 * styles.
16791679 */
1680 -$wgStyleVersion = '286';
 1680+$wgStyleVersion = '287';
16811681
16821682
16831683 # Server-side caching:
Index: trunk/extensions/UsabilityInitiative/css/vector.collapsibleNav.css
@@ -1,68 +1,68 @@
22 /* Prototype code to show collapsing left nav options */
3 -#panel.collapsible-nav div.portal {
 3+#mw-panel.collapsible-nav div.portal {
44 background-image:url(../images/vector/collapsibleNav/portal-break.png?1);
55 background-position:left top;
66 background-repeat:no-repeat;
77 padding: 0.25em 0 !important;
88 margin: -11px 9px 10px 11px;
99 }
10 -body.rtl #panel.collapsible-nav div.portal {
 10+body.rtl #mw-panel.collapsible-nav div.portal {
1111 background-position: right top;
1212 margin: -11px 11px 10px 9px;
1313 }
14 -#panel.collapsible-nav div.portal h5 {
 14+#mw-panel.collapsible-nav div.portal h5 {
1515 color: #4D4D4D;
1616 font-weight: normal;
1717 background: url(../images/vector/collapsibleNav/arrow-down.png?1) 0 50% no-repeat;
1818 padding: 4px 0 3px 1.5em;
1919 margin-bottom: 0px;
2020 }
21 -body.rtl #panel.collapsible-nav div.portal h5 {
 21+body.rtl #mw-panel.collapsible-nav div.portal h5 {
2222 background: url(../images/vector/collapsibleNav/arrow-down.png?1) 100% 50% no-repeat;
2323 padding: 4px 1.5em 3px 0;
2424 }
25 -#panel.collapsible-nav div.collapsed h5 {
 25+#mw-panel.collapsible-nav div.collapsed h5 {
2626 color: #0645AD;
2727 background: url(../images/vector/collapsibleNav/arrow-right.png?1) 0 50% no-repeat;
2828 margin-bottom: 0px;
2929 }
30 -body.rtl #panel.collapsible-nav div.collapsed h5 {
 30+body.rtl #mw-panel.collapsible-nav div.collapsed h5 {
3131 background: url(../images/vector/collapsibleNav/arrow-left.png?1) 100% 50% no-repeat;
3232 }
33 -#panel.collapsible-nav div h5:hover {
 33+#mw-panel.collapsible-nav div h5:hover {
3434 cursor: pointer;
3535 text-decoration: none;
3636 }
37 -#panel.collapsible-nav div.collapsed h5:hover {
 37+#mw-panel.collapsible-nav div.collapsed h5:hover {
3838 text-decoration: underline;
3939 }
40 -#panel.collapsible-nav div.portal div.body {
 40+#mw-panel.collapsible-nav div.portal div.body {
4141 background: none !important;
4242 padding-top: 0px;
4343 display: none;
4444 }
45 -#panel.collapsible-nav div.persistent div.body {
 45+#mw-panel.collapsible-nav div.persistent div.body {
4646 display: block;
4747 }
48 -#panel.collapsible-nav div.first h5 {
 48+#mw-panel.collapsible-nav div.first h5 {
4949 display: none;
5050 }
51 -#panel.collapsible-nav div.persistent h5 {
 51+#mw-panel.collapsible-nav div.persistent h5 {
5252 background: none !important;
5353 padding-left: 0.7em;
5454 cursor: default;
5555 }
56 -#panel.collapsible-nav div.portal div.body ul li {
 56+#mw-panel.collapsible-nav div.portal div.body ul li {
5757 padding: 0.25em 0;
5858 }
59 -#panel.collapsible-nav div.first {
 59+#mw-panel.collapsible-nav div.first {
6060 background-image: none;
6161 margin-top: 0px;
6262 }
63 -#panel.collapsible-nav div.persistent div.body {
 63+#mw-panel.collapsible-nav div.persistent div.body {
6464 margin-left: 0.5em;
6565 }
66 -body.rtl #panel.collapsible-nav div.persistent div.body {
 66+body.rtl #mw-panel.collapsible-nav div.persistent div.body {
6767 margin-left: 0;
6868 margin-right: 0.5em;
69 -}
\ No newline at end of file
 69+}
Index: trunk/extensions/UsabilityInitiative/css/combined.css
@@ -66,73 +66,74 @@
6767 color: white;
6868 color: HighlightText;
6969 }/* Prototype code to show collapsing left nav options */
70 -#panel.collapsible-nav div.portal {
 70+#mw-panel.collapsible-nav div.portal {
7171 background-image:url(../images/vector/collapsibleNav/portal-break.png?1);
7272 background-position:left top;
7373 background-repeat:no-repeat;
7474 padding: 0.25em 0 !important;
7575 margin: -11px 9px 10px 11px;
7676 }
77 -body.rtl #panel.collapsible-nav div.portal {
 77+body.rtl #mw-panel.collapsible-nav div.portal {
7878 background-position: right top;
7979 margin: -11px 11px 10px 9px;
8080 }
81 -#panel.collapsible-nav div.portal h5 {
 81+#mw-panel.collapsible-nav div.portal h5 {
8282 color: #4D4D4D;
8383 font-weight: normal;
8484 background: url(../images/vector/collapsibleNav/arrow-down.png?1) 0 50% no-repeat;
8585 padding: 4px 0 3px 1.5em;
8686 margin-bottom: 0px;
8787 }
88 -body.rtl #panel.collapsible-nav div.portal h5 {
 88+body.rtl #mw-panel.collapsible-nav div.portal h5 {
8989 background: url(../images/vector/collapsibleNav/arrow-down.png?1) 100% 50% no-repeat;
9090 padding: 4px 1.5em 3px 0;
9191 }
92 -#panel.collapsible-nav div.collapsed h5 {
 92+#mw-panel.collapsible-nav div.collapsed h5 {
9393 color: #0645AD;
9494 background: url(../images/vector/collapsibleNav/arrow-right.png?1) 0 50% no-repeat;
9595 margin-bottom: 0px;
9696 }
97 -body.rtl #panel.collapsible-nav div.collapsed h5 {
 97+body.rtl #mw-panel.collapsible-nav div.collapsed h5 {
9898 background: url(../images/vector/collapsibleNav/arrow-left.png?1) 100% 50% no-repeat;
9999 }
100 -#panel.collapsible-nav div h5:hover {
 100+#mw-panel.collapsible-nav div h5:hover {
101101 cursor: pointer;
102102 text-decoration: none;
103103 }
104 -#panel.collapsible-nav div.collapsed h5:hover {
 104+#mw-panel.collapsible-nav div.collapsed h5:hover {
105105 text-decoration: underline;
106106 }
107 -#panel.collapsible-nav div.portal div.body {
 107+#mw-panel.collapsible-nav div.portal div.body {
108108 background: none !important;
109109 padding-top: 0px;
110110 display: none;
111111 }
112 -#panel.collapsible-nav div.persistent div.body {
 112+#mw-panel.collapsible-nav div.persistent div.body {
113113 display: block;
114114 }
115 -#panel.collapsible-nav div.first h5 {
 115+#mw-panel.collapsible-nav div.first h5 {
116116 display: none;
117117 }
118 -#panel.collapsible-nav div.persistent h5 {
 118+#mw-panel.collapsible-nav div.persistent h5 {
119119 background: none !important;
120120 padding-left: 0.7em;
121121 cursor: default;
122122 }
123 -#panel.collapsible-nav div.portal div.body ul li {
 123+#mw-panel.collapsible-nav div.portal div.body ul li {
124124 padding: 0.25em 0;
125125 }
126 -#panel.collapsible-nav div.first {
 126+#mw-panel.collapsible-nav div.first {
127127 background-image: none;
128128 margin-top: 0px;
129129 }
130 -#panel.collapsible-nav div.persistent div.body {
 130+#mw-panel.collapsible-nav div.persistent div.body {
131131 margin-left: 0.5em;
132132 }
133 -body.rtl #panel.collapsible-nav div.persistent div.body {
 133+body.rtl #mw-panel.collapsible-nav div.persistent div.body {
134134 margin-left: 0;
135135 margin-right: 0.5em;
136 -}.expandableField {
 136+}
 137+.expandableField {
137138 display: block;
138139 float: left;
139140 }
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css
@@ -64,73 +64,74 @@
6565 color:white;
6666 color:HighlightText;
6767 }
68 -#panel.collapsible-nav div.portal{
 68+#mw-panel.collapsible-nav div.portal{
6969 background-image:url(../images/vector/collapsibleNav/portal-break.png?1);
7070 background-position:left top;
7171 background-repeat:no-repeat;
7272 padding:0.25em 0 !important;
7373 margin:-11px 9px 10px 11px;
7474 }
75 -body.rtl #panel.collapsible-nav div.portal{
 75+body.rtl #mw-panel.collapsible-nav div.portal{
7676 background-position:right top;
7777 margin:-11px 11px 10px 9px;
7878 }
79 -#panel.collapsible-nav div.portal h5{
 79+#mw-panel.collapsible-nav div.portal h5{
8080 color:#4D4D4D;
8181 font-weight:normal;
8282 background:url(../images/vector/collapsibleNav/arrow-down.png?1) 0 50% no-repeat;
8383 padding:4px 0 3px 1.5em;
8484 margin-bottom:0px;
8585 }
86 -body.rtl #panel.collapsible-nav div.portal h5{
 86+body.rtl #mw-panel.collapsible-nav div.portal h5{
8787 background:url(../images/vector/collapsibleNav/arrow-down.png?1) 100% 50% no-repeat;
8888 padding:4px 1.5em 3px 0;
8989 }
90 -#panel.collapsible-nav div.collapsed h5{
 90+#mw-panel.collapsible-nav div.collapsed h5{
9191 color:#0645AD;
9292 background:url(../images/vector/collapsibleNav/arrow-right.png?1) 0 50% no-repeat;
9393 margin-bottom:0px;
9494 }
95 -body.rtl #panel.collapsible-nav div.collapsed h5{
 95+body.rtl #mw-panel.collapsible-nav div.collapsed h5{
9696 background:url(../images/vector/collapsibleNav/arrow-left.png?1) 100% 50% no-repeat;
9797 }
98 -#panel.collapsible-nav div h5:hover{
 98+#mw-panel.collapsible-nav div h5:hover{
9999 cursor:pointer;
100100 text-decoration:none;
101101 }
102 -#panel.collapsible-nav div.collapsed h5:hover{
 102+#mw-panel.collapsible-nav div.collapsed h5:hover{
103103 text-decoration:underline;
104104 }
105 -#panel.collapsible-nav div.portal div.body{
 105+#mw-panel.collapsible-nav div.portal div.body{
106106 background:none !important;
107107 padding-top:0px;
108108 display:none;
109109 }
110 -#panel.collapsible-nav div.persistent div.body{
 110+#mw-panel.collapsible-nav div.persistent div.body{
111111 display:block;
112112 }
113 -#panel.collapsible-nav div.first h5{
 113+#mw-panel.collapsible-nav div.first h5{
114114 display:none;
115115 }
116 -#panel.collapsible-nav div.persistent h5{
 116+#mw-panel.collapsible-nav div.persistent h5{
117117 background:none !important;
118118 padding-left:0.7em;
119119 cursor:default;
120120 }
121 -#panel.collapsible-nav div.portal div.body ul li{
 121+#mw-panel.collapsible-nav div.portal div.body ul li{
122122 padding:0.25em 0;
123123 }
124 -#panel.collapsible-nav div.first{
 124+#mw-panel.collapsible-nav div.first{
125125 background-image:none;
126126 margin-top:0px;
127127 }
128 -#panel.collapsible-nav div.persistent div.body{
 128+#mw-panel.collapsible-nav div.persistent div.body{
129129 margin-left:0.5em;
130130 }
131 -body.rtl #panel.collapsible-nav div.persistent div.body{
 131+body.rtl #mw-panel.collapsible-nav div.persistent div.body{
132132 margin-left:0;
133133 margin-right:0.5em;
134 -}.expandableField{
 134+}
 135+.expandableField{
135136 display:block;
136137 float:left;
137138 }
Index: trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleNav/CollapsibleNav.js
@@ -144,11 +144,11 @@
145145 $j( '#p-lang' ).addClass( 'persistent' );
146146 }
147147 // Always show the first portal
148 - $j( '#panel > div.portal:first' ).addClass( 'first persistent' );
 148+ $j( '#mw-panel > div.portal:first' ).addClass( 'first persistent' );
149149 // Apply a class to the entire panel to activate styles
150 - $j( '#panel' ).addClass( 'collapsible-nav' );
 150+ $j( '#mw-panel' ).addClass( 'collapsible-nav' );
151151 // Use cookie data to restore preferences of what to show and hide
152 - $j( '#panel > div.portal:not(.persistent)' )
 152+ $j( '#mw-panel > div.portal:not(.persistent)' )
153153 .each( function( i ) {
154154 var id = $j(this).attr( 'id' );
155155 var state = $j.cookie( 'vector-nav-' + id );
@@ -180,7 +180,7 @@
181181 .find( 'div.body' )
182182 .slideToggle( 'fast' );
183183 }
184 - var $headings = $j( '#panel > div.portal:not(.persistent) > h5' );
 184+ var $headings = $j( '#mw-panel > div.portal:not(.persistent) > h5' );
185185 /** Copy-pasted from jquery.wikiEditor.dialogs - :( */
186186 // Find the highest tabindex in use
187187 var maxTI = 0;
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php
@@ -12,7 +12,7 @@
1313
1414 static $scripts = array(
1515 'raw' => array(
16 - array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 20 ),
 16+ array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 21 ),
1717 array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 8 ),
1818 array( 'src' => 'Modules/ExpandableSearch/ExpandableSearch.js', 'version' => 3 ),
1919 array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 8 ),
@@ -20,10 +20,10 @@
2121 array( 'src' => 'Modules/SimpleSearch/SimpleSearch.js', 'version' => 15 ),
2222 ),
2323 'combined' => array(
24 - array( 'src' => 'Vector.combined.js', 'version' => 43 ),
 24+ array( 'src' => 'Vector.combined.js', 'version' => 44 ),
2525 ),
2626 'minified' => array(
27 - array( 'src' => 'Vector.combined.min.js', 'version' => 43 ),
 27+ array( 'src' => 'Vector.combined.min.js', 'version' => 44 ),
2828 ),
2929 );
3030 static $modules = array(
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.js
@@ -144,11 +144,11 @@
145145 $j( '#p-lang' ).addClass( 'persistent' );
146146 }
147147 // Always show the first portal
148 - $j( '#panel > div.portal:first' ).addClass( 'first persistent' );
 148+ $j( '#mw-panel > div.portal:first' ).addClass( 'first persistent' );
149149 // Apply a class to the entire panel to activate styles
150 - $j( '#panel' ).addClass( 'collapsible-nav' );
 150+ $j( '#mw-panel' ).addClass( 'collapsible-nav' );
151151 // Use cookie data to restore preferences of what to show and hide
152 - $j( '#panel > div.portal:not(.persistent)' )
 152+ $j( '#mw-panel > div.portal:not(.persistent)' )
153153 .each( function( i ) {
154154 var id = $j(this).attr( 'id' );
155155 var state = $j.cookie( 'vector-nav-' + id );
@@ -180,7 +180,7 @@
181181 .find( 'div.body' )
182182 .slideToggle( 'fast' );
183183 }
184 - var $headings = $j( '#panel > div.portal:not(.persistent) > h5' );
 184+ var $headings = $j( '#mw-panel > div.portal:not(.persistent) > h5' );
185185 /** Copy-pasted from jquery.wikiEditor.dialogs - :( */
186186 // Find the highest tabindex in use
187187 var maxTI = 0;
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.min.js
@@ -9,9 +9,9 @@
1010 if(count<limit){$secondary.children().each(function(){if(count++<limit){$j(this).appendTo($primary);}else{return false;}});}
1111 if($secondary.children().length==0){$secondary.remove();}else{$j('#p-lang').after('<div id="p-lang-more" class="portal"><h5></h5><div class="body"></div></div>');$j('#p-lang-more h5').text(mw.usability.getMsg('vector-collapsiblenav-more'));$secondary.appendTo($j('#p-lang-more div.body'));}
1212 $j('#p-lang').addClass('persistent');}
13 -$j('#panel > div.portal:first').addClass('first persistent');$j('#panel').addClass('collapsible-nav');$j('#panel > div.portal:not(.persistent)').each(function(i){var id=$j(this).attr('id');var state=$j.cookie('vector-nav-'+id);if(state=='true'||(state==null&&i<1)||version==1&&id=='p-lang'){$j(this).addClass('expanded').find('div.body').show();}else{$j(this).addClass('collapsed');}
 13+$j('#mw-panel > div.portal:first').addClass('first persistent');$j('#mw-panel').addClass('collapsible-nav');$j('#mw-panel > div.portal:not(.persistent)').each(function(i){var id=$j(this).attr('id');var state=$j.cookie('vector-nav-'+id);if(state=='true'||(state==null&&i<1)||version==1&&id=='p-lang'){$j(this).addClass('expanded').find('div.body').show();}else{$j(this).addClass('collapsed');}
1414 if(state!=null){$j.cookie('vector-nav-'+$j(this).attr('id'),state,{'expires':30,'path':'/'});}});function toggle($element){$j.cookie('vector-nav-'+$element.parent().attr('id'),$element.parent().is('.collapsed'),{'expires':30,'path':'/'});$element.parent().toggleClass('expanded').toggleClass('collapsed').find('div.body').slideToggle('fast');}
15 -var $headings=$j('#panel > div.portal:not(.persistent) > h5');var maxTI=0;$j('[tabindex]').each(function(){var ti=parseInt($j(this).attr('tabindex'));if(ti>maxTI)
 15+var $headings=$j('#mw-panel > div.portal:not(.persistent) > h5');var maxTI=0;$j('[tabindex]').each(function(){var ti=parseInt($j(this).attr('tabindex'));if(ti>maxTI)
1616 maxTI=ti;});var tabIndex=maxTI+1;$j('#searchInput').attr('tabindex',tabIndex++);$headings.each(function(){$j(this).attr('tabindex',tabIndex++);});$headings.keydown(function(event){if(event.which==13||event.which==32){toggle($j(this));}}).mousedown(function(){toggle($j(this));$j(this).blur();return false;});});$j(document).ready(function(){if(!wgVectorEnabledModules.collapsibletabs){return true;}
1717 var rtl=$j('body').is('.rtl');$j.collapsibleTabs.moveToCollapsed=function(ele){var $moving=$j(ele);$j.collapsibleTabs.getSettings($j($j.collapsibleTabs.getSettings($moving).expandedContainer)).shifting=true;var data=$j.collapsibleTabs.getSettings($moving);var target=data.collapsedContainer;$moving.css("position","relative").css((rtl?'left':'right'),0).animate({width:'1px'},"normal",function(){$j(this).hide();$j('<span class="placeholder" style="display:none;"></span>').insertAfter(this);$j(this).remove().prependTo(target).data('collapsibleTabsSettings',data);$j(this).attr('style','display:list-item;');$j.collapsibleTabs.getSettings($j($j.collapsibleTabs.getSettings($j(ele)).expandedContainer)).shifting=false;$j.collapsibleTabs.handleResize();});};$j.collapsibleTabs.moveToExpanded=function(ele){var $moving=$j(ele);$j.collapsibleTabs.getSettings($j($j.collapsibleTabs.getSettings($moving).expandedContainer)).shifting=true;var data=$j.collapsibleTabs.getSettings($moving);var $target=$j(data.expandedContainer).find('span.placeholder:first');var expandedWidth=data.expandedWidth;$moving.css("position","relative").css((rtl?'right':'left'),0).css('width','1px');$target.replaceWith($moving.remove().css('width','1px').data('collapsibleTabsSettings',data).animate({width:expandedWidth+"px"},"normal",function(){$j(this).attr('style','display:block;');$j.collapsibleTabs.getSettings($j($j.collapsibleTabs.getSettings($moving).expandedContainer)).shifting=false;$j.collapsibleTabs.handleResize();}));};$j('#p-views ul').bind("beforeTabCollapse",function(){if($j('#p-cactions').css('display')=='none')
1818 $j("#p-cactions").addClass("filledPortlet").removeClass("emptyPortlet").find('h5').css('width','1px').animate({'width':'26px'},390);}).bind("beforeTabExpand",function(){if($j('#p-cactions li').length==1)
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -19,7 +19,7 @@
2020 'base_sets' => array(
2121 'raw' => array(
2222 array( 'src' => 'css/suggestions.css', 'version' => 14 ),
23 - array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 11 ),
 23+ array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 12 ),
2424 array( 'src' => 'css/vector.expandableSearch.css', 'version' => 3 ),
2525 array( 'src' => 'css/vector.footerCleanup.css', 'version' => 2 ),
2626 array( 'src' => 'css/wikiEditor.css', 'version' => 14 ),
@@ -30,11 +30,11 @@
3131 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3232 ),
3333 'combined' => array(
34 - array( 'src' => 'css/combined.css', 'version' => 100 ),
 34+ array( 'src' => 'css/combined.css', 'version' => 101 ),
3535 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3636 ),
3737 'minified' => array(
38 - array( 'src' => 'css/combined.min.css', 'version' => 100 ),
 38+ array( 'src' => 'css/combined.min.css', 'version' => 101 ),
3939 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
4040 ),
4141 )

Follow-up revisions

RevisionCommit summaryAuthorDate
r67705Followup r65412 and r67703 - Rename properly, bring changes forwardreedy11:32, 9 June 2010
r677531.16wmf4: Merge some Vector fixes from trunk: r67537, r67544, r67576, r67631,...catrope19:52, 9 June 2010
r67893Follow up to r67703. Fixes jump-to anchor which still ref'ed to #head instead...hartman10:59, 12 June 2010
r680061.16wmf4: Fix r67753: incomplete merge of r67703catrope17:49, 14 June 2010
r68102Backport r67703 & r67893...platonides19:38, 15 June 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66646(bug 23597) Make a number of ID selectors more specific (basically #foo -> di...catrope19:01, 19 May 2010

Status & tagging log