mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-25 03:09:37 +00:00
73e3ed3717
Since the nojs "base" version uses the automatic title creation of the personal tools, the message keys were adjusted accordingly, and the old unified message was removed. Bug: T108190 Change-Id: I1f242f530aa68562aa4dc885156586c22c4df618
42 lines
1 KiB
Plaintext
42 lines
1 KiB
Plaintext
@import '../echo.mixins';
|
|
@import '../echo.variables';
|
|
|
|
/* We have to include the #pt-notifications selector due to monobook */
|
|
.mw-echo-notifications-badge {
|
|
#pt-notifications-alert &,
|
|
#pt-notifications-message & {
|
|
.mixin-notifications-badge();
|
|
display: inline-block;
|
|
|
|
padding: @badge-padding 0.35em @badge-padding 1.45em;
|
|
|
|
body.ltr & {
|
|
background-position: @badge-padding center;
|
|
}
|
|
body.rtl & {
|
|
// CSS sucks, we can't specify background-position-x from the right
|
|
// You can in Firefox with background-position-x: right 0.12em;
|
|
// but that's not supported in any other browsers
|
|
background-position: ~"calc(100% - @{badge-padding}) center";
|
|
}
|
|
background-size: @badge-icon-size;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
background-color: #c2c2c2;
|
|
outline: none;
|
|
-moz-outline-style: none;
|
|
}
|
|
}
|
|
|
|
&.mw-echo-unseen-notifications {
|
|
#pt-notifications-alert & {
|
|
background-color: @badge-background-unseen-alert;
|
|
}
|
|
#pt-notifications-message & {
|
|
background-color: @badge-background-unseen-message;
|
|
}
|
|
}
|
|
}
|