mediawiki-skins-Vector/skinStyles/ext.echo.styles.badge.less
Jon Robson d8f242c046 [Visual enhancements next] Restores the badge styling to Echo
Currently clicking on icons will result in the icon changing
style. This is fixed in the follow up patch
I4a0637fc19cf07d545b75fa55e15010b74fc474f

Bug: T257143
Change-Id: Ief51ac0bcab20fc87edf747b5347a5ef9dfdf36f
2022-09-27 23:11:45 +00:00

77 lines
1.7 KiB
Plaintext

@import '../resources/common/variables.less';
.vector-feature-visual-enhancement-next-disabled,
.skin-vector-legacy {
#pt-notifications-notice .mw-echo-notifications-badge,
#pt-notifications-alert .mw-echo-notifications-badge {
top: -5px;
}
}
.vector-feature-visual-enhancement-next-disabled .vector-user-links {
#pt-notifications-alert,
#pt-notifications-notice {
margin: 0;
// Override OOUI icon styles to match core icons
.mw-echo-notifications-badge {
top: 0;
margin: 0;
background-repeat: no-repeat;
background-position: center;
width: 44px;
height: 44px;
opacity: 1;
&:hover {
background-color: rgba( 0, 0, 0, 0.03 );
border-radius: 2px;
}
// Adjust counter styles when counter is present
&:not( .mw-echo-notifications-badge-all-read ) {
&:after {
left: 24px;
top: 19px;
}
}
}
}
}
.vector-feature-visual-enhancement-next-disabled {
#p-personal #pt-notifications-alert,
#p-personal #pt-notifications-notice {
margin-right: 0.4em;
}
}
.vector-feature-visual-enhancement-next-enabled {
.mw-echo-notification-badge-nojs {
// When 99+ allow counter so spill outside icon
overflow: visible;
&:after {
position: absolute;
left: 55%;
top: 43%;
font-size: unit( 12 / @font-size-browser, em );
padding: 7px 0.3em;
border: 1px solid #fff;
border-radius: @border-radius-base;
background-color: @colorGray7;
content: attr( data-counter-text );
color: #fff;
}
}
// Special colors for unseen notifications
#pt-notifications-alert .mw-echo-unseen-notifications:after {
background-color: @color-destructive;
}
#pt-notifications-notice .mw-echo-unseen-notifications:after {
background-color: @color-primary;
}
}