From: Aryeh Gregor Date: Sun, 23 Dec 2007 02:21:49 +0000 (+0000) Subject: Fix last commit adding ID's, I didn't want to remove the

's. X-Git-Tag: 1.31.0-rc.0~50299 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=fe43f5ea7039e3c59944e96095583ada865d0559;p=lhc%2Fweb%2Fwiklou.git Fix last commit adding ID's, I didn't want to remove the

's. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f066a119b4..50b2e6fafd 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1246,7 +1246,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '104'; +$wgStyleVersion = '105'; # Server-side caching: diff --git a/includes/EditPage.php b/includes/EditPage.php index e93bae660a..1bd627fd8a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1056,9 +1056,9 @@ class EditPage { } if( wfReadOnly() ) { - $wgOut->addWikiText( '

'.wfMsg( 'readonlywarning' ).'
' ); + $wgOut->addHTML( '
'.wfMsgWikiHTML( 'readonlywarning' ).'
' ); } elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) { - $wgOut->addWikiText( '
'.wfMsg( 'anoneditwarning' ).'
' ); + $wgOut->addHTML( '
'.wfMsgWikiHTML( 'anoneditwarning' ).'
' ); } else { if( $this->isCssJsSubpage && $this->formtype != 'preview' ) { # Check the skin exists diff --git a/includes/Linker.php b/includes/Linker.php index 17e988b4db..6c69773936 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1225,7 +1225,11 @@ class Linker { * @return string HTML headline */ public function makeHeadline( $level, $attribs, $anchor, $text, $link ) { - return "$text"; + # See related bugs 1629, 11270, 11555. + return " +
+ $link +
"; } /** diff --git a/skins/common/oldshared.css b/skins/common/oldshared.css index ead422dc78..4559cd32ed 100644 --- a/skins/common/oldshared.css +++ b/skins/common/oldshared.css @@ -4,28 +4,6 @@ * CologneBlue, the old pre-Monobook skins */ -/* For clarity, explicitly state some recommendations from 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; } diff --git a/skins/common/shared.css b/skins/common/shared.css index 61f68395f0..e50a24029d 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -19,12 +19,6 @@ div#mw-js-message { background-color: #fcfcfc; } -/* Edit section links */ -.editsection { - float: right; - margin-left: 5px; -} - /** * File histories */ diff --git a/skins/monobook/IE50Fixes.css b/skins/monobook/IE50Fixes.css index 027e32ed0c..b512f9193d 100644 --- a/skins/monobook/IE50Fixes.css +++ b/skins/monobook/IE50Fixes.css @@ -64,4 +64,3 @@ li#pt-logout { margin: 0; } .firstHeading { margin-bottom: .3em; } -/*div{ border:1px solid Red !important;}*/ diff --git a/skins/monobook/IE55Fixes.css b/skins/monobook/IE55Fixes.css index 637daae17f..608722064d 100644 --- a/skins/monobook/IE55Fixes.css +++ b/skins/monobook/IE55Fixes.css @@ -83,3 +83,9 @@ body { font-size: xx-small; } #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; } diff --git a/skins/monobook/IE60Fixes.css b/skins/monobook/IE60Fixes.css index 6b646c703b..671c7de7b4 100644 --- a/skins/monobook/IE60Fixes.css +++ b/skins/monobook/IE60Fixes.css @@ -80,5 +80,8 @@ div.tright, 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; } diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 02cc9c9f9b..466aecc8c3 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -111,31 +111,28 @@ hr { 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;