Fixing alignment of infoboxes for RTL/LTR

Explicitly set align to left on LTR wikis, and same for RTL wikis.
(tested in en wiki with ?uselang=he and he wiki with ?uselang=en)

Bug: T161399
Change-Id: Ic70acf2c56b52fe52eaac021581617342e3ae74f
This commit is contained in:
eranroz 2018-06-17 21:58:38 +03:00
parent c9586aed40
commit 8ca00225dd
1 changed files with 12 additions and 7 deletions

View File

@ -47,7 +47,6 @@ FIXME: Review all of these hacks to see if they still apply.
position: relative;
border: 1px solid @colorGray14;
margin-bottom: 2em;
text-align: left;
background-color: @colorGray15;
display: flex;
@ -89,6 +88,18 @@ FIXME: Review all of these hacks to see if they still apply.
flex-flow: row nowrap;
}
}
// Hack to assign info boxes properly when using RTL languages on LTR wiki
.mw-content-ltr table.infobox {
/* @noflip */
text-align: left;
}
// Hack to assign info boxes properly when using LTR languages on RTL wiki
.mw-content-rtl table.infobox {
/* @noflip */
text-align: right;
}
}
// FIXME: Remove when filetoc is stripped from file pages a la table of contents (toc)
@ -182,9 +193,3 @@ FIXME: Review all of these hacks to see if they still apply.
}
}
}
// Hack to assign info boxes properly when using RTL languages on LTR wiki
[dir='rtl'] .content .infobox {
/* @noflip */
text-align: left;
}