[Wikia-l] A new way to style skins

Christian Williams christian at wikia.com
Fri Feb 29 00:29:08 UTC 2008


Sorry, big ups to Dantman also for suggesting this. I'm forgetful. :)

The skins with dark backgrounds one probably isn't as easy, because a  
dark background could be created in MediaWiki:Monaco.css and I  
wouldn't know about it while rendering the body tag. The php that  
renders the skin would have to either check a preference that is set  
to "this has a dark background, set 'skin-dark' in the body tag" or  
would have to parse a mediawiki article on each load to pull in any  
custom classes. Anyway, the addition of wikiaSkinMonaco, etc was a 2  
minute job that hopefully moves customization options in the right  
direction.

-Christian

On Feb 28, 2008, at 4:11 PM, DanTMan wrote:

> T_T I'm invisible aren't I? Either that or really easy to not  
> notice...
>
> Ages ago I suggested body tags... Cept in the form:
> skin-name and theme-name as well as an idea for mod-* tags to deal  
> with things like skins with dark backgrounds.
> ((Still think skin-monobook, skin-quartz, skin-monaco, theme-custom,  
> theme-brick, etc... would be better. Especially since it keeps in  
> line with the standard naming of other body tags...))
> ~Daniel Friesen(Dantman) of:
> -The Gaiapedia (http://gaia.wikia.com)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> -and Wiki-Tools.com (http://wiki-tools.com)
> Christian Williams wrote:
>>
>> Hi all,
>>
>> The <body> tag of Monobook, Quartz, and Monaco have an additional css
>> class this morning. You can use the "wikiaSkinMonobook",
>> "wikiaSkinQuartz", and "wikiaSkinMonaco" classes to target specific
>> skins while writing styles in MediaWiki:Common.css.
>>
>> The additional CSS class in the body tag was suggested to me by Pan
>> Sola for making minor margin tweaks to the various skins, independent
>> of what skin was set as default. Please remember that Common.css is
>> loaded for every skin, every time. In customizing a theme for your
>> wiki, it's still best to choose one of the Custom options in the skin
>> chooser and use MediaWiki:Quartz.css or MediaWiki:Monaco.css to
>> specify the styles.
>>
>> -Christian
>> _______________________________________________
>> Wikia-l mailing list
>> Wikia-l at wikia.com
>> http://lists.wikia.com/mailman/listinfo/wikia-l
>>
>>
> _______________________________________________
> Wikia-l mailing list
> Wikia-l at wikia.com
> http://lists.wikia.com/mailman/listinfo/wikia-l

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikia.com/pipermail/wikia-l/attachments/20080228/3430bcee/attachment-0004.html 


More information about the Wikia-l mailing list