Could be added theme classes to the body tag?

I think it would be very helpful to style dark themes without touch
other themes.

For example, I want a "light" theme (instead of a dark one) to the
wiki, but also support people who wants to use a dark theme.

Some templates or "boxes" has a light background set in the HTML, and
in dark themes they are still light. The text is dark because the
color is set also in the HTML code, but the link colors are light, and
are illegible in some circumstances.

One solution it comes to my mind is to add to those templates a
class="lightbackground" and add a CSS like

body.wikiaThemeGaming #wikia_page .lightbackground a { color: #002bb8;}

so specific dark skins style that links dark, as the text, and are
more legible, without affect other themes. But there's no way to
differentiate each theme so it's impossible to do that.

This should be a trivial change, as far the skin is known and also the
theme (each theme has a different css loaded, before the body tag
appears)

~ Jesús

2008/2/29, 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
> [email protected]
> http://lists.wikia.com/mailman/listinfo/wikia-l
>
>
>
> _______________________________________________
>  Wikia-l mailing list
>  [email protected]
>  http://lists.wikia.com/mailman/listinfo/wikia-l
>
>
_______________________________________________
Wikia-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-l

Reply via email to