jenkins-bot has submitted this change and it was merged.

Change subject: CSS style for thumbs on special pages
......................................................................


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
---
M skins/common/commonContent.css
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  SPQRobin: Looks good to me, but someone else must approve
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/skins/common/commonContent.css b/skins/common/commonContent.css
index 4157b55..2ee787b 100644
--- a/skins/common/commonContent.css
+++ b/skins/common/commonContent.css
@@ -144,12 +144,14 @@
        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;
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/152283
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia6aa7c896fbedfe40b97af7358c5fa89223251b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Gerrit Patch Uploader <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: SPQRobin <[email protected]>
Gerrit-Reviewer: Waldir <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to