mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
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:
parent
ef99d1c279
commit
dc1443f57f
1
Echo.php
1
Echo.php
|
@ -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',
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
4
modules/alert/ext.echo.alert.monobook.css
Normal file
4
modules/alert/ext.echo.alert.monobook.css
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue