[MediaWiki-l] Is namespace specific CSS possible?

Bartosz Dziewoński matma.rex at gmail.com
Wed Aug 2 23:24:20 UTC 2017


On 2017-08-03 00:28, Evans, Richard K. (GRC-H000) wrote:
> Hi Stephan, ... Ah! .. that worked very well. Fabulous. Thank you! I'm not sure what my earlier issue was.
> 
> So..  if I wanted that background image to only appear on, say, Namespace ID=4012, what would I edit it as?
> 
> The code:
> 
> .ns-4012 body.mediawiki {background-image: url(https://lh3.googleusercontent.com/mvHbePT-FyB8YpsjecAdCSvK7XoqOcsa4rqpCksWUDZ1koC_2cOfzvt2QU6rPsk5Yuri=w300) !important;background-repeat: repeat;}
> 
> Does not do what I hoped it would. Any thoughts?

Both "mediawiki" and "ns-4012" are classes on the <body> tag, so the 
selector should be: body.mediawiki.ns-4012

-- 
Bartosz Dziewoński



More information about the MediaWiki-l mailing list