Mobile app version of vmapp.org
Login or Join
Deb1703797

: Changing color of body text on MediaWiki's "common.css" has no effect Over at the MediaWiki.org page Manual:CSS, it mentions: If you want to make all text on the wiki green you can add

@Deb1703797

Posted in: #Mediawiki

Over at the MediaWiki.org page Manual:CSS, it mentions:


If you want to make all text on the wiki green you can add the code
body { color: green; } to MediaWiki:Common.css.


I've made a few successful global changes to my wiki (running 1.26.2) through its common.css page, but making the one above doesn't work. Text remains black, even when looked at from another browser. I'd like to find out what I'm doing wrong because I'd ultimately like to change the font for the site to "Georgia," and I've also failed to make that happen.

Here's some of the code that's presently on my common.css page. The first two lines (hiding the "powered by" icon) seem to work. The second two (turning the text green) don't.

/* hiding "powered by MediaWiki" icon */ #footer -poweredbyico { display: none; }

/* trying to turn the wiki text green */
body { color: green; }

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kimberly868

The CSS-directive body { color: green; } is overwritten by directive on .mw-body { color: #252525 ; }.

If you really want green copy-text use: .mw-body { color: green; };)

But changing the font-family is possible on the body tag with body { font-family: Georgia; } (except the headings)

PS: I changed the example on mediawiki.org Manual:CSS

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme