* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '104';
+$wgStyleVersion = '105';
# Server-side caching:
}
if( wfReadOnly() ) {
- $wgOut->addWikiText( '<div id="mw-read-only-warning">'.wfMsg( 'readonlywarning' ).'</div>' );
+ $wgOut->addHTML( '<div id="mw-read-only-warning">'.wfMsgWikiHTML( 'readonlywarning' ).'</div>' );
} elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) {
- $wgOut->addWikiText( '<div id="mw-anon-edit-warning">'.wfMsg( 'anoneditwarning' ).'</div>' );
+ $wgOut->addHTML( '<div id="mw-anon-edit-warning">'.wfMsgWikiHTML( 'anoneditwarning' ).'</div>' );
} else {
if( $this->isCssJsSubpage && $this->formtype != 'preview' ) {
# Check the skin exists
* @return string HTML headline
*/
public function makeHeadline( $level, $attribs, $anchor, $text, $link ) {
- return "<a name=\"$anchor\"></a><h$level$attribs$link <span class=\"mw-headline\">$text</span></h$level>";
+ # See related bugs 1629, 11270, 11555.
+ return "<a name=\"$anchor\"></a>
+<div class=\"mw-h$level\">
+ <h$level$attribs$text</h$level> $link
+</div>";
}
/**
* CologneBlue, the old pre-Monobook skins
*/
-/* For clarity, explicitly state some recommendations from <http://www.w3.org/
- TR/CSS21/sample.html> to make sure the editsection links scale right */
-
-h1 { font-size: 2em; }
-h2 { font-size: 1.5em; }
-h3 { font-size: 1.17em; }
-h5 { font-size: .83em; }
-h6 { font-size: .75em; }
-h1, h2, h3, h4, h5, h6 { font-weight: bolder }
-
-/* Now the custom parts */
-
-/* Make edit sections (which are inside h# tags) normal-sized */
-.editsection {
- font-weight: normal;
-}
-h1 .editsection { font-size: 50% }
-h2 .editsection { font-size: 66.7% }
-h3 .editsection { font-size: 85.5% }
-h5 .editsection { font-size: 120% }
-h6 .editsection { font-size: 133% }
-
#footer { clear: both }
/* images */
div.floatright { float: right; clear: right; margin: 0 0 1em 1em; }
background-color: #fcfcfc;
}
-/* Edit section links */
-.editsection {
- float: right;
- margin-left: 5px;
-}
-
/**
* File histories
*/
margin: 0;
}
.firstHeading { margin-bottom: .3em; }
-/*div{ border:1px solid Red !important;}*/
#editform {
width: 100%;
}
+
+
+/* IE 5, 5.5, 6 ignore the space in between the header and the link. We can
+ * fix this with a margin for 5.5 and 6, but 5 ignores margins on inline
+ * elements, so that looks a little uglier. */
+.editsection { margin-left: 0.3em; }
div.tleft {
position: relative;
}
-/*{ border:1px solid Red !important;}*/
+/* IE 5, 5.5, 6 ignore the space in between the header and the link. We can
+ * fix this with a margin for 5.5 and 6, but 5 ignores margins on inline
+ * elements, so that looks a little uglier. */
+.editsection { margin-left: 0.3em; }
margin: .2em 0 .2em 0;
}
-h1, h2, h3, h4, h5, h6 {
+.mw-h1, .mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 {
color: black;
background: none;
- font-weight: normal;
margin: 0;
padding-top: .5em;
padding-bottom: .17em;
border-bottom: 1px solid #aaa;
}
+h1, h2, h3, h4, h5, h6 {
+ font-weight: normal;
+ display: inline;
+}
h1 { font-size: 188%; }
-h1 .editsection { font-size: 53%; }
h2 { font-size: 150%; }
-h2 .editsection { font-size: 67%; }
h3, h4, h5, h6 {
border-bottom: none;
font-weight: bold;
}
h3 { font-size: 132%; }
-h3 .editsection { font-size: 76%; font-weight: normal; }
h4 { font-size: 116%; }
-h4 .editsection { font-size: 86%; font-weight: normal; }
h5 { font-size: 100%; }
-h5 .editsection { font-weight: normal; }
h6 { font-size: 80%; }
-h6 .editsection { font-size: 125%; font-weight: normal; }
ul {
line-height: 1.5em;