mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Split out .mw-echo-alert styles back into a separate module
Change-Id: Ia946eb3b7cd917f84b7ab57a280f55a3eadfcebf
This commit is contained in:
parent
6c298f9145
commit
9e75474b5f
|
@ -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;
|
||||
|
|
|
@ -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' ),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue