On 22/09/05, Roth Philippe <philippe.roth(a)epfl.ch> wrote:
Hello,
Thank you for your message, but I do not understand exactly...
I know where the CSS is but:
- Where could I find those namespaces?
- Where should I insert or modify those 'ns-x'?
The ns-x are already there, as are the namespaces - Talk:, User:,
Wikipedia: etc. Each has a number used inside the software (0 for the
"main"/"article" namespace, 1 for "talk", etc), and these
appear in
the source of pages as CSS selectors. See
http://meta.wikimedia.org/wiki/Help:Namespace for more.
Perhaps the best explanation is by example:
http://en.wikipedia.org/wiki/MediaWiki:Monobook.css contains code to
make everything except articles have a blue background; it starts by
making everything blue, and then changes "ns-0" (articles) back to
white:
#content {
background: #F8FCFF; /* a light blue */
}
.ns-0 * #content {
background: white;
}
[it goes on to do this for things like the background of the tabs at
the top, so they fit better]
http://fr.wikipedia.org/wiki/MediaWiki:Monobook.css takes a more
long-winded approach, and defines a default "sky blue" background but
then overrides it for each namespace one by one:
/* Couleur par défaut */
#content { background : #F8FCFF; } /* bleu ciel */
#p-cactions li { background : #F8FCFF; }
#p-cactions li a { background : #F8FCFF; }
/* Couleur de fond des articles */
.ns-0 * #content { background : white; }
.ns-0 * #p-cactions li { background : white; }
.ns-0 * #p-cactions li a { background : white; }
[and so on for ns-1, ns-2, ns-3, etc]
HTH
--
Rowan Collins BSc
[IMSoP]