Index: trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleNav/CollapsibleNav.js |
— | — | @@ -0,0 +1,24 @@ |
| 2 | +/* Prototype code to show collapsing left nav options */ |
| 3 | +/* First draft and will be changing greatly */ |
| 4 | + |
| 5 | +mw.addOnloadHook( function() { |
| 6 | + if( !wgVectorEnabledModules.collapsibleleftnav ) |
| 7 | + return true; |
| 8 | + $j( '#panel' ).addClass( 'collapsible-nav' ); |
| 9 | + $j( '#panel > div.portal' ).toggleClass( 'collapsed' ); |
| 10 | + $j( '#panel > div.portal:first' ) |
| 11 | + .toggleClass( 'expanded' ) |
| 12 | + .toggleClass( 'collapsed' ) |
| 13 | + .find( 'div.body' ) |
| 14 | + .slideToggle( 'fast' ); |
| 15 | + // Toggle the selected menu's class and expand or collapse the menu |
| 16 | + $j( '#panel > div.portal > h5' ).click( function() { |
| 17 | + $j( this ) |
| 18 | + .parent() |
| 19 | + .toggleClass( 'expanded' ) |
| 20 | + .toggleClass( 'collapsed' ) |
| 21 | + .find( 'div.body' ) |
| 22 | + .slideToggle( 'fast' ); |
| 23 | + return false; |
| 24 | + } ); |
| 25 | +} ); |
Property changes on: trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleNav/CollapsibleNav.js |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 26 | + native |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | |
14 | 14 | static $scripts = array( |
15 | 15 | 'raw' => array( |
16 | | - array( 'src' => 'Modules/CollapsibleLeftNav/CollapsibleLeftNav.js', 'version' => 3 ), |
| 16 | + array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 3 ), |
17 | 17 | array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 6 ), |
18 | 18 | array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 4 ), |
19 | 19 | array( 'src' => 'Modules/SimpleSearch/SimpleSearch.js', 'version' => 4 ), |
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -18,13 +18,13 @@ |
19 | 19 | private static $styleFiles = array( |
20 | 20 | 'base_sets' => array( |
21 | 21 | 'raw' => array( |
22 | | - array( 'src' => 'css/collapsibleLeftNav.css', 'version' => 5 ), |
23 | 22 | array( 'src' => 'css/suggestions.css', 'version' => 6 ), |
| 23 | + array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 6 ), |
24 | 24 | array( 'src' => 'css/wikiEditor.css', 'version' => 7 ), |
25 | | - array( 'src' => 'css/wikiEditor.toolbar.css', 'version' => 8 ), |
26 | 25 | array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 10 ), |
| 26 | + array( 'src' => 'css/wikiEditor.preview.css', 'version' => 1 ), |
27 | 27 | array( 'src' => 'css/wikiEditor.toc.css', 'version' => 25 ), |
28 | | - array( 'src' => 'css/wikiEditor.preview.css', 'version' => 1 ), |
| 28 | + array( 'src' => 'css/wikiEditor.toolbar.css', 'version' => 8 ), |
29 | 29 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
30 | 30 | ), |
31 | 31 | 'combined' => array( |
Index: trunk/extensions/UsabilityInitiative/images/vector/arrow-right-over.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/images/vector/arrow-down-over.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/arrow-down.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/arrow-down.png |
___________________________________________________________________ |
Name: svn:mime-type |
32 | 32 | + application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/portal-break.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/portal-break.png |
___________________________________________________________________ |
Name: svn:mime-type |
33 | 33 | + application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/arrow-right.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/UsabilityInitiative/images/vector/collapsibleNav/arrow-right.png |
___________________________________________________________________ |
Name: svn:mime-type |
34 | 34 | + application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/css/collapsibleLeftNav.css |
— | — | @@ -1,44 +0,0 @@ |
2 | | -/* Prototype code to show collapsing left nav options */ |
3 | | -#panel.collapsible-nav div.portal { |
4 | | - border-top: 1px solid #dddddd; |
5 | | - border-bottom: 1px solid #dddddd; |
6 | | - padding: 2px 0 !important; |
7 | | - margin: -11px 9px 10px 11px; |
8 | | -} |
9 | | -#panel.collapsible-nav div.portal h5 { |
10 | | - color: #4D4D4D; |
11 | | - font-weight: normal; |
12 | | - background: url(../images/wikiEditor/toolbar/arrow-down.png) 0 50% no-repeat; |
13 | | - padding: 4px 0 3px 1.5em; |
14 | | - margin-bottom: 0px; |
15 | | -} |
16 | | -#panel.collapsible-nav div.collapsed h5 { |
17 | | - color: #0066cc; |
18 | | - background: url(../images/wikiEditor/toolbar/arrow-right.png) 0 50% no-repeat; |
19 | | - margin-bottom: 0px; |
20 | | -} |
21 | | -#panel.collapsible-nav div h5:hover { |
22 | | - cursor: pointer; |
23 | | - color: #0066cc; |
24 | | - background: url(../images/vector/arrow-down-over.png) 0 50% no-repeat #E8E8E8; |
25 | | -} |
26 | | -#panel.collapsible-nav div.collapsed h5:hover { |
27 | | - background: url(../images/vector/arrow-right-over.png) 0 50% no-repeat #E8E8E8; |
28 | | -} |
29 | | -#panel.collapsible-nav div.portal div.body { |
30 | | - padding-top: 0px; |
31 | | - display: none; |
32 | | -} |
33 | | -#panel.collapsible-nav div.portal div.body ul li { |
34 | | - padding: 0.25em 0; |
35 | | -} |
36 | | -#panel.collapsible-nav div.portal div.body { |
37 | | - background: none !important; |
38 | | -} |
39 | | -#panel.collapsible-nav #p-navigation { |
40 | | - border-top: none; |
41 | | - margin-top: 0px; |
42 | | -} |
43 | | -#panel.collapsible-nav #p-navigation h5 { |
44 | | - display: none; |
45 | | -} |
Index: trunk/extensions/UsabilityInitiative/css/vector.collapsibleNav.css |
— | — | @@ -0,0 +1,47 @@ |
| 2 | +/* Prototype code to show collapsing left nav options */ |
| 3 | +#panel.collapsible-nav div.portal { |
| 4 | + background-image:url(../images/vector/collapsibleNav/portal-break.png); |
| 5 | + background-position:left top; |
| 6 | + background-repeat:no-repeat; |
| 7 | + padding: 0.25em 0 !important; |
| 8 | + margin: -11px 9px 10px 11px; |
| 9 | +} |
| 10 | +#panel.collapsible-nav div.portal h5 { |
| 11 | + color: #4D4D4D; |
| 12 | + font-weight: normal; |
| 13 | + background: url(../images/vector/collapsibleNav/arrow-down.png) 0 50% no-repeat; |
| 14 | + padding: 4px 0 3px 1.5em; |
| 15 | + margin-bottom: 0px; |
| 16 | +} |
| 17 | +#panel.collapsible-nav div.collapsed h5 { |
| 18 | + color: #0645AD; |
| 19 | + background: url(../images/vector/collapsibleNav/arrow-right.png) 0 50% no-repeat; |
| 20 | + margin-bottom: 0px; |
| 21 | +} |
| 22 | +#panel.collapsible-nav div h5:hover { |
| 23 | + cursor: pointer; |
| 24 | + text-decoration: none; |
| 25 | +} |
| 26 | +#panel.collapsible-nav div.collapsed h5:hover { |
| 27 | + text-decoration: underline; |
| 28 | +} |
| 29 | +#panel.collapsible-nav div.portal div.body { |
| 30 | + padding-top: 0px; |
| 31 | + display: none; |
| 32 | +} |
| 33 | +#panel.collapsible-nav div.portal div.body ul li { |
| 34 | + padding: 0.25em 0; |
| 35 | +} |
| 36 | +#panel.collapsible-nav div.portal div.body { |
| 37 | + background: none !important; |
| 38 | +} |
| 39 | +#panel.collapsible-nav #p-navigation { |
| 40 | + background-image: none; |
| 41 | + margin-top: 0px; |
| 42 | +} |
| 43 | +#panel.collapsible-nav #p-navigation div.body { |
| 44 | + margin-left: 0.5em; |
| 45 | +} |
| 46 | +#panel.collapsible-nav #p-navigation h5 { |
| 47 | + display: none; |
| 48 | +} |
Property changes on: trunk/extensions/UsabilityInitiative/css/vector.collapsibleNav.css |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 49 | + native |
Index: trunk/extensions/UsabilityInitiative/css/combined.css |
— | — | @@ -1,47 +1,3 @@ |
2 | | -/* Prototype code to show collapsing left nav options */ |
3 | | -#panel.collapsible-nav div.portal { |
4 | | - border-top: 1px solid #dddddd; |
5 | | - border-bottom: 1px solid #dddddd; |
6 | | - padding: 2px 0 !important; |
7 | | - margin: -11px 9px 10px 11px; |
8 | | -} |
9 | | -#panel.collapsible-nav div.portal h5 { |
10 | | - color: #4D4D4D; |
11 | | - font-weight: normal; |
12 | | - background: url(../images/wikiEditor/toolbar/arrow-down.png) 0 50% no-repeat; |
13 | | - padding: 4px 0 3px 1.5em; |
14 | | - margin-bottom: 0px; |
15 | | -} |
16 | | -#panel.collapsible-nav div.collapsed h5 { |
17 | | - color: #0066cc; |
18 | | - background: url(../images/wikiEditor/toolbar/arrow-right.png) 0 50% no-repeat; |
19 | | - margin-bottom: 0px; |
20 | | -} |
21 | | -#panel.collapsible-nav div h5:hover { |
22 | | - cursor: pointer; |
23 | | - color: #0066cc; |
24 | | - background: url(../images/vector/arrow-down-over.png) 0 50% no-repeat #E8E8E8; |
25 | | -} |
26 | | -#panel.collapsible-nav div.collapsed h5:hover { |
27 | | - background: url(../images/vector/arrow-right-over.png) 0 50% no-repeat #E8E8E8; |
28 | | -} |
29 | | -#panel.collapsible-nav div.portal div.body { |
30 | | - padding-top: 0px; |
31 | | - display: none; |
32 | | -} |
33 | | -#panel.collapsible-nav div.portal div.body ul li { |
34 | | - padding: 0.25em 0; |
35 | | -} |
36 | | -#panel.collapsible-nav div.portal div.body { |
37 | | - background: none !important; |
38 | | -} |
39 | | -#panel.collapsible-nav #p-navigation { |
40 | | - border-top: none; |
41 | | - margin-top: 0px; |
42 | | -} |
43 | | -#panel.collapsible-nav #p-navigation h5 { |
44 | | - display: none; |
45 | | -} |
46 | 2 | /* suggestions plugin */ |
47 | 3 | |
48 | 4 | .suggestions { |
— | — | @@ -93,6 +49,53 @@ |
94 | 50 | color: white; |
95 | 51 | color: HighlightText; |
96 | 52 | } |
| 53 | +/* Prototype code to show collapsing left nav options */ |
| 54 | +#panel.collapsible-nav div.portal { |
| 55 | + background-image:url(../images/vector/collapsibleNav/portal-break.png); |
| 56 | + background-position:left top; |
| 57 | + background-repeat:no-repeat; |
| 58 | + padding: 0.25em 0 !important; |
| 59 | + margin: -11px 9px 10px 11px; |
| 60 | +} |
| 61 | +#panel.collapsible-nav div.portal h5 { |
| 62 | + color: #4D4D4D; |
| 63 | + font-weight: normal; |
| 64 | + background: url(../images/vector/collapsibleNav/arrow-down.png) 0 50% no-repeat; |
| 65 | + padding: 4px 0 3px 1.5em; |
| 66 | + margin-bottom: 0px; |
| 67 | +} |
| 68 | +#panel.collapsible-nav div.collapsed h5 { |
| 69 | + color: #0645AD; |
| 70 | + background: url(../images/vector/collapsibleNav/arrow-right.png) 0 50% no-repeat; |
| 71 | + margin-bottom: 0px; |
| 72 | +} |
| 73 | +#panel.collapsible-nav div h5:hover { |
| 74 | + cursor: pointer; |
| 75 | + text-decoration: none; |
| 76 | +} |
| 77 | +#panel.collapsible-nav div.collapsed h5:hover { |
| 78 | + text-decoration: underline; |
| 79 | +} |
| 80 | +#panel.collapsible-nav div.portal div.body { |
| 81 | + padding-top: 0px; |
| 82 | + display: none; |
| 83 | +} |
| 84 | +#panel.collapsible-nav div.portal div.body ul li { |
| 85 | + padding: 0.25em 0; |
| 86 | +} |
| 87 | +#panel.collapsible-nav div.portal div.body { |
| 88 | + background: none !important; |
| 89 | +} |
| 90 | +#panel.collapsible-nav #p-navigation { |
| 91 | + background-image: none; |
| 92 | + margin-top: 0px; |
| 93 | +} |
| 94 | +#panel.collapsible-nav #p-navigation div.body { |
| 95 | + margin-left: 0.5em; |
| 96 | +} |
| 97 | +#panel.collapsible-nav #p-navigation h5 { |
| 98 | + display: none; |
| 99 | +} |
97 | 100 | /* wikiEditor plugin */ |
98 | 101 | |
99 | 102 | /* This ID (#editform) could change in MediaWiki */ |
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css |
— | — | @@ -1,46 +1,3 @@ |
2 | | -#panel.collapsible-nav div.portal{ |
3 | | -border-top:1px solid #dddddd; |
4 | | -border-bottom:1px solid #dddddd; |
5 | | -padding:2px 0 !important; |
6 | | -margin:-11px 9px 10px 11px; |
7 | | -} |
8 | | -#panel.collapsible-nav div.portal h5{ |
9 | | -color:#4D4D4D; |
10 | | -font-weight:normal; |
11 | | -background:url(../images/wikiEditor/toolbar/arrow-down.png) 0 50% no-repeat; |
12 | | -padding:4px 0 3px 1.5em; |
13 | | -margin-bottom:0px; |
14 | | -} |
15 | | -#panel.collapsible-nav div.collapsed h5{ |
16 | | -color:#0066cc; |
17 | | -background:url(../images/wikiEditor/toolbar/arrow-right.png) 0 50% no-repeat; |
18 | | -margin-bottom:0px; |
19 | | -} |
20 | | -#panel.collapsible-nav div h5:hover{ |
21 | | -cursor:pointer; |
22 | | -color:#0066cc; |
23 | | -background:url(../images/vector/arrow-down-over.png) 0 50% no-repeat #E8E8E8; |
24 | | -} |
25 | | -#panel.collapsible-nav div.collapsed h5:hover{ |
26 | | -background:url(../images/vector/arrow-right-over.png) 0 50% no-repeat #E8E8E8; |
27 | | -} |
28 | | -#panel.collapsible-nav div.portal div.body{ |
29 | | -padding-top:0px; |
30 | | -display:none; |
31 | | -} |
32 | | -#panel.collapsible-nav div.portal div.body ul li{ |
33 | | -padding:0.25em 0; |
34 | | -} |
35 | | -#panel.collapsible-nav div.portal div.body{ |
36 | | -background:none !important; |
37 | | -} |
38 | | -#panel.collapsible-nav #p-navigation{ |
39 | | -border-top:none; |
40 | | -margin-top:0px; |
41 | | -} |
42 | | -#panel.collapsible-nav #p-navigation h5{ |
43 | | -display:none; |
44 | | -} |
45 | 2 | .suggestions{ |
46 | 3 | overflow:hidden; |
47 | 4 | position:absolute; |
— | — | @@ -90,6 +47,52 @@ |
91 | 48 | color:white; |
92 | 49 | color:HighlightText; |
93 | 50 | } |
| 51 | +#panel.collapsible-nav div.portal{ |
| 52 | +background-image:url(../images/vector/collapsibleNav/portal-break.png); |
| 53 | +background-position:left top; |
| 54 | +background-repeat:no-repeat; |
| 55 | +padding:0.25em 0 !important; |
| 56 | +margin:-11px 9px 10px 11px; |
| 57 | +} |
| 58 | +#panel.collapsible-nav div.portal h5{ |
| 59 | +color:#4D4D4D; |
| 60 | +font-weight:normal; |
| 61 | +background:url(../images/vector/collapsibleNav/arrow-down.png) 0 50% no-repeat; |
| 62 | +padding:4px 0 3px 1.5em; |
| 63 | +margin-bottom:0px; |
| 64 | +} |
| 65 | +#panel.collapsible-nav div.collapsed h5{ |
| 66 | +color:#0645AD; |
| 67 | +background:url(../images/vector/collapsibleNav/arrow-right.png) 0 50% no-repeat; |
| 68 | +margin-bottom:0px; |
| 69 | +} |
| 70 | +#panel.collapsible-nav div h5:hover{ |
| 71 | +cursor:pointer; |
| 72 | +text-decoration:none; |
| 73 | +} |
| 74 | +#panel.collapsible-nav div.collapsed h5:hover{ |
| 75 | +text-decoration:underline; |
| 76 | +} |
| 77 | +#panel.collapsible-nav div.portal div.body{ |
| 78 | +padding-top:0px; |
| 79 | +display:none; |
| 80 | +} |
| 81 | +#panel.collapsible-nav div.portal div.body ul li{ |
| 82 | +padding:0.25em 0; |
| 83 | +} |
| 84 | +#panel.collapsible-nav div.portal div.body{ |
| 85 | +background:none !important; |
| 86 | +} |
| 87 | +#panel.collapsible-nav #p-navigation{ |
| 88 | +background-image:none; |
| 89 | +margin-top:0px; |
| 90 | +} |
| 91 | +#panel.collapsible-nav #p-navigation div.body{ |
| 92 | +margin-left:0.5em; |
| 93 | +} |
| 94 | +#panel.collapsible-nav #p-navigation h5{ |
| 95 | +display:none; |
| 96 | +} |
94 | 97 | form#editform{ |
95 | 98 | margin:0; |
96 | 99 | padding:0; |
Index: trunk/extensions/UsabilityInitiative/Makefile |
— | — | @@ -3,8 +3,8 @@ |
4 | 4 | # |
5 | 5 | |
6 | 6 | CSS := \ |
7 | | - css/collapsibleLeftNav.css\ |
8 | 7 | css/suggestions.css\ |
| 8 | + css/vector.collapsibleNav.css\ |
9 | 9 | css/wikiEditor.css\ |
10 | 10 | css/wikiEditor.dialogs.css\ |
11 | 11 | css/wikiEditor.toc.css\ |