Index: trunk/phase3/skins/modern/main.css |
— | — | @@ -334,12 +334,17 @@ |
335 | 335 | font-size: small; |
336 | 336 | } |
337 | 337 | |
338 | | -h1, h2 { |
| 338 | +.mw-h1, |
| 339 | +.mw-h2, |
| 340 | +.mw-h3, |
| 341 | +.mw-h4, |
| 342 | +.mw-h5, |
| 343 | +.mw-h6 { |
| 344 | + overflow: hidden; |
339 | 345 | border-bottom: solid 1px #036; |
340 | 346 | } |
341 | | - |
342 | | -h1, h2, h3, h4, h5, h6 { |
343 | | - overflow: hidden; |
| 347 | +.mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
| 348 | + border-bottom: none; |
344 | 349 | } |
345 | 350 | |
346 | 351 | #preftoc { |
Index: trunk/phase3/skins/common/wikistandard.css |
— | — | @@ -96,18 +96,10 @@ |
97 | 97 | font-size: 150%; |
98 | 98 | } |
99 | 99 | |
100 | | -h1.pagetitle .editsection { |
101 | | - font-size: 66.7%; |
102 | | -} |
103 | | - |
104 | 100 | h2 { |
105 | 101 | font-size: 120%; |
106 | 102 | } |
107 | 103 | |
108 | | -h2 .editsection { |
109 | | - font-size: 83.3%; |
110 | | -} |
111 | | - |
112 | 104 | h2, h3, h4, h5, h6 { |
113 | 105 | margin-bottom: 0; |
114 | 106 | } |
— | — | @@ -116,34 +108,18 @@ |
117 | 109 | font-size: 106.25%; |
118 | 110 | } |
119 | 111 | |
120 | | -h3 .editsection { |
121 | | - font-size: 94.1%; |
122 | | -} |
123 | | - |
124 | 112 | h4 { |
125 | 113 | font-size: 103.125%; |
126 | 114 | } |
127 | 115 | |
128 | | -h4 .editsection { |
129 | | - font-size: 97.0%; |
130 | | -} |
131 | | - |
132 | 116 | h5 { |
133 | 117 | font-size: 100%; |
134 | 118 | } |
135 | 119 | |
136 | | -h5 .editsection { |
137 | | - font-size: 100%; |
138 | | -} |
139 | | - |
140 | 120 | h6 { |
141 | 121 | font-size: 95%; |
142 | 122 | } |
143 | 123 | |
144 | | -h6 .editsection { |
145 | | - font-size: 105.3%; |
146 | | -} |
147 | | - |
148 | 124 | hr.sep { |
149 | 125 | color: gray; |
150 | 126 | height: 1px; |
Index: trunk/phase3/skins/common/oldshared.css |
— | — | @@ -4,30 +4,6 @@ |
5 | 5 | * CologneBlue, the old pre-Monobook skins |
6 | 6 | */ |
7 | 7 | |
8 | | -/* For clarity, explicitly state some recommendations from <http://www.w3.org/ |
9 | | - TR/CSS21/sample.html> to make sure the editsection links scale right */ |
10 | | - |
11 | | -h1 { font-size: 2em; } |
12 | | -h2 { font-size: 1.5em; } |
13 | | -h3 { font-size: 1.17em; } |
14 | | -h5 { font-size: .83em; } |
15 | | -h6 { font-size: .75em; } |
16 | | -h1, h2, h3, h4, h5, h6 { |
17 | | - font-weight: bolder; |
18 | | -} |
19 | | - |
20 | | -/* Now the custom parts */ |
21 | | - |
22 | | -/* Make edit sections (which are inside h# tags) normal-sized */ |
23 | | -.editsection { |
24 | | - font-weight: normal; |
25 | | -} |
26 | | -h1 .editsection { font-size: 50%; } |
27 | | -h2 .editsection { font-size: 66.7%; } |
28 | | -h3 .editsection { font-size: 85.5%; } |
29 | | -h5 .editsection { font-size: 120%; } |
30 | | -h6 .editsection { font-size: 133%; } |
31 | | - |
32 | 8 | #footer { clear: both } |
33 | 9 | /* images */ |
34 | 10 | /* @noflip */ |
Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -82,14 +82,22 @@ |
83 | 83 | background-color: #fcfcfc; |
84 | 84 | } |
85 | 85 | |
86 | | -/* Edit section links */ |
| 86 | +/* Display headings on the same line as edit link */ |
| 87 | +h1, h2, h3, h4, h5, h6 { display: inline; margin: 0; } |
| 88 | +/* But then we have to reintroduce the margin. We use the W3 recommended mar- |
| 89 | + * gins <http://www.w3.org/TR/CSS21/sample.html>, multiplying by the recom- |
| 90 | + * mended font-size. */ |
| 91 | +.mw-h1 { margin: 1.34em 0; } |
| 92 | +.mw-h2 { margin: 1.13em 0; } |
| 93 | +.mw-h3 { margin: 0.97em 0; } |
| 94 | +.mw-h4 { margin: 1.12em 0; } |
| 95 | +.mw-h5 { margin: 1.25em 0; } |
| 96 | +.mw-h6 { margin: 1.25em 0; } |
| 97 | + |
| 98 | +/* Give edi section link some space */ |
87 | 99 | .editsection { |
88 | | - float: right; |
89 | | - margin-left: 5px; |
| 100 | + margin: 0 .8em; |
90 | 101 | } |
91 | | -/* Correct directionality when page dir is different from site/user dir */ |
92 | | -/* @noflip */.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; } |
93 | | -/* @noflip */.mw-content-rtl .editsection, .mw-content-ltr .mw-content-rtl .editsection { float: left; } |
94 | 102 | /** |
95 | 103 | * File histories |
96 | 104 | */ |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | <!-- /sitenotice --> |
146 | 146 | <?php endif; ?> |
147 | 147 | <!-- firstHeading --> |
148 | | - <h1 id="firstHeading" class="firstHeading"><?php $this->html( 'title' ) ?></h1> |
| 148 | + <div class="mw-h1 firstHeading"><h1><?php $this->html( 'title' ) ?></h1></div> |
149 | 149 | <!-- /firstHeading --> |
150 | 150 | <!-- bodyContent --> |
151 | 151 | <div id="bodyContent"> |
Index: trunk/phase3/skins/simple/main.css |
— | — | @@ -1,26 +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 | | -.editsection { |
16 | | - font-weight: normal; |
17 | | -} |
18 | | -h1 .editsection { font-size: 50% } |
19 | | -h2 .editsection { font-size: 66.7% } |
20 | | -h3 .editsection { font-size: 85.5% } |
21 | | -h5 .editsection { font-size: 120% } |
22 | | -h6 .editsection { font-size: 133% } |
23 | | - |
24 | | - |
25 | 2 | #toolbar { |
26 | 3 | display: none; |
27 | 4 | } |
— | — | @@ -86,11 +63,22 @@ |
87 | 64 | } |
88 | 65 | p img { margin: 0; } |
89 | 66 | |
90 | | -h1, h2, h3, h4, h5, h6 { |
91 | | - margin: 0; |
92 | | - padding-top: 0.5em; |
93 | | - padding-bottom: 0.17em; |
| 67 | +.mw-h1, .mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
| 68 | + margin: 0; |
94 | 69 | } |
| 70 | +/* To replicate the old padding, where h# were block-level elements and edit |
| 71 | + * links were floated, we need to multiply .5em top padding and .17em bottom |
| 72 | + * padding by the header text sizes. We assume the W3 recommendations are |
| 73 | + * used: 200%, 150%, 117%, 100%, 83%, 75% size in that order |
| 74 | + * <http://www.w3.org/TR/CSS21/sample.html>. If not the padding may be margin- |
| 75 | + * ally off. */ |
| 76 | +.mw-h1 { padding: .94em 0 .32em; } /* (0.5*1.88)em 0 (0.17*1.88)em */ |
| 77 | +.mw-h2 { padding: .75em 0 .26em; } /* (0.5*1.50)em 0 (0.17*1.50)em */ |
| 78 | +.mw-h3 { padding: .66em 0 .22em; } /* etc. */ |
| 79 | +.mw-h4 { padding: .58em 0 .20em; } |
| 80 | +.mw-h5 { padding: .50em 0 .17em; } |
| 81 | +.mw-h6 { padding: .40em 0 .14em; } |
| 82 | + |
95 | 83 | fieldset { |
96 | 84 | margin: 1em 0em 1em 0em; |
97 | 85 | padding: 0em 1em 1em 1em; |
— | — | @@ -195,7 +183,7 @@ |
196 | 184 | border: solid 1px black; |
197 | 185 | } |
198 | 186 | |
199 | | -h1.firstHeading, h2 { |
| 187 | +.firstHeading, .mw-h2 { |
200 | 188 | border-bottom: solid 1px black; |
201 | 189 | } |
202 | 190 | #bodyContent a[href ^="http://"], |
Index: trunk/phase3/skins/cologneblue/screen.css |
— | — | @@ -164,10 +164,6 @@ |
165 | 165 | line-height: 21pt; |
166 | 166 | } |
167 | 167 | |
168 | | -h1 .editsection { |
169 | | - font-size: 55.6%; |
170 | | -} |
171 | | - |
172 | 168 | h1.pagetitle { |
173 | 169 | padding-bottom: 0; |
174 | 170 | margin-bottom: 0; |
— | — | @@ -207,7 +203,7 @@ |
208 | 204 | color: #CC2200; |
209 | 205 | } |
210 | 206 | |
211 | | -h2, h3, h4, h5, h6 { |
| 207 | +.mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
212 | 208 | margin-bottom: 0; |
213 | 209 | } |
214 | 210 | |
Index: trunk/phase3/skins/vector/screen.css |
— | — | @@ -727,42 +727,41 @@ |
728 | 728 | } |
729 | 729 | |
730 | 730 | /* Structural Elements */ |
731 | | -h1, |
732 | | -h2, |
733 | | -h3, |
734 | | -h4, |
735 | | -h5, |
736 | | -h6 { |
| 731 | +.mw-h1, |
| 732 | +.mw-h2, |
| 733 | +.mw-h3, |
| 734 | +.mw-h4, |
| 735 | +.mw-h5, |
| 736 | +.mw-h6 { |
737 | 737 | color: black; |
738 | 738 | background: none; |
739 | | - font-weight: normal; |
740 | 739 | margin: 0; |
741 | 740 | overflow: hidden; |
742 | | - padding-top: .5em; |
743 | | - padding-bottom: .17em; |
744 | 741 | border-bottom: 1px solid #aaa; |
745 | 742 | width: auto; |
746 | 743 | } |
747 | | -h1 { font-size: 188%; } |
748 | | -h1 .editsection { font-size: 53%; } |
749 | | -h2 { font-size: 150%; } |
750 | | -h2 .editsection { font-size: 67%; } |
751 | | -h3, |
752 | | -h4, |
753 | | -h5, |
754 | | -h6 { |
| 744 | +.mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
755 | 745 | border-bottom: none; |
756 | | - font-weight: bold; |
757 | 746 | } |
| 747 | +h1, h2 { font-weight: normal; } |
| 748 | +h1 { font-size: 188%; } |
| 749 | +h2 { font-size: 150%; } |
758 | 750 | h3 { font-size: 132%; } |
759 | | -h3 .editsection { font-size: 76%; font-weight: normal; } |
760 | 751 | h4 { font-size: 116%; } |
761 | | -h4 .editsection { font-size: 86%; font-weight: normal; } |
762 | 752 | h5 { font-size: 100%; } |
763 | | -h5 .editsection { font-weight: normal; } |
764 | 753 | h6 { font-size: 80%; } |
765 | | -h6 .editsection { font-size: 125%; font-weight: normal; } |
766 | | -.editsection { float: right; } |
| 754 | + |
| 755 | +/* To replicate the old padding, where h# were block-level elements and edit |
| 756 | + * links were floated, we need to multiply .5em top padding and .17em bottom |
| 757 | + * padding by the header text sizes. */ |
| 758 | +.mw-h1 { padding: .94em 0 .32em; } /* (0.5*1.88)em 0 (0.17*1.88)em */ |
| 759 | +.mw-h2 { padding: .75em 0 .26em; } /* (0.5*1.50)em 0 (0.17*1.50)em */ |
| 760 | +.mw-h3 { padding: .66em 0 .22em; } /* etc. */ |
| 761 | +.mw-h4 { padding: .58em 0 .20em; } |
| 762 | +.mw-h5 { padding: .50em 0 .17em; } |
| 763 | +.mw-h6 { padding: .40em 0 .14em; } |
| 764 | + |
| 765 | + |
767 | 766 | p { |
768 | 767 | margin: .4em 0 .5em 0; |
769 | 768 | line-height: 1.5em; |
Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | <a id="top"></a> |
80 | 80 | <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?> |
81 | 81 | |
82 | | - <h1 id="firstHeading" class="firstHeading"><?php $this->html('title') ?></h1> |
| 82 | + <div class="mw-h1 firstHeading"><h1><?php $this->html('title') ?></h1></div> |
83 | 83 | <div id="bodyContent"> |
84 | 84 | <div id="siteSub"><?php $this->msg('tagline') ?></div> |
85 | 85 | <div id="contentSub"<?php $this->html('userlangattributes') ?>><?php $this->html('subtitle') ?></div> |
Index: trunk/phase3/skins/chick/IE60Fixes.css |
— | — | @@ -70,7 +70,6 @@ |
71 | 71 | width: 96%; |
72 | 72 | } |
73 | 73 | |
74 | | -div.editsection, |
75 | 74 | #catlinks, |
76 | 75 | div.tright, |
77 | 76 | div.tleft { |
Index: trunk/phase3/skins/chick/main.css |
— | — | @@ -42,35 +42,37 @@ |
43 | 43 | margin: 0.2em 0 0.2em 0; |
44 | 44 | } |
45 | 45 | |
46 | | -h1, h2, h3, h4, h5, h6 { |
| 46 | +/* Headers */ |
| 47 | +.mw-h1, .mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
47 | 48 | color: black; |
48 | 49 | background: none; |
49 | | - font-weight: normal; |
50 | 50 | margin: 0; |
51 | | - overflow: hidden; |
52 | | - padding-top: 0.5em; |
53 | | - padding-bottom: 0.17em; |
54 | | - border-bottom: 1px solid #aaaaaa; |
| 51 | + border-bottom: 1px solid #aaa; |
55 | 52 | } |
56 | | -.editsection { |
| 53 | +.mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
| 54 | + border-bottom: none; |
| 55 | +} |
| 56 | +h1, h2 { |
57 | 57 | font-weight: normal; |
58 | 58 | } |
59 | 59 | h1 { font-size: 188%; } |
60 | | -h1 .editsection { font-size: 53.2%; } |
61 | 60 | h2 { font-size: 150%; } |
62 | | -h2 .editsection { font-size: 66.7%; } |
63 | | -h3, h4, h5, h6 { |
64 | | - border-bottom: none; |
65 | | - font-weight: bold; |
66 | | -} |
67 | 61 | h3 { font-size: 132%; } |
68 | | -h3 .editsection { font-size: 75.8%; } |
69 | 62 | h4 { font-size: 116%; } |
70 | | -h4 .editsection { font-size: 86.2%; } |
71 | 63 | h5 { font-size: 100%; } |
72 | 64 | h6 { font-size: 80%; } |
73 | | -h6 .editsection { font-size: 125%; } |
74 | 65 | |
| 66 | +/* To replicate the old padding, where h# were block-level elements and edit |
| 67 | + * links were floated, we need to multiply .5em top padding and .17em bottom |
| 68 | + * padding by the header text sizes. */ |
| 69 | +.mw-h1 { padding: .94em 0 .32em; } /* (0.5*1.88)em 0 (0.17*1.88)em */ |
| 70 | +.mw-h2 { padding: .75em 0 .26em; } /* (0.5*1.50)em 0 (0.17*1.50)em */ |
| 71 | +.mw-h3 { padding: .66em 0 .22em; } /* etc. */ |
| 72 | +.mw-h4 { padding: .58em 0 .20em; } |
| 73 | +.mw-h5 { padding: .50em 0 .17em; } |
| 74 | +.mw-h6 { padding: .40em 0 .14em; } |
| 75 | + |
| 76 | + |
75 | 77 | ul { |
76 | 78 | line-height: 1.5em; |
77 | 79 | margin: 0.3em 0 0 1.5em; |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -107,33 +107,41 @@ |
108 | 108 | margin: .2em 0 .2em 0; |
109 | 109 | } |
110 | 110 | |
111 | | -h1, h2, h3, h4, h5, h6 { |
| 111 | +/* Headers */ |
| 112 | +.mw-h1, .mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
112 | 113 | color: black; |
113 | 114 | background: none; |
114 | | - font-weight: normal; |
115 | 115 | margin: 0; |
116 | 116 | overflow: hidden; |
117 | | - padding-top: .5em; |
118 | | - padding-bottom: .17em; |
119 | 117 | border-bottom: 1px solid #aaa; |
120 | 118 | } |
| 119 | +.mw-h3, .mw-h4, .mw-h5, .mw-h6 { |
| 120 | + border-bottom: none; |
| 121 | +} |
| 122 | +h1, h2 { font-weight: normal; } |
| 123 | + |
121 | 124 | h1 { font-size: 188%; } |
122 | | -h1 .editsection { font-size: 53%; } |
123 | 125 | h2 { font-size: 150%; } |
124 | | -h2 .editsection { font-size: 67%; } |
125 | 126 | h3, h4, h5, h6 { |
126 | 127 | border-bottom: none; |
127 | 128 | font-weight: bold; |
128 | 129 | } |
129 | 130 | h3 { font-size: 132%; } |
130 | | -h3 .editsection { font-size: 76%; font-weight: normal; } |
131 | 131 | h4 { font-size: 116%; } |
132 | | -h4 .editsection { font-size: 86%; font-weight: normal; } |
133 | 132 | h5 { font-size: 100%; } |
134 | | -h5 .editsection { font-weight: normal; } |
135 | 133 | h6 { font-size: 80%; } |
136 | | -h6 .editsection { font-size: 125%; font-weight: normal; } |
137 | 134 | |
| 135 | +/* To replicate the old padding, where h# were block-level elements and edit |
| 136 | + * links were floated, we need to multiply .5em top padding and .17em bottom |
| 137 | + * padding by the header text sizes. */ |
| 138 | +.mw-h1 { padding: .94em 0 .32em; } /* (0.5*1.88)em 0 (0.17*1.88)em */ |
| 139 | +.mw-h2 { padding: .75em 0 .26em; } /* (0.5*1.50)em 0 (0.17*1.50)em */ |
| 140 | +.mw-h3 { padding: .66em 0 .22em; } /* etc. */ |
| 141 | +.mw-h4 { padding: .58em 0 .20em; } |
| 142 | +.mw-h5 { padding: .50em 0 .17em; } |
| 143 | +.mw-h6 { padding: .40em 0 .14em; } |
| 144 | + |
| 145 | + |
138 | 146 | ul { |
139 | 147 | line-height: 1.5em; |
140 | 148 | list-style-type: square; |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1617,7 +1617,7 @@ |
1618 | 1618 | * to ensure that client-side caches do not keep obsolete copies of global |
1619 | 1619 | * styles. |
1620 | 1620 | */ |
1621 | | -$wgStyleVersion = '303'; |
| 1621 | +$wgStyleVersion = '304'; |
1622 | 1622 | |
1623 | 1623 | /** |
1624 | 1624 | * This will cache static pages for non-logged-in users to reduce |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1506,10 +1506,11 @@ |
1507 | 1507 | * @return String: HTML headline |
1508 | 1508 | */ |
1509 | 1509 | public static function makeHeadline( $level, $attribs, $anchor, $text, $link, $legacyAnchor = false ) { |
1510 | | - $ret = "<h$level$attribs" |
1511 | | - . $link |
| 1510 | + $ret = "<div class=\"mw-h$level\">" |
| 1511 | + . "<h$level$attribs" |
1512 | 1512 | . " <span class=\"mw-headline\" id=\"$anchor\">$text</span>" |
1513 | | - . "</h$level>"; |
| 1513 | + . "</h$level>" |
| 1514 | + . "$link </div>"; |
1514 | 1515 | if ( $legacyAnchor !== false ) { |
1515 | 1516 | $ret = "<div id=\"$legacyAnchor\"></div>$ret"; |
1516 | 1517 | } |