* (bug 6868) Un-hardcode section edit link style
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Oct 2006 04:47:01 +0000 (04:47 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Oct 2006 04:47:01 +0000 (04:47 +0000)
RELEASE-NOTES
includes/Linker.php
skins/common/common.css
skins/common/common_rtl.css
skins/monobook/main.css
skins/monobook/rtl.css

index d680854..b3e037f 100644 (file)
@@ -41,6 +41,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   This isn't a good permanent fix.
 * (bug 6918) Stopped borders and backgrounds from showing through floated
   tables in Monobook
+* (bug 6868) Un-hardcode section edit link style
 
 == Languages updated ==
 
index d34971f..bc5fb64 100644 (file)
@@ -1046,14 +1046,7 @@ class Linker {
                $editurl = '&section='.$section;
                $url = $this->makeKnownLinkObj( $title, wfMsg('editsection'), 'action=edit'.$editurl );
 
-               if( $wgContLang->isRTL() ) {
-                       $farside = 'left';
-                       $nearside = 'right';
-               } else {
-                       $farside = 'right';
-                       $nearside = 'left';
-               }
-               return "<div class=\"editsection\" style=\"float:$farside;margin-$nearside:5px;\">[".$url."]</div>";
+               return "<div class=\"editsection\">[".$url."]</div>";
 
        }
 
@@ -1069,14 +1062,7 @@ class Linker {
                $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"';
                $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '',  $hint );
 
-               if( $wgContLang->isRTL() ) {
-                       $farside = 'left';
-                       $nearside = 'right';
-               } else {
-                       $farside = 'right';
-                       $nearside = 'left';
-               }
-               return "<div class=\"editsection\" style=\"float:$farside;margin-$nearside:5px;\">[".$url."]</div>";
+               return "<div class=\"editsection\">[".$url."]</div>";
        }
 
        /**
index e630b77..57619f0 100644 (file)
@@ -314,6 +314,10 @@ li span.deleted {
        font-style: italic;
 }
 
+div.editsection {
+       float: right;
+       margin-left: 5px;
+}
 
 /* Classes for EXIF data display */
 table.mw_metadata {
@@ -429,4 +433,3 @@ table.multipageimage td {
 .imagelist .TablePager_col_links { background-color: #eeeeff }
 .imagelist .TablePager_col_img_description { white-space: normal }
 .imagelist th.TablePager_sort { background-color: #ccccff }
-
index 8f50b2a..a5ba2d7 100644 (file)
@@ -13,3 +13,7 @@ fieldset.operaprefsection {
     margin-right: 1.4em;
     margin-left: 0.4em;
 }
+div.editsection {
+       float: left;
+       margin-right: 5px;
+}
\ No newline at end of file
index 07efa09..6b57ed9 100644 (file)
@@ -129,6 +129,11 @@ h4 { font-size: 116%; }
 h5 { font-size: 100%; }
 h6 { font-size: 80%;  }
 
+div.editsection {
+       float: right;
+       margin-left: 5px;
+}
+
 ul {
        line-height: 1.5em;
        list-style-type: square;
index 91e2fb3..bf88e43 100644 (file)
@@ -41,6 +41,10 @@ html>body .portlet {
        float: right;
        clear: right;
 }
+div.editsection {
+       float: left;
+       margin-right: 5px;
+}
 /* recover IEMac (might be fine with the float, but usually it's close to IE */
 *>body .portlet {
        float: none;