From: Fomafix Date: Thu, 7 Aug 2014 13:06:06 +0000 (+0000) Subject: CSS style for thumbs on special pages X-Git-Tag: 1.31.0-rc.0~14399^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=d6d3363d0ed26d87a98d33bf0f5d3a91053d576c;p=lhc%2Fweb%2Fwiklou.git CSS style for thumbs on special pages Extension GlobalUsage uses thumbs on a special page. Special pages have no CSS class mw-content-ltr or mw-content-rtl. This change adds a default style for magnify and thumbcaption which gets flipped by the direction of the user interface language. This default definition gets overwritten by the existing definition in shared.css based on the content direction: /** * Image captions */ /* @noflip */ .mw-content-ltr .thumbcaption { text-align: left; } /* @noflip */ .mw-content-rtl .thumbcaption { text-align: right; } /* @noflip */ .mw-content-ltr .magnify { float: right; } /* @noflip */ .mw-content-rtl .magnify { float: left; } Bug: 69215 Change-Id: Ia6aa7c896fbedfe40b97af7358c5fa89223251b3 --- diff --git a/skins/common/commonContent.css b/skins/common/commonContent.css index 4157b55b8c..2ee787bf7d 100644 --- a/skins/common/commonContent.css +++ b/skins/common/commonContent.css @@ -144,12 +144,14 @@ html .thumbcaption { border: none; line-height: 1.4em; padding: 3px !important; + text-align: left; font-size: 94%; } div.magnify { border: none !important; background: none !important; + float: right; margin-left: 3px; }