Page MenuHomePhabricator

Site CSS loads before Skin CSS on Monobook
Closed, ResolvedPublic

Description

Author: mysolo

Description:
The content of MediaWiki:Common.css and MediaWiki:Monobook.css pages do not override the default CSS styles specified in main.css.

The config of css in LocalSetting.php:

panthera w # fgrep -i css LocalSettings.php
$wgAllowUserCss = false;
$wgAllowUserCssPrefs = false;
$wgUseSiteCss = true;
$wgGroupPermissions['sysop']['editusercssjs'] = true;

The source code of page shows a main.css is downloaded after personnal css.

<link rel="stylesheet" href="/w/load.php?debug=false&amp;lang=fr&amp;modules=mediawiki.legacy.commonPrint%7Cmediawiki.legacy.shared&amp;only=styles&amp;skin=monobook" />
<link rel="stylesheet" href="/w/load.php?debug=false&amp;lang=fr&amp;modules=site&amp;only=styles&amp;skin=monobook&amp;version=20100930T182320Z" />

<link rel="stylesheet" href="/w/skins/monobook/main.css?301" media="screen" />
<!--[if lt IE 5.5000]><link rel="stylesheet" href="/w/skins/monobook/IE50Fixes.css?301" media="screen" /><![endif]-->

<!--[if IE 5.5000]><link rel="stylesheet" href="/w/skins/monobook/IE55Fixes.css?301" media="screen" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" href="/w/skins/monobook/IE60Fixes.css?301" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="/w/skins/monobook/IE70Fixes.css?301" media="screen" /><![endif]-->
</head>


Version: 1.17.x
Severity: major

Details

Reference
bz25402

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:23 PM
bzimport set Reference to bz25402.
bzimport created this task.Oct 3 2010, 4:44 PM

Should be fixed once Monobook is ported to the resource loader I guess?

(In reply to comment #1)

Should be fixed once Monobook is ported to the resource loader I guess?

Turns out it did. Style sheets load in the correct order now that Monobook has been ported.

mysolo wrote:

Thanks.

It's good.