Hi Sebastian,
thanks for your reply, but it doesn't work for me.
I tried it with .bodyContent and .mw-parser-output
Please see css: https://de.wikipedia.org/wiki/Benutzer:Doc_Taxon/TestA/styles.css Please see page: https://de.wikipedia.org/wiki/Benutzer:Doc_Taxon/TestA (there are no styled background color and double borders)
Is there anything that overrides the .bodyContent and .mw-parser-output classes?
Kind regards Doc Taxon ...
Am Fr., 14. Apr. 2023 um 08:36 Uhr schrieb Sebastian Berlin < sebastian.berlin@wikimedia.se>:
That would be `mw-parser-output` or possibly `mw-parser-output` or `bodyContent` depending on how you define the body. However, the styles added by TemplateStyles are scoped to `mw-parser-output`, as explained in mw.Extension:TemplateStyles#Caveats https://www.mediawiki.org/wiki/Extension:TemplateStyles#Caveats. This means you can't add rules to it or anything higher up in the DOM. I don't think you can do what you want (without adding a wrapper) with TemplateStyles.
*Sebastian Berlin* Utvecklare/*Developer* Wikimedia Sverige (WMSE)
E-post/*E-Mail*: sebastian.berlin@wikimedia.se Telefon/*Phone*: (+46) 0707 - 92 03 84
On Fri, 14 Apr 2023 at 01:20, Martin Domdey dr.taxon@gmail.com wrote:
css (commented out): https://de.wikipedia.org/wiki/Benutzer:Doc_Taxon/TestA/styles.css page: https://de.wikipedia.org/wiki/Benutzer:Doc_Taxon/TestA
Hi, I want to style the page body content with light blue background and double border like given in linked css (commented out). This style should be for the whole page body content of https://de.wikipedia.org/wiki/Benutzer:Doc_Taxon/TestA , but I don't want to use a div container for this.
What is the id name or class name for the whole page body content to set the page style like given in linked css?
Thanks for any help.
Martin
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/