Follow up to r89419:
authorHuji <huji@users.mediawiki.org>
Sat, 4 Jun 2011 14:33:01 +0000 (14:33 +0000)
committerHuji <huji@users.mediawiki.org>
Sat, 4 Jun 2011 14:33:01 +0000 (14:33 +0000)
Per Brion's comment on Code Review, a generically named ltr class is created and used to reduce the number of rules

includes/specials/SpecialVersion.php
skins/common/shared.css

index 8a3dfcd..5cf9898 100644 (file)
@@ -146,7 +146,7 @@ class SpecialVersion extends SpecialPage {
                foreach( $software as $name => $version ) {
                        $out .= "<tr>
                                        <td>" . $name . "</td>
-                                       <td>" . $version . "</td>
+                                       <td class=\"ltr\">" . $version . "</td>
                                </tr>\n";
                }
 
index efc0260..9dda281 100644 (file)
@@ -709,20 +709,8 @@ th.headerSortDown {
        background-image: url(images/sort_down.gif); 
 }
 
-/* Special:Version */
-#sv-software td {
-       /* version numbers are always ltr (and otherwise an RLE can be inserted) */
-       /* @noflip */
-       direction: ltr;
-}
-
-/* LTR content in RTL layout, e.g. SQL queries inside DB error messages */
-div.ltr {
-       /* @noflip */
-       direction: ltr;
-}
-
-span.ltr {
+/* LTR content in RTL layout */
+.ltr {
        /* @noflip */
        direction: ltr;
        unicode-bidi: embed;