2023-10-05 20:33:10 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2022-09-14 23:30:25 +00:00
|
|
|
|
2022-09-15 00:31:29 +00:00
|
|
|
.mixin-notification-badge() {
|
2023-05-02 19:03:13 +00:00
|
|
|
position: relative;
|
2022-09-15 00:31:29 +00:00
|
|
|
|
2023-05-25 16:46:02 +00:00
|
|
|
// When 99+ allow counter so spill outside icon
|
2023-04-27 20:39:40 +00:00
|
|
|
&.cdx-button {
|
2023-05-25 16:46:02 +00:00
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::after {
|
2022-09-15 00:31:29 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 55%;
|
|
|
|
top: 43%;
|
2023-10-05 20:33:10 +00:00
|
|
|
font-size: unit( ( 12 / 16 ) * @font-size-base, rem );
|
|
|
|
padding: 0 unit( ( 4 / 16 ) * @font-size-base, rem );
|
2022-09-15 00:31:29 +00:00
|
|
|
border: 1px solid #fff;
|
|
|
|
border-radius: @border-radius-base;
|
2023-04-23 13:48:55 +00:00
|
|
|
background-color: #72777d;
|
2022-09-15 00:31:29 +00:00
|
|
|
content: attr( data-counter-text );
|
|
|
|
color: #fff;
|
|
|
|
}
|
2022-11-09 16:43:58 +00:00
|
|
|
|
|
|
|
// The number of notifications shouldn't show if there are none.
|
2023-03-28 20:22:36 +00:00
|
|
|
&[ data-counter-num='0' ]::after {
|
2022-11-09 16:43:58 +00:00
|
|
|
content: none;
|
|
|
|
}
|
2022-09-15 00:31:29 +00:00
|
|
|
}
|
|
|
|
|
2022-11-07 22:57:31 +00:00
|
|
|
.mw-echo-notification-badge-nojs {
|
|
|
|
.mixin-notification-badge();
|
|
|
|
}
|
2022-09-14 23:30:25 +00:00
|
|
|
|
2022-11-07 22:57:31 +00:00
|
|
|
// Special colors for unseen notifications
|
2023-03-28 20:22:36 +00:00
|
|
|
#pt-notifications-alert .mw-echo-unseen-notifications::after {
|
2022-11-07 22:57:31 +00:00
|
|
|
background-color: @color-destructive;
|
|
|
|
}
|
2022-09-15 00:31:29 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
#pt-notifications-notice .mw-echo-unseen-notifications::after {
|
2023-04-23 13:48:55 +00:00
|
|
|
background-color: @color-progressive;
|
2022-11-07 22:57:31 +00:00
|
|
|
}
|
2022-09-15 00:31:29 +00:00
|
|
|
|
2022-11-07 22:57:31 +00:00
|
|
|
// Override ULS enhanced buttons
|
|
|
|
#pt-notifications-notice .mw-echo-notifications-badge,
|
|
|
|
#pt-notifications-alert .mw-echo-notifications-badge {
|
|
|
|
.mixin-notification-badge();
|
2023-04-27 20:39:40 +00:00
|
|
|
display: inline-flex;
|
2022-11-07 22:57:31 +00:00
|
|
|
margin: 0;
|
|
|
|
opacity: 1;
|
2023-07-10 18:11:41 +00:00
|
|
|
// T341490 We are incorrectly applying Codex icon and button styles on the
|
|
|
|
// same element because ULS frequently overwrites the contents of the element
|
|
|
|
// so it is too difficult to maintain the correct markup. Because we are mixing
|
|
|
|
// Codex styles, the proper styles are overridden, this corrects that.
|
|
|
|
min-width: @min-size-interactive-pointer;
|
|
|
|
min-height: @min-size-interactive-pointer;
|
2022-09-14 23:30:25 +00:00
|
|
|
}
|