From d4f0bb5ca3c1563b74ef21b5cce30b85de5cd893 Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Fri, 16 Jul 2004 20:52:23 +0000 Subject: [PATCH] As far as I can see, there is currently no way to specify a global CSS for the Classic skin in the way it is possible for Monobook with [[MediaWiki:Monobook.css]]. This patch adds this capability, at [[MediaWiki:Standard.css]] (well, technically, at [[MediaWiki:.css]], so it's not my fault it's called "Standard" and not "Classic". ;-) ) --- includes/Skin.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index db44468c1b..5c16a87fb1 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -200,16 +200,17 @@ class Skin { function doGetUserStyles() { - global $wgUser; + global $wgUser, $wgLang; + + $csspage = $wgLang->getNsText( NS_MEDIAWIKI ) . ":" . $this->getSkinName() . ".css"; + $s = '@import "'.$this->makeUrl($csspage, 'action=raw&ctype=text/css')."\";\n"; - $s = ''; if ( 1 == $wgUser->getOption( 'underline' ) ) { # Don't override browser settings } else { # CHECK MERGE @@@ # Force no underline - $s .= 'a { ' . - "text-decoration: none; }\n"; + $s .= "a { text-decoration: none; }\n"; } if ( 1 == $wgUser->getOption( 'highlightbroken' ) ) { $s .= "a.new, #quickbar a.new { color: #CC2200; }\n"; -- 2.20.1