* id="autocomment" -> class="autocomment"
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 4 Apr 2004 19:55:03 +0000 (19:55 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sun, 4 Apr 2004 19:55:03 +0000 (19:55 +0000)
* border="0" -> img { border: none; }

includes/Skin.php
stylesheets/cologneblue.css
stylesheets/monobook/main.css
stylesheets/nostalgia.css
stylesheets/wikistandard.css

index 3682af4..6a416c8 100644 (file)
@@ -707,7 +707,7 @@ class Skin {
                $mp = wfMsg( "mainpage" );
                $titleObj = Title::newFromText( $mp );
                $s = "<a href=\"" . $titleObj->escapeLocalURL()
-                 . "\"><img{$a} border='0' src=\""
+                 . "\"><img{$a} src=\""
                  . $this->getLogo() . "\" alt=\"" . "[{$mp}]\" /></a>";
                return $s;
        }
@@ -1507,8 +1507,8 @@ class Skin {
                        }
                        if ( "center" == $align )
                        {
-                               $prefix  = "<center>";
-                               $postfix = "</center>";
+                               $prefix  = '<span style="text-align: center">';
+                               $postfix = '</span>';
                                $align   = "none";
                        }
        
@@ -1548,7 +1548,7 @@ class Skin {
                        $s = str_replace( "$1", $name, wfMsg("missingimage") );
                } else {
                        $s = "\n  <a href=\"{$u}\" class='image' title=\"{$alt}\">\n" .
-                               "  <img border=\"0\" src=\"{$url}\" alt=\"{$alt}\" />\n  </a>";
+                               "  <img src=\"{$url}\" alt=\"{$alt}\" />\n  </a>";
                }
                if ( "" != $align ) {
                        $s = "<div class=\"float{$align}\"><span>{$s}\n</span></div>";
@@ -1694,10 +1694,10 @@ class Skin {
                        $s .= str_replace( "$1", $name, wfMsg("missingimage") );
                } else {
                        $s .= "\n".'  <a href="'.$u.'" class="internal" title="'.$alt.'">'."\n".
-                               '  <img border="0" src="'.$thumbUrl.'" alt="'.$alt.'" ' .
+                               '  <img src="'.$thumbUrl.'" alt="'.$alt.'" ' .
                                '  width="'.$boxwidth.'" height="'.$boxheight.'" /></a>' ."\n".
                                '  <a href="'.$u.'" class="internal" title="'.$more.'"> ' ."\n".
-                               '  <img border="0" src="'.$wgUploadPath.'/magnify-clip.png" ' .
+                               '  <img src="'.$wgUploadPath.'/magnify-clip.png" ' .
                                'width="26" height="24" align="'.$magnifyalign.'" alt="'.$more.'" /> </a>'."\n";
                }
                $s .= '  <p'.$textalign.'>'.$label."</p>\n</div></div>";
@@ -1862,8 +1862,8 @@ class Skin {
                $rcm = "RCM{$this->rcCacheIndex}" ;
                $toggleLink = "javascript:toggleVisibility(\"{$rci}\",\"{$rcm}\",\"{$rcl}\")" ;
                $arrowdir = $wgLang->isRTL() ? "l" : "r";
-               $tl  = "<span id='{$rcm}'><a href='$toggleLink'><img src='{$wgUploadPath}/Arr_{$arrowdir}.png' width='12' height='12' border='0' /></a></span>" ;
-               $tl .= "<span id='{$rcl}' style='display:none'><a href='$toggleLink'><img src='{$wgUploadPath}/Arr_d.png' width='12' height='12' border='0' /></a></span>" ;
+               $tl  = "<span id='{$rcm}'><a href='$toggleLink'><img src='{$wgUploadPath}/Arr_{$arrowdir}.png' width='12' height='12' /></a></span>" ;
+               $tl .= "<span id='{$rcl}' style='display:none'><a href='$toggleLink'><img src='{$wgUploadPath}/Arr_d.png' width='12' height='12' /></a></span>" ;
                $r .= $tl ;
 
                # Main line
@@ -1905,7 +1905,7 @@ class Skin {
                        # Get rc_xxxx variables
                        extract( $rcObj->mAttribs );
                        
-                       $r .= "<img src='{$wgUploadPath}/Arr_.png' width=12 height=12 border=0 />";
+                       $r .= "<img src='{$wgUploadPath}/Arr_.png' width=12 height=12 />";
                        $r .= "<tt>&nbsp; &nbsp; &nbsp; &nbsp;" ;
                        if ( $rc_new ) $r .= $N ;
                        else $r .= "&nbsp;" ;
@@ -2196,7 +2196,7 @@ class Skin {
                
                # format text between /* .. */ with autocomment CSS class
                $comment=preg_replace("/\/\*\s*(.*?)\s*\*\//i",
-               "<span id=\"autocomment\">$1</span>",$comment);
+               "<span class=\"autocomment\">$1</span>",$comment);
                return $comment;
        }
 
index 9233ddc..67f116f 100644 (file)
@@ -21,7 +21,7 @@ p, pre, td, th, li, dd, dt { line-height: 12pt; }
 
 #footer { padding: 4px; }
 #footer form { display: inline; }
-#autocomment { color: gray; }
+.autocomment { color: gray; }
 #sitetitle {
  font-family: Times, serif;
  color: white;
@@ -91,6 +91,7 @@ a.printable { text-decoration: underline; }
 a.stub { color:#772233; text-decoration:none; }
 h2, h3, h4, h5, h6 { margin-bottom: 0; }
 small { font-size: 75%; }
+img { border: none; }
 #toc { border:1px solid #8888aa; background-color:#f7f8ff;padding:5px;font-size:95%; }
 
 
index 8fd2d32..883ecd6 100644 (file)
@@ -502,7 +502,7 @@ div.townBox dl dd {
     padding: 0;
 }
 /* the auto-generated edit comments */
-#autocomment { color: gray; }
+.autocomment { color: gray; }
 
 
 /*
index 390e316..e14a64b 100644 (file)
@@ -13,6 +13,7 @@ a.printable { text-decoration: underline; }
 a.stub { color:#772233; text-decoration:none; }
 h1.pagetitle { padding-top: 0; margin-top: 0; padding-bottom: 0; margin-bottom: 0; }
 h2, h3, h4, h5, h6 { margin-bottom: 0; }
+img { border: none; }
 p.subtitle { padding-top: 0; margin-top: 0; }
 #toc { border:1px solid #8888aa; background-color:#f7f8ff;padding:5px;font-size:95%; }
 
@@ -57,6 +58,9 @@ table.rimage {
         font-size:smaller;
         }
 
+/* automatically generated edit summaries */
+.autocomment { color: gray; }
+
 /* Print-specific things to hide */
 .urlexpansion, .printfooter {
         display: none;
index 40ae278..05fc805 100644 (file)
@@ -9,7 +9,7 @@
 #topbar { padding: 4px;font-size:95%; }
 
 /* automatically generated edit summaries */
-#autocomment { color: gray; }
+.autocomment { color: gray; }
 
 /* Table of contents */
 #toc {
@@ -54,6 +54,7 @@ p.subtitle { padding-top: 0; margin-top: 0;}
 td { empty-cells:show; }
 td.bottom { border-top: 1px solid gray; }
 td.top { border-bottom: 1px solid gray; }
+img { border: none; }
 /* images */
 div.floatright { float: right; margin: 0 0 1em 1em; }
 div.floatright p { font-style: italic; }