Fix last commit adding ID's, I didn't want to remove the <p>'s.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:21:49 +0000 (02:21 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:21:49 +0000 (02:21 +0000)
includes/DefaultSettings.php
includes/EditPage.php
includes/Linker.php
skins/common/oldshared.css
skins/common/shared.css
skins/monobook/IE50Fixes.css
skins/monobook/IE55Fixes.css
skins/monobook/IE60Fixes.css
skins/monobook/main.css

index f066a11..50b2e6f 100644 (file)
@@ -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:
index e93bae6..1bd627f 100644 (file)
@@ -1056,9 +1056,9 @@ class EditPage {
                }
 
                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
index 17e988b..6c69773 100644 (file)
@@ -1225,7 +1225,11 @@ class Linker {
         * @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>";
        }
 
        /**
index ead422d..4559cd3 100644 (file)
@@ -4,28 +4,6 @@
  * 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; }
index 61f6839..e50a240 100644 (file)
@@ -19,12 +19,6 @@ div#mw-js-message {
        background-color: #fcfcfc;
 }
 
-/* Edit section links */
-.editsection {
-       float: right;
-       margin-left: 5px;
-}
-
 /**
  * File histories
  */
index 027e32e..b512f91 100644 (file)
@@ -64,4 +64,3 @@ li#pt-logout {
        margin: 0;
 }
 .firstHeading { margin-bottom: .3em; }
-/*div{ border:1px solid Red !important;}*/
index 637daae..6087220 100644 (file)
@@ -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; }
index 6b646c7..671c7de 100644 (file)
@@ -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; }
index 02cc9c9..466aecc 100644 (file)
@@ -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;