From 3425754b7f0ad1cff69fd415d2e443ac5b981206 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 29 Jun 2009 21:38:06 +0000 Subject: [PATCH] Divided stylesheets into LTR and RTL versions, but also reverted strange hacks to make things sort of work in may browsers. Still need to solve RTL problems in browsers with certain CSS limitations. --- skins/Vector.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skins/Vector.php b/skins/Vector.php index 7f93e1f26c..93df526608 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -35,8 +35,13 @@ class SkinVector extends SkinTemplate { * @param object $out Output page to add styles to */ public function setupSkinUserCss( OutputPage $out ) { + global $wgContLang; // Append to the default screen common & print styles... - $out->addStyle( 'vector/main.css', 'screen' ); + if ( $wgContLang->isRTL() ) { + $out->addStyle( 'vector/main-rtl.css', 'screen' ); + } else { + $out->addStyle( 'vector/main-ltr.css', 'screen' ); + } // Add common styles parent::setupSkinUserCss( $out ); } -- 2.20.1