From 03e3bf0c7a1841f757e47b70697851fe6b36b8d0 Mon Sep 17 00:00:00 2001 From: Huji Date: Sat, 9 Feb 2008 08:24:16 +0000 Subject: [PATCH] Moving the RTL fixes to monobook. Adding documentation. Minimizing the effect on non-Gecko browsers. --- skins/common/shared.css | 6 ------ skins/monobook/rtl.css | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/skins/common/shared.css b/skins/common/shared.css index 53e67c6408..de02a10f72 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -69,12 +69,6 @@ body.rtl td.mw-submit { text-align: right; } td.mw-label { vertical-align: top; } td.mw-submit { white-space: nowrap; } -/** - * Lists (fixing for RTL display) - */ -body.rtl #body-content ul { display:table; } -body.rtl #body-content ol { display:table; } - /** * Image captions */ diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index e28ffb757e..2bd5261e21 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -227,3 +227,12 @@ p.mw-ipb-conveniencelinks { table.filehistory th { text-align: right; } + +/** + * Lists: + * The following lines don't have a visible effect on non-Gecko browsers + * They fix a problem ith Gecko browsers rendering lists to the right of + * left-floated objects in an RTL layout. + */ +html>body.rtl #bodyContent ul { display:table; } +html>body.rtl #bodyContent ol { display:table; } \ No newline at end of file -- 2.20.1