Index: trunk/phase3/skins/chick/main.css |
— | — | @@ -50,26 +50,16 @@ |
51 | 51 | padding-bottom: 0.17em; |
52 | 52 | border-bottom: 1px solid #aaaaaa; |
53 | 53 | } |
54 | | -.editsection { |
55 | | - font-weight: normal; |
56 | | - float: right; |
57 | | - margin-left: 5px; |
58 | | -} |
59 | 54 | h1 { font-size: 188%; } |
60 | | -h1 .editsection { font-size: 53.2%; } |
61 | 55 | h2 { font-size: 150%; } |
62 | | -h2 .editsection { font-size: 66.7%; } |
63 | 56 | h3, h4, h5, h6 { |
64 | 57 | border-bottom: none; |
65 | 58 | font-weight: bold; |
66 | 59 | } |
67 | 60 | h3 { font-size: 132%; } |
68 | | -h3 .editsection { font-size: 75.8%; } |
69 | 61 | h4 { font-size: 116%; } |
70 | | -h4 .editsection { font-size: 86.2%; } |
71 | 62 | h5 { font-size: 100%; } |
72 | 63 | h6 { font-size: 80%; } |
73 | | -h6 .editsection { font-size: 125%; } |
74 | 64 | |
75 | 65 | ul { |
76 | 66 | line-height: 1.5em; |
Index: trunk/phase3/skins/monobook/rtl.css |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | float: right; |
43 | 43 | clear: right; |
44 | 44 | } |
45 | | -.editsection { |
| 45 | +div.editsection { |
46 | 46 | float: left; |
47 | 47 | margin-right: 5px; |
48 | 48 | } |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -119,23 +119,17 @@ |
120 | 120 | border-bottom: 1px solid #aaa; |
121 | 121 | } |
122 | 122 | h1 { font-size: 188%; } |
123 | | -h1 .editsection { font-size: 53%; } |
124 | 123 | h2 { font-size: 150%; } |
125 | | -h2 .editsection { font-size: 67%; } |
126 | 124 | h3, h4, h5, h6 { |
127 | 125 | border-bottom: none; |
128 | 126 | font-weight: bold; |
129 | 127 | } |
130 | 128 | h3 { font-size: 132%; } |
131 | | -h3 .editsection { font-size: 76%; font-weight: normal; } |
132 | 129 | h4 { font-size: 116%; } |
133 | | -h4 .editsection { font-size: 86%; font-weight: normal; } |
134 | 130 | h5 { font-size: 100%; } |
135 | | -h5 .editsection { font-weight: normal; } |
136 | 131 | h6 { font-size: 80%; } |
137 | | -h6 .editsection { font-size: 125%; font-weight: normal; } |
138 | 132 | |
139 | | -.editsection { |
| 133 | +div.editsection { |
140 | 134 | float: right; |
141 | 135 | margin-left: 5px; |
142 | 136 | } |
Index: trunk/phase3/skins/common/common.css |
— | — | @@ -2,31 +2,6 @@ |
3 | 3 | * common.css |
4 | 4 | * This file contains CSS settings common to Wikistandard, Nostalgia and CologneBlue |
5 | 5 | */ |
6 | | - |
7 | | -/* For clarity, explicitly state some recommendations from <http://www.w3.org/ |
8 | | - TR/CSS21/sample.html> to make sure the editsection links scale right */ |
9 | | - |
10 | | -h1 { font-size: 2em; } |
11 | | -h2 { font-size: 1.5em; } |
12 | | -h3 { font-size: 1.17em; } |
13 | | -h5 { font-size: .83em; } |
14 | | -h6 { font-size: .75em; } |
15 | | -h1, h2, h3, h4, h5, h6 { font-weight: bolder } |
16 | | - |
17 | | -/* Now the custom parts */ |
18 | | - |
19 | | -/* Make edit sections (which are inside h# tags) normal-sized */ |
20 | | -.editsection { |
21 | | - font-weight: normal; |
22 | | - float: right; |
23 | | - margin-left: 5px; |
24 | | -} |
25 | | -h1 .editsection { font-size: 50% } |
26 | | -h2 .editsection { font-size: 66.7% } |
27 | | -h3 .editsection { font-size: 85.5% } |
28 | | -h5 .editsection { font-size: 120% } |
29 | | -h6 .editsection { font-size: 133% } |
30 | | - |
31 | 6 | #footer { clear: both } |
32 | 7 | /* images */ |
33 | 8 | div.floatright { float: right; margin: 0 0 1em 1em; } |
— | — | @@ -339,6 +314,11 @@ |
340 | 315 | font-style: italic; |
341 | 316 | } |
342 | 317 | |
| 318 | +div.editsection { |
| 319 | + float: right; |
| 320 | + margin-left: 5px; |
| 321 | +} |
| 322 | + |
343 | 323 | /* Classes for EXIF data display */ |
344 | 324 | table.mw_metadata { |
345 | 325 | margin-left: 0.5em; |
Index: trunk/phase3/skins/common/cologneblue.css |
— | — | @@ -78,9 +78,8 @@ |
79 | 79 | h1 { |
80 | 80 | color: #666666; |
81 | 81 | font-family: Verdana, Arial, sans-serif; |
82 | | - font-size: 180%; line-height: 21pt; |
| 82 | + font-size: 18pt; font-weight: bold; line-height: 21pt; |
83 | 83 | } |
84 | | -h1 .editsection { font-size: 55.6%; } |
85 | 84 | h1.pagetitle { padding-bottom: 0; margin-bottom: 0; } |
86 | 85 | #article p.subtitle { |
87 | 86 | color: #666666; font-size: 11pt; font-weight: bold; |
Index: trunk/phase3/skins/common/commonPrint.css |
— | — | @@ -130,11 +130,8 @@ |
131 | 131 | |
132 | 132 | h1, h2, h3, h4, h5, h6 |
133 | 133 | { |
134 | | - font-weight: bold; |
| 134 | + font-weight: bold; |
135 | 135 | } |
136 | | -.editsection { |
137 | | - font-weight: normal; |
138 | | -} |
139 | 136 | |
140 | 137 | p, .documentDescription { |
141 | 138 | margin: 1em 0 ! important; |
Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -503,9 +503,9 @@ |
504 | 504 | |
505 | 505 | function setupRightClickEdit() { |
506 | 506 | if (document.getElementsByTagName) { |
507 | | - var spans = document.getElementsByTagName('span'); |
508 | | - for (var i = 0; i < spans.length; i++) { |
509 | | - var el = spans[i]; |
| 507 | + var divs = document.getElementsByTagName('div'); |
| 508 | + for (var i = 0; i < divs.length; i++) { |
| 509 | + var el = divs[i]; |
510 | 510 | if(el.className == 'editsection') { |
511 | 511 | addRightClickEditHandler(el); |
512 | 512 | } |
Index: trunk/phase3/skins/common/common_rtl.css |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | margin-right: 1.4em; |
15 | 15 | margin-left: 0.4em; |
16 | 16 | } |
17 | | -.editsection { |
| 17 | +div.editsection { |
18 | 18 | float: left; |
19 | 19 | margin-right: 5px; |
20 | 20 | } |
\ No newline at end of file |
Index: trunk/phase3/skins/common/wikistandard.css |
— | — | @@ -29,18 +29,12 @@ |
30 | 30 | |
31 | 31 | h1.pagetitle { padding-top: 0; margin-top: 0; padding-bottom: 0; margin-bottom: 0; |
32 | 32 | font-size:150%; } |
33 | | -h1.pagetitle .editsection { font-size: 66.7%; } |
34 | 33 | h2 { font-size: 120%; } |
35 | | -h2 .editsection { font-size: 83.3%; } |
36 | 34 | h2, h3, h4, h5, h6 { margin-bottom: 0;} |
37 | 35 | h3 { font-size: 106.25%; } |
38 | | -h3 .editsection { font-size: 94.1%; } |
39 | 36 | h4 { font-size: 103.125%; } |
40 | | -h4 .editsection { font-size: 97.0%; } |
41 | 37 | h5 { font-size: 100%; } |
42 | | -h5 .editsection { font-size: 100%; } |
43 | 38 | h6 { font-size: 95%; } |
44 | | -h6 .editsection { font-size: 105.3%; } |
45 | 39 | hr.sep { color:gray;height:1px;background-color:gray;} |
46 | 40 | p.subpages { font-size:small;} |
47 | 41 | p.subtitle { padding-top: 0; margin-top: 0;} |
Index: trunk/phase3/skins/simple/main.css |
— | — | @@ -1,29 +1,3 @@ |
2 | | -/* For clarity, explicitly state some recommendations from <http://www.w3.org/ |
3 | | - TR/CSS21/sample.html> to make sure the editsection links scale right */ |
4 | | - |
5 | | -h1 { font-size: 2em; } |
6 | | -h2 { font-size: 1.5em; } |
7 | | -h3 { font-size: 1.17em; } |
8 | | -h5 { font-size: .83em; } |
9 | | -h6 { font-size: .75em; } |
10 | | -h1, h2, h3, h4, h5, h6 { font-weight: bolder } |
11 | | - |
12 | | -/* Now the custom parts */ |
13 | | - |
14 | | -/* Make edit sections (which are inside h# tags) normal-sized |
15 | | - and otherwise format */ |
16 | | -.editsection { |
17 | | - font-weight: normal; |
18 | | - float: right; |
19 | | - margin-left: 5px; |
20 | | -} |
21 | | -h1 .editsection { font-size: 50% } |
22 | | -h2 .editsection { font-size: 66.7% } |
23 | | -h3 .editsection { font-size: 85.5% } |
24 | | -h5 .editsection { font-size: 120% } |
25 | | -h6 .editsection { font-size: 133% } |
26 | | - |
27 | | - |
28 | 2 | #toolbar { |
29 | 3 | display: none; |
30 | 4 | } |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1046,11 +1046,11 @@ |
1047 | 1047 | $editurl = '§ion='.$section; |
1048 | 1048 | $url = $this->makeKnownLinkObj( $title, wfMsg('editsection'), 'action=edit'.$editurl ); |
1049 | 1049 | |
1050 | | - return "<span class=\"editsection\">[".$url."]</span>"; |
| 1050 | + return "<div class=\"editsection\">[".$url."]</div>"; |
1051 | 1051 | |
1052 | 1052 | } |
1053 | 1053 | |
1054 | | - /** |
| 1054 | + /** |
1055 | 1055 | * @param $title Title object. |
1056 | 1056 | * @param $section Integer: section number. |
1057 | 1057 | * @param $hint Link String: title, or default if omitted or empty |
— | — | @@ -1062,7 +1062,7 @@ |
1063 | 1063 | $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"'; |
1064 | 1064 | $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint ); |
1065 | 1065 | |
1066 | | - return "<span class=\"editsection\">[".$url."]</span>"; |
| 1066 | + return "<div class=\"editsection\">[".$url."]</div>"; |
1067 | 1067 | } |
1068 | 1068 | |
1069 | 1069 | /** |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3501,9 +3501,6 @@ |
3502 | 3502 | if( $enoughToc && ( !isset($wgMaxTocLevel) || $toclevel<$wgMaxTocLevel ) ) { |
3503 | 3503 | $toc .= $sk->tocLine($anchor, $tocline, $numbering, $toclevel); |
3504 | 3504 | } |
3505 | | - # give headline the correct <h#> tag |
3506 | | - @$head[$headlineCount] .= "<a name=\"$anchor\"></a><h".$level.$matches[2][$headlineCount]; |
3507 | | - |
3508 | 3505 | if( $showEditLink && ( !$istemplate || $templatetitle !== "" ) ) { |
3509 | 3506 | if ( empty( $head[$headlineCount] ) ) { |
3510 | 3507 | $head[$headlineCount] = ''; |
— | — | @@ -3513,8 +3510,10 @@ |
3514 | 3511 | else |
3515 | 3512 | $head[$headlineCount] .= $sk->editSectionLink($this->mTitle, $sectionCount+1, $headline_hint); |
3516 | 3513 | } |
3517 | | - $head[$headlineCount] .= $headline.'</h'.$level.'>'; |
3518 | 3514 | |
| 3515 | + # give headline the correct <h#> tag |
| 3516 | + @$head[$headlineCount] .= "<a name=\"$anchor\"></a><h".$level.$matches[2][$headlineCount] .$headline.'</h'.$level.'>'; |
| 3517 | + |
3519 | 3518 | $headlineCount++; |
3520 | 3519 | if( !$istemplate ) |
3521 | 3520 | $sectionCount++; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -42,8 +42,6 @@ |
43 | 43 | * (bug 6918) Stopped borders and backgrounds from showing through floated |
44 | 44 | tables in Monobook |
45 | 45 | * (bug 6868) Un-hardcode section edit link style |
46 | | -* (bug 4525) Move section links down to same level as headings (editsection |
47 | | - links are now inside the h# elements) |
48 | 46 | |
49 | 47 | == Languages updated == |
50 | 48 | |