From: Rotem Liss Date: Sat, 8 Mar 2008 10:46:51 +0000 (+0000) Subject: Adding the fix for lists in RTL wikis to more skins, and fixing the image toc. X-Git-Tag: 1.31.0-rc.0~49204 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=b8c53e597496d5c75d5907f7c950058e3561fd28;p=lhc%2Fweb%2Fwiklou.git Adding the fix for lists in RTL wikis to more skins, and fixing the image toc. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 679511cd85..1cd49333de 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -77,6 +77,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Parse MediaWiki message translations with a correct language setting on preview * (bug 13281) Treat X-Forwarded-For, Client-ip and User-Agent headers as case-insensitive names. +* Adding the fix for lists in RTL wikis to more skins, and fixing the image toc === API changes in 1.13 === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ec7a4b00b3..d3f8d072f7 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -188,7 +188,7 @@ $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo. * * name A unique name for the repository. - * + * * For all core repos: * url Base public URL * hashLevels The number of directory levels for hash-based division of files @@ -1326,7 +1326,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '120'; +$wgStyleVersion = '121'; # Server-side caching: diff --git a/skins/common/common_rtl.css b/skins/common/common_rtl.css index 05890db7fa..55d956a378 100644 --- a/skins/common/common_rtl.css +++ b/skins/common/common_rtl.css @@ -35,3 +35,16 @@ p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons 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 div#article ul { + display: table; +} +html > body div#article ol { + display: table; +} diff --git a/skins/modern/rtl.css b/skins/modern/rtl.css index eedcbd3577..e286a3f429 100644 --- a/skins/modern/rtl.css +++ b/skins/modern/rtl.css @@ -140,3 +140,19 @@ table.filehistory th { border-right: none; border-left: solid 1px #bbbbbb; } + +/** + * 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 div#mw_contentholder ul { + display: table; +} +html > body div#mw_contentholder ol { + display: table; +} +html > body div#mw_contentholder ul#filetoc { + display: block; +} diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index 5b6889f1fe..73bc1451f7 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -24,7 +24,6 @@ To test: */ body { direction: rtl; -/* unicode-bidi: bidi-override;*/ unicode-bidi: embed; } #column-content { @@ -37,7 +36,7 @@ body { border-right: 1px solid #aaaaaa; border-left: none; } -html>body .portlet { +html > body .portlet { float: right; clear: right; } @@ -234,5 +233,12 @@ table.filehistory th { * 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 +html > body div#bodyContent ul { + display: table; +} +html > body div#bodyContent ol { + display: table; +} +html > body div#bodyContent ul#filetoc { + display: block; +} diff --git a/skins/simple/rtl.css b/skins/simple/rtl.css index d8061dad8a..13e7aa91f4 100644 --- a/skins/simple/rtl.css +++ b/skins/simple/rtl.css @@ -1,5 +1,5 @@ /* -Right-to-left fixes for MonoBook. +Right-to-left fixes for Simple. Places sidebar on right, tweaks various alignment issues. Works mostly ok nicely on Safari 1.2.1; fine in Mozilla. @@ -24,7 +24,6 @@ To test: */ body { direction: rtl; -/* unicode-bidi: bidi-override;*/ unicode-bidi: embed; } #column-content { @@ -173,3 +172,16 @@ p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons 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 div#bodyContent ul { + display: table; +} +html > body div#bodyContent ol { + display: table; +}