mediawiki-extensions-Echo/modules/nojs/mw.echo.badge.monobook.less
Bartosz Dziewoński 945fccf009 Make the invisible text in badges really invisible
Bug: T161302
Change-Id: I5c7a5bcb7a096b69c28651c6fe1e4017654997ad
2017-03-28 18:26:26 +02:00

37 lines
772 B
Plaintext

@import '../echo.variables';
/* We have to include the #pt-notifications selector due to monobook */
.mw-echo-notifications-badge {
#pt-notifications-notice &,
#pt-notifications-alert & {
width: 16px;
height: 16px;
top: -@badge-offscreen-offset - 1px;
&:before {
background-size: 16px 16px;
}
&:after {
top: @badge-offscreen-offset + 3px;
}
}
&.oo-ui-flaggedElement-unseen,
&.mw-echo-unseen-notifications {
#pt-notifications-alert &:after {
background-color: @badge-counter-background-unseen-alert;
}
#pt-notifications-notice &:after {
background-color: @badge-counter-background-unseen-message;
}
}
}
#p-personal #pt-notifications-alert,
#p-personal #pt-notifications-notice {
display: inline-block;
margin-right: 0.2em;
}