#CSS not loading on mobile

39 messages · Page 1 of 1 (latest)

spare hedge
#

Well i have a bunch of css rules in my Common.css file, but when I use devtools to simulate a mobile, there's just no rules in the load.php style tab where it is normally. That's confirmed when I use my phone to go on the article, rules that should apply does not.

pulsar terrace
#

if you are using MobileFrontend extension (adds mobile/desktop switch) - it ignores all CSS but inline and MediaWiki:Mobile.css

gloomy musk
spare hedge
#

Oh okay

spare hedge
#

Okay so I reopen this

#

Bc I couldn't disable the extension so I copy the common.css content to mobile.css

#

But it didn't have any effect

pulsar terrace
#

mobile mode usually works on different skin

#

default mobile skin is Minerva

#

so it's gonna differ from normal desktop skin wiki is using

#

Minerva is also notably limited, it hides or simplifies a lot of features

spare hedge
#

Yeah but it's my CSS ?

#

So it should be the same ?

#

Like I juste set some margin and use some grid

pulsar terrace
#

on infobox?

spare hedge
#

for templates

#

some are made to be used inside infobox but not all

#

btw do i have to copy the js code to some Mobile.js also ?

pulsar terrace
#

I think yes

#

for templates you can also use TemplateStyles, mobile mode doesn't ignore it

spare hedge
#

that is certainly better than stacking all my css into the main file 😂

spare hedge
#

is templatestyles default extension or locked ?

#

bc in the managewiki i can only find templateStylesExtended

#

and my admin said she couldn't add it

pulsar terrace
#

it's def normal extension

#

in parser hooks tab

spare hedge
#

oh no they just translated it in french

#

we weren't expected it to be translated

pulsar terrace
#

yeaaah, this is somehow a thing

#

I keep forgetting about that

spare hedge
#

thats weird that it is done only on some

#

i get some warning about my file being in wikicode and not in sanitize css ?

#

how do i set my file to be sanitize css

pulsar terrace
#

page information:

spare hedge
#

thx

#

uuh i did that

#

and still get the warning