2024-01-24 22:02:12 +00:00
|
|
|
/* stylelint-disable selector-max-id */
|
2023-08-01 00:12:59 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mixin based on Vector mixin
|
|
|
|
* https://github.com/wikimedia/mediawiki-skins-Vector/blob/master/skinStyles/ext.echo.styles.badge.less
|
|
|
|
* Used in desktop version of Minerva.
|
|
|
|
*/
|
|
|
|
.mixin-notification-badge() {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// When 99+ allow counter so spill outside icon
|
|
|
|
&.cdx-button {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
left: 55%;
|
|
|
|
top: 43%;
|
|
|
|
font-size: 0.75rem;
|
2023-09-06 23:03:02 +00:00
|
|
|
padding: 0.25rem;
|
2023-08-01 00:12:59 +00:00
|
|
|
border: 1px solid #fff;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
background-color: #72777d;
|
|
|
|
content: attr( data-counter-text );
|
|
|
|
color: #fff;
|
2022-11-19 00:13:40 +00:00
|
|
|
}
|
|
|
|
|
2023-08-01 00:12:59 +00:00
|
|
|
// The number of notifications shouldn't show if there are none.
|
|
|
|
&[ data-counter-num='0' ]::after {
|
|
|
|
content: none;
|
2022-11-19 00:13:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-06 23:03:02 +00:00
|
|
|
.minerva-icon--bell {
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-bell, @color-subtle);
|
2023-09-06 23:03:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.minerva-icon--tray {
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-tray, @color-subtle);
|
2023-09-06 23:03:02 +00:00
|
|
|
}
|
|
|
|
|
2023-08-01 00:12:59 +00:00
|
|
|
.mw-echo-notification-badge-nojs {
|
|
|
|
.mixin-notification-badge();
|
|
|
|
}
|
|
|
|
|
2023-08-09 16:40:03 +00:00
|
|
|
// Special colors for unseen notifications (Applies to desktop Minerva)
|
2023-08-01 00:12:59 +00:00
|
|
|
#pt-notifications-alert.mw-echo-unseen-notifications::after {
|
|
|
|
background-color: @color-destructive;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pt-notifications-notice.mw-echo-unseen-notifications::after {
|
|
|
|
background-color: @color-progressive;
|
2022-11-19 00:13:40 +00:00
|
|
|
}
|