Manual talk:CSS

Can the devs please add more of the Wikipedia css to the default MediaWiki? Such as wikitable.

How can you use custom CSS files in pages.

Eg I added MediaWiki:customFile.css

How can I access those classes?


 * You can import it via JavaScript placed in MediaWiki:Common.js--Juan de Vojníkov 10:05, 12 November 2010 (UTC)

Query
This is probably the wrong place, but I was wondering, is it possible to set up in your personal css to link to a location other than the Main Page from the logo in the corner? The dark lord trombonator 03:13, 9 September 2009 (UTC)


 * This might be possible, but not by CSS. JavaScript or a function to localsettings.php. I dont know.--Juan de Vojníkov 10:05, 12 November 2010 (UTC)

Color a red link
What is the hex code for the color of red links on Mediawiki (that haven't been clicked on) under the default configuration? Tisane 12:00, 12 March 2010 (UTC)


 * On English Wikipedie in monobook style it is #ba0000.--Juan de Vojníkov 10:05, 12 November 2010 (UTC)

$wgUseSiteCss
I think that it is worth mentioning that $wgUseSiteCss must be set to true in order for MediaWiki:Common.css, MediaWiki:Monobook.css, etc. to function.

I ran into this problem today.

Redirect CSS based on Browser
Has anyone been able to add a function to the JS page, that would allow a Admin/Developer to redirect the CSS use of a site to a Browser specific page?

Basics for use:
 * 1) Make a Browser Specific CSS page (for example: Common.css/IE8, IE8Common.css, Common.css/FF/6, etc)
 * 2) Have the site include both the core Common.css and the Browser Specific article form.  The Browser page would potential override the Common.css styles or further build on the styles.

The ultimate goal is to allow for Browser specific Elements of CSS to be built and utilized in the wiki.

Thanks in advance, Goldbishop 03:22, 5 February 2012 (UTC)

Mediawiki already does that by default, although it is included on the head of the HTML, don't know if you could do it another way, here's how it looks like:  --Anonymous
 * Thanx....didnt think of doing that ;) Goldbishop (talk) 13:49, 12 June 2012 (UTC)