Topic on Project:Support desk

Mobile.css doesn't load, possible bug?

5
Summary by Semako96

Main topic resolved, it is in fact a bug in the extension, fixed with a workaround. For other problems, I opened a new topic.

Semako96 (talkcontribs)

Because the desktop version of Vector looks really messed up when I load it the first time (reload fixes it, screenshot: https://abload.de/img/screenshot_2019-01-1690kds.png), I installed Extension:MobileFrontend and Skin:Minerva Neue. Now it loads the Minerva skin on phones, and that doesn't look messed up.

Now I am trying to adapt our templates such as infoboxes for the new mobile skin, but the problem is, that MediaWiki:Mobile.css doesn't load at all in the mobile version, not even as overwritten by other CSS rules, as you can see here: https://abload.de/img/mobilecssbug2pk9h.png (trying to fix the messed-up infobox). What is the problem here? Is it a bug in either Minerva or MobileFrontend?

Semako96 (talkcontribs)

I just found the bug report on Phabricator and did the workaround via mobile.js, now it works fine. The only problems I have now are the messed-up vector skin (see screenshot) when using the desktop view on phone and that the infobox isn't the first thing in articles on mobile view, it sits after the first paragraph, despite being the first thing in the article's code. And I also just noticed that the expandable navigation templates at the page's end are missing entirely in the mobile view?!

MarkAHershberger (talkcontribs)

Could you point to the phab task?

What version of MediaWikia are you using?

Semako96 (talkcontribs)
Semako96 (talkcontribs)

Any ideas?