Index: trunk/phase3/skins/chick/main.css |
— | — | @@ -50,16 +50,26 @@ |
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 | +} |
54 | 59 | h1 { font-size: 188%; } |
| 60 | +h1 .editsection { font-size: 53.2%; } |
55 | 61 | h2 { font-size: 150%; } |
| 62 | +h2 .editsection { font-size: 66.7%; } |
56 | 63 | h3, h4, h5, h6 { |
57 | 64 | border-bottom: none; |
58 | 65 | font-weight: bold; |
59 | 66 | } |
60 | 67 | h3 { font-size: 132%; } |
| 68 | +h3 .editsection { font-size: 75.8%; } |
61 | 69 | h4 { font-size: 116%; } |
| 70 | +h4 .editsection { font-size: 86.2%; } |
62 | 71 | h5 { font-size: 100%; } |
63 | 72 | h6 { font-size: 80%; } |
| 73 | +h6 .editsection { font-size: 125%; } |
64 | 74 | |
65 | 75 | ul { |
66 | 76 | 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 | | -div.editsection { |
| 45 | +.editsection { |
46 | 46 | float: left; |
47 | 47 | margin-right: 5px; |
48 | 48 | } |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -119,17 +119,23 @@ |
120 | 120 | border-bottom: 1px solid #aaa; |
121 | 121 | } |
122 | 122 | h1 { font-size: 188%; } |
| 123 | +h1 .editsection { font-size: 53%; } |
123 | 124 | h2 { font-size: 150%; } |
| 125 | +h2 .editsection { font-size: 67%; } |
124 | 126 | h3, h4, h5, h6 { |
125 | 127 | border-bottom: none; |
126 | 128 | font-weight: bold; |
127 | 129 | } |
128 | 130 | h3 { font-size: 132%; } |
| 131 | +h3 .editsection { font-size: 76%; font-weight: normal; } |
129 | 132 | h4 { font-size: 116%; } |
| 133 | +h4 .editsection { font-size: 86%; font-weight: normal; } |
130 | 134 | h5 { font-size: 100%; } |
| 135 | +h5 .editsection { font-weight: normal; } |
131 | 136 | h6 { font-size: 80%; } |
| 137 | +h6 .editsection { font-size: 125%; font-weight: normal; } |
132 | 138 | |
133 | | -div.editsection { |
| 139 | +.editsection { |
134 | 140 | float: right; |
135 | 141 | margin-left: 5px; |
136 | 142 | } |
Index: trunk/phase3/skins/common/common.css |
— | — | @@ -2,6 +2,31 @@ |
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 | + |
6 | 31 | #footer { clear: both } |
7 | 32 | /* images */ |
8 | 33 | div.floatright { float: right; margin: 0 0 1em 1em; } |
— | — | @@ -314,11 +339,6 @@ |
315 | 340 | font-style: italic; |
316 | 341 | } |
317 | 342 | |
318 | | -div.editsection { |
319 | | - float: right; |
320 | | - margin-left: 5px; |
321 | | -} |
322 | | - |
323 | 343 | /* Classes for EXIF data display */ |
324 | 344 | table.mw_metadata { |
325 | 345 | margin-left: 0.5em; |
Index: trunk/phase3/skins/common/cologneblue.css |
— | — | @@ -78,8 +78,9 @@ |
79 | 79 | h1 { |
80 | 80 | color: #666666; |
81 | 81 | font-family: Verdana, Arial, sans-serif; |
82 | | - font-size: 18pt; font-weight: bold; line-height: 21pt; |
| 82 | + font-size: 180%; line-height: 21pt; |
83 | 83 | } |
| 84 | +h1 .editsection { font-size: 55.6%; } |
84 | 85 | h1.pagetitle { padding-bottom: 0; margin-bottom: 0; } |
85 | 86 | #article p.subtitle { |
86 | 87 | color: #666666; font-size: 11pt; font-weight: bold; |
Index: trunk/phase3/skins/common/commonPrint.css |
— | — | @@ -130,8 +130,11 @@ |
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 | +} |
136 | 139 | |
137 | 140 | p, .documentDescription { |
138 | 141 | margin: 1em 0 ! important; |
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 | | -div.editsection { |
| 17 | +.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,12 +29,18 @@ |
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%; } |
33 | 34 | h2 { font-size: 120%; } |
| 35 | +h2 .editsection { font-size: 83.3%; } |
34 | 36 | h2, h3, h4, h5, h6 { margin-bottom: 0;} |
35 | 37 | h3 { font-size: 106.25%; } |
| 38 | +h3 .editsection { font-size: 94.1%; } |
36 | 39 | h4 { font-size: 103.125%; } |
| 40 | +h4 .editsection { font-size: 97.0%; } |
37 | 41 | h5 { font-size: 100%; } |
| 42 | +h5 .editsection { font-size: 100%; } |
38 | 43 | h6 { font-size: 95%; } |
| 44 | +h6 .editsection { font-size: 105.3%; } |
39 | 45 | hr.sep { color:gray;height:1px;background-color:gray;} |
40 | 46 | p.subpages { font-size:small;} |
41 | 47 | p.subtitle { padding-top: 0; margin-top: 0;} |
Index: trunk/phase3/skins/simple/main.css |
— | — | @@ -1,3 +1,29 @@ |
| 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 | + |
2 | 28 | #toolbar { |
3 | 29 | display: none; |
4 | 30 | } |
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 "<div class=\"editsection\">[".$url."]</div>"; |
| 1050 | + return "<span class=\"editsection\">[".$url."]</span>"; |
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 "<div class=\"editsection\">[".$url."]</div>"; |
| 1066 | + return "<span class=\"editsection\">[".$url."]</span>"; |
1067 | 1067 | } |
1068 | 1068 | |
1069 | 1069 | /** |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3501,6 +3501,9 @@ |
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 | + |
3505 | 3508 | if( $showEditLink && ( !$istemplate || $templatetitle !== "" ) ) { |
3506 | 3509 | if ( empty( $head[$headlineCount] ) ) { |
3507 | 3510 | $head[$headlineCount] = ''; |
— | — | @@ -3510,10 +3513,8 @@ |
3511 | 3514 | else |
3512 | 3515 | $head[$headlineCount] .= $sk->editSectionLink($this->mTitle, $sectionCount+1, $headline_hint); |
3513 | 3516 | } |
| 3517 | + $head[$headlineCount] .= $headline.'</h'.$level.'>'; |
3514 | 3518 | |
3515 | | - # give headline the correct <h#> tag |
3516 | | - @$head[$headlineCount] .= "<a name=\"$anchor\"></a><h".$level.$matches[2][$headlineCount] .$headline.'</h'.$level.'>'; |
3517 | | - |
3518 | 3519 | $headlineCount++; |
3519 | 3520 | if( !$istemplate ) |
3520 | 3521 | $sectionCount++; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -42,6 +42,8 @@ |
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) |
46 | 48 | |
47 | 49 | == Languages updated == |
48 | 50 | |