Revert extraneous parts of last commit, I didn't mean to check in cruddy half-finishe...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:41:28 +0000 (02:41 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:41:28 +0000 (02:41 +0000)
includes/DefaultSettings.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 50b2e6f..f066a11 100644 (file)
@@ -1246,7 +1246,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '105';
+$wgStyleVersion = '104';
 
 
 # Server-side caching:
index 6c69773..17e988b 100644 (file)
@@ -1225,11 +1225,7 @@ class Linker {
         * @return string HTML headline
         */
        public function makeHeadline( $level, $attribs, $anchor, $text, $link ) {
-               # See related bugs 1629, 11270, 11555.
-               return "<a name=\"$anchor\"></a>
-<div class=\"mw-h$level\">
-       <h$level$attribs$text</h$level> $link
-</div>";
+               return "<a name=\"$anchor\"></a><h$level$attribs$link <span class=\"mw-headline\">$text</span></h$level>";
        }
 
        /**
index 4559cd3..ead422d 100644 (file)
@@ -4,6 +4,28 @@
  * 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 e50a240..61f6839 100644 (file)
@@ -19,6 +19,12 @@ div#mw-js-message {
        background-color: #fcfcfc;
 }
 
+/* Edit section links */
+.editsection {
+       float: right;
+       margin-left: 5px;
+}
+
 /**
  * File histories
  */
index b512f91..027e32e 100644 (file)
@@ -64,3 +64,4 @@ li#pt-logout {
        margin: 0;
 }
 .firstHeading { margin-bottom: .3em; }
+/*div{ border:1px solid Red !important;}*/
index 6087220..637daae 100644 (file)
@@ -83,9 +83,3 @@ 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 671c7de..6b646c7 100644 (file)
@@ -80,8 +80,5 @@ 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 466aecc..02cc9c9 100644 (file)
@@ -111,28 +111,31 @@ hr {
        margin: .2em 0 .2em 0;
 }
 
-.mw-h1, .mw-h2, .mw-h3, .mw-h4, .mw-h5, .mw-h6 {
+h1, h2, h3, h4, h5, 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;