From: Huji Date: Fri, 8 Feb 2008 17:20:04 +0000 (+0000) Subject: * Image caption elements are now styled using a linked CSS (fixes bug 12869) X-Git-Tag: 1.31.0-rc.0~49556 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=49a02c6a6edd17e59c6fb070c87b7f4c7fff3bc6;p=lhc%2Fweb%2Fwiklou.git * Image caption elements are now styled using a linked CSS (fixes bug 12869) * A bug with Gecko browsers is fixed (lists were not floated correctly in RTL). --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7a355afc95..7426f971c0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -374,6 +374,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN version * (bug 12952) Using Nosuchusershort instead of Nosuchuser when account creation is disabled +* (bug 12869) Magnify icon alignment should be adjusted using linked CSS == Parser changes in 1.12 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ad79928070..8585413308 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1320,7 +1320,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '112'; +$wgStyleVersion = '113'; # Server-side caching: diff --git a/includes/Linker.php b/includes/Linker.php index 11d3854c72..658b450a75 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -677,8 +677,6 @@ class Linker { $url = $title->getLocalURL( $query ); $more = htmlspecialchars( wfMsg( 'thumbnail-more' ) ); - $magnifyalign = $wgContLang->isRTL() ? 'left' : 'right'; - $textalign = $wgContLang->isRTL() ? ' style="text-align:right"' : ''; $s = "
"; if( !$exists ) { @@ -695,13 +693,13 @@ class Linker { if ( isset( $fp['framed'] ) ) { $zoomicon=""; } else { - $zoomicon = '
'. + $zoomicon = '
'. ''. '
'; } } - $s .= '
'.$zoomicon.$fp['caption']."
"; + $s .= '
'.$zoomicon.$fp['caption']."
"; return str_replace("\n", ' ', $s); } diff --git a/skins/common/shared.css b/skins/common/shared.css index ccc72b15e7..4ede168fec 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -68,3 +68,18 @@ 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 + */ +body.rtl .thumbcaption { text-aling:right; } +body.rtl .magnify { float:left; } + +body.ltr .thumbcaption { text-aling:left; } +body.ltr .magnify { float:right; } \ No newline at end of file