Add support for float-right div boxes in German Wikipedia

Former-commit-id: 59a28941af9844485d04359aac9016dde71ef439 [formerly 54b89070ee0aad17bb270701e62f939c5284ce0c]
Former-commit-id: 99c1dd6f279208e870a2fd93c61d42d5e299ba1a
This commit is contained in:
Jaifroid 2018-02-28 08:06:17 +00:00
parent 54954986fd
commit ba9aead18c
2 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,10 @@ h1[tabindex="0"].collapsible-heading > .indicator {
.client-js .collapsible-heading .indicator {
display: none !important; /* this is to hide to "v" icone next to titles in desktop */
}
.float-right {
float: right;
margin-left: 10px;
}
}
@media all and (max-width: 720px) {
.mw-stack, .infobox, .vertical-navbox {

View File

@ -165,7 +165,7 @@ define(['util', 'uiUtil'], function (util, uiUtil) {
console.log(zim == "mobile" ? "Transforming display style to desktop..." : "Optimizing cached styles for desktop display...");
uiUtil.poll("mobile" ? "Transforming display style to desktop..." : "Optimizing cached styles for desktop display...");
//If it's in mobile position, move info-box above lead paragraph like on Wikipedia desktop
if (zim == "mobile") { //Actually, move the infobox anyway because the hatnote often gets in the way
if (zim == "mobile") {
//Attempt to match div-style infobox first
var tableBox = util.matchOuter(html, '<div\\b[^>]+?(?:infobox|vertical-navbox|qbRight|wv-quickbar|wikitable)[^>]+>', '</div>', 'i');
//If above failed we may have traditional table-style infobox