Topic on Extension talk:TemplateStyles

Summary by Jc86035

Resolved with phab:T197617; it is now possible to use CSS selectors for skins by prefixing them with body.

Jc86035 (talkcontribs)

Is it possible to add skin-specific CSS with TemplateStyles?

Martin Kraft (talkcontribs)

AFAIK this is not possible right now, since template-styles the skin-specific css-class (e.g. .skin-vector) is an attribute of the body element, while TemplateStyles prefixes all selctors with .mw-parser-output and therefore has only access to the content-section of the page.

Anyhow: A way to get around this limitation would be great.

Jc86035 (talkcontribs)
This post was hidden by Martin Kraft (history)
This post was hidden by Jc86035 (history)
Mar(c) (talkcontribs)

With body.skin-vector (etc.) it is possible to target specific skins. Note that .skin-vector (without 'body') doesn't work.

Jc86035 (talkcontribs)

Yes, this was resolved in August as a result of T197617.