ext.echo.alert: Restore orange background on Monobook

Core styles for Monobook include high-specificity background: transparent;
rule for #p-personal li a, we need to match it to set our background.

Also change hover behavior: switch to a deeper orange instead of
default white, similarly to how the badge already behaves.

Partially reverts I682182fe.

Bug: 56214
Change-Id: I9f343264c395ecf09c1e34e03d208ec2119fb622
This commit is contained in:
MatmaRex 2013-10-27 15:29:03 +01:00
parent ef99d1c279
commit dc1443f57f
4 changed files with 9 additions and 3 deletions

View file

@ -209,6 +209,7 @@ $wgResourceModules += array(
'styles' => 'alert/ext.echo.alert.css',
'skinStyles' => array(
'modern' => 'alert/ext.echo.alert.modern.css',
'monobook' => 'alert/ext.echo.alert.monobook.css',
),
'messages' => array(
'echo-new-messages',

View file

@ -2,7 +2,8 @@
white-space: nowrap;
}
.mw-echo-alert {
/* High-specificity rule to override core styles for #p-personal li a */
#pt-mytalk a.mw-echo-alert {
border-radius: 2px;
background-color: #F9C557;
padding: 0.25em 0.8em 0.2em 0.8em;

View file

@ -1,4 +1,4 @@
/* No rounded corners for modern skin */
.mw-echo-alert {
/* No rounded corners for Modern skin */
#pt-mytalk a.mw-echo-alert {
border-radius: 0;
}

View file

@ -0,0 +1,4 @@
/* Different background color on hover for consistency with Monobook skin */
#pt-mytalk a.mw-echo-alert:hover {
background-color: #FAB951;
}