Gallery: Use intrinsic width for gallery to center caption
authorFomafix <fomafix@googlemail.com>
Mon, 2 Nov 2015 06:39:24 +0000 (06:39 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Mon, 2 Nov 2015 06:39:24 +0000 (06:39 +0000)
commite6dd624baeca16efe462e3938969a72c9ef4ed1e
tree4b043c8275535d9f34ed5e0c198f83cbd4ad9a57
parentd2d935483fd57798aedce43629229aab887c5b2a
Gallery: Use intrinsic width for gallery to center caption

Currently the caption is always centered between the whole width of the browser.
When there are only a few images the caption is not on top of the images.
This change shrinks the gallery to its intrinsic width. The caption is now
centered on top of the images.

This patch does not support Internet Explorer.

Bug: T29540
Change-Id: I145b120183ef151cec98aa75f030d63a191bf9ac
resources/src/mediawiki/page/gallery.css