mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 12:19:46 -04:00
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:
parent
54954986fd
commit
ba9aead18c
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user