mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-05 04:39:51 +00:00
4b7520af90
If an error has occurred while fetching from the API, the placeholder item should display the API error information. If the error is specifically a login issue, a specific error message is displayed. Also, adjusted the mw.echo.ui.PlaceholderItemWidget to accept a clickable link; when valid (currently only with login error) the link is applied so the user can click the notification and be taken to the login page. For general notices (like API error or a general 'no notifications found' message) the link does nothing. Bug: T121923 Change-Id: I89a43c7c0eb2cf8e63d03704536e0938ab57dd4d
32 lines
525 B
Plaintext
32 lines
525 B
Plaintext
@import '../../echo.variables';
|
|
|
|
.mw-echo-ui-notificationsWidget {
|
|
&-loadingOption {
|
|
padding: 2em;
|
|
background-color: @notification-background-read;
|
|
|
|
&-notLinked,
|
|
&-notLinked a {
|
|
cursor: default;
|
|
}
|
|
|
|
.mw-echo-ui-notificationsWidget-bundle & {
|
|
padding: 0;
|
|
}
|
|
|
|
&:hover > a {
|
|
text-decoration: none;
|
|
color: #666666;
|
|
}
|
|
|
|
&:not(:hover) a,
|
|
#p-personal &:not(:hover) a.new {
|
|
color: #666666;
|
|
}
|
|
|
|
&.oo-ui-optionWidget.oo-ui-labelElement .oo-ui-labelElement-label {
|
|
white-space: normal;
|
|
}
|
|
}
|
|
}
|