Cleanup from r19742:
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 4 Feb 2007 18:42:07 +0000 (18:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 4 Feb 2007 18:42:07 +0000 (18:42 +0000)
* use diffchange class alone for backwards compatibility with old renderings and diff plugins
* set text-decoration: none in diffs in RSS/Atom feeds
* fix bad diff regex in UTF-8 RandomTest script

includes/SpecialRecentchanges.php
includes/normal/RandomTest.php
skins/chick/main.css
skins/common/common.css
skins/common/commonPrint.css
skins/monobook/handheld.css
skins/monobook/main.css
skins/simple/main.css

index d0cec16..9ded0af 100644 (file)
@@ -691,7 +691,7 @@ function rcApplyDiffStyle( $text ) {
                'diff-addedline'   => 'background: #cfc; font-size: smaller;',
                'diff-deletedline' => 'background: #ffa; font-size: smaller;',
                'diff-context'     => 'background: #eee; font-size: smaller;',
-               'diffchange'       => 'color: red; font-weight: bold;',
+               'diffchange'       => 'color: red; font-weight: bold; text-decoration: none;',
        );
        
        foreach( $styles as $class => $style ) {
index de61b6f..9ccbc01 100644 (file)
@@ -69,7 +69,7 @@ function showDiffs( $a, $b ) {
        $formatter = new TableDiffFormatter();
        $funky = $formatter->format( $diffs );
        $matches = array();
-       preg_match_all( '/<(?:ins|del) class="diffchange">(.*?)<\/span>/', $funky, $matches );
+       preg_match_all( '/<(?:ins|del) class="diffchange">(.*?)<\/(?:ins|del)>/', $funky, $matches );
        foreach( $matches[1] as $bit ) {
                $hex = bin2hex( $bit );
                echo "\t$hex\n";
index 4e92b98..26d4f92 100644 (file)
@@ -415,8 +415,7 @@ td.diff-context {
     background:#eeeeee;
     font-size: smaller;
 }
-ins.diffchange { color: red; text-decoration: none; }
-del.diffchange { color: red; text-decoration: none; }
+.diffchange { color: red; text-decoration: none; }
 
 a.external { color: #3366bb; }
 
index 03c3252..92b4888 100644 (file)
@@ -125,12 +125,7 @@ td.diff-context {
     background:#eeeeee;
     font-size: 94%;
 }
-ins.diffchange {
-       color: red;
-       font-weight: bold;
-       text-decoration: none;
-}
-del.diffchange {
+.diffchange {
        color: red;
        font-weight: bold;
        text-decoration: none;
index 2bd7e98..4fddafa 100644 (file)
@@ -283,12 +283,7 @@ td.diff-context {
     background:#eeeeee;
     font-size: smaller;
 }
-ins.diffchange {
-    color: silver;
-    font-weight: bold;
-    text-decoration: underline;
-}
-del.diffchange {
+.diffchange {
     color: silver;
     font-weight: bold;
     text-decoration: underline;
index 5ef6040..754aba9 100644 (file)
@@ -559,7 +559,7 @@ td.diff-context {
        background: #eee;
        font-size: smaller;
 }
-span.diffchange {
+.diffchange {
        color: red;
        font-weight: bold;
 }
index 903c972..9a65693 100644 (file)
@@ -591,12 +591,7 @@ td.diff-context {
        background: #eee;
        font-size: smaller;
 }
-ins.diffchange {
-       color: red;
-       font-weight: bold;
-       text-decoration: none;
-}
-del.diffchange {
+.diffchange {
        color: red;
        font-weight: bold;
        text-decoration: none;
index 8e9f413..41d0b54 100644 (file)
@@ -268,8 +268,7 @@ td.diff-deletedline {
     background-color: #f8ffaa;
 }
 
-ins.diffchange { background-color: #FFCDF3; text-decoration: none; }
-del.diffchange { background-color: #FFCDF3; text-decoration: none; }
+.diffchange { background-color: #FFCDF3; text-decoration: none; }
 .autocomment { color:  grey; }
 #pagehistory span.user {
     margin-left: 1.4em;