Split out .mw-echo-alert styles back into a separate module

Change-Id: Ia946eb3b7cd917f84b7ab57a280f55a3eadfcebf
This commit is contained in:
Kunal Mehta 2015-09-14 11:12:12 -07:00 committed by Legoktm
parent 6c298f9145
commit 9e75474b5f
2 changed files with 9 additions and 3 deletions

View file

@ -714,7 +714,7 @@ class EchoHooks {
) {
$personal_urls['mytalk']['text'] = $sk->msg( 'echo-new-messages' )->text();
$personal_urls['mytalk']['class'] = array( 'mw-echo-alert' );
$sk->getOutput()->addModuleStyles( 'ext.echo.alert' );
$sk->getOutput()->addModuleStyles( 'ext.echo.nojs.alert' );
}
return true;

View file

@ -118,16 +118,22 @@ $wgResourceModules += array(
'position' => 'top',
'styles' => array(
'nojs/mw.echo.badge.less',
'nojs/mw.echo.alert.less',
'nojs/mw.echo.notifications.less'
),
'targets' => array( 'desktop', 'mobile' ),
),
'ext.echo.nojs.alert' => $echoResourceTemplate + array(
'position' => 'top',
'styles' => array(
'nojs/mw.echo.alert.less',
),
'skinStyles' => array(
'monobook' => array(
'nojs/mw.echo.alert.monobook.less',
),
'modern' => array(
'nojs/mw.echo.alert.modern.less',
)
),
),
'targets' => array( 'desktop', 'mobile' ),
),