Merge "Fixing alignment of infoboxes for RTL/LTR"

This commit is contained in:
jenkins-bot 2018-06-18 20:27:44 +00:00 committed by Gerrit Code Review
commit 53741ed02f
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;
}