new rtl stylesheet common_rtl.css used by standard, nostalgia, cologneblue for rtl...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 20 May 2004 00:50:32 +0000 (00:50 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 20 May 2004 00:50:32 +0000 (00:50 +0000)
includes/Skin.php
stylesheets/common_rtl.css [new file with mode: 0644]

index ef59e51..8ccb6f2 100644 (file)
@@ -159,11 +159,12 @@ class Skin {
 
        function getUserStyles()
        {
-               global $wgOut, $wgStylePath;
+               global $wgOut, $wgStylePath, $wgLang;
                $sheet = $this->getStylesheet();
                $s = "<style type='text/css'>\n";
                $s .= "/*/*/\n"; # <-- Hide the styles from Netscape 4 without hiding them from IE/Mac
                $s .= "@import url(\"$wgStylePath/$sheet\");\n";
+               if($wgLang->isRTL()) $s .= "@import url(\"$wgStylePath/common_rtl.css\");\n";
                $s .= $this->doGetUserStyles();
                $s .= "/* */\n";
                $s .= "</style>\n";
diff --git a/stylesheets/common_rtl.css b/stylesheets/common_rtl.css
new file mode 100644 (file)
index 0000000..f3e52af
--- /dev/null
@@ -0,0 +1,10 @@
+/* js pref toc */
+#preftoc { float: right; }
+/* workaround for moz bug, displayed bullets on left side */
+#preftoc li { list-style: none; }
+#prefcontrol { float: right; }
+fieldset.prefsection,
+fieldset.operaprefsection { 
+    margin-left: 0;
+    margin-right: 18em;
+}