mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
b6712be9a3
Notification badges are conceptually closer together than the rest of toolbar elements. So it makes sense to move them closer visually too. This is just a small CSS adjustment to compensate for the default margin that items in the menu get. If there is a cleanner way to achieve the same, feel free to refactor. Bug: T108190 Change-Id: I06403f67c24f045c125c505dca2101f9eed79594
47 lines
1.1 KiB
Plaintext
47 lines
1.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;
|
|
}
|
|
}
|
|
|
|
#pt-notifications-message & {
|
|
margin-left: @badge-distance-adjustment;
|
|
}
|
|
|
|
|
|
&.mw-echo-unseen-notifications {
|
|
#pt-notifications-alert & {
|
|
background-color: @badge-background-unseen-alert;
|
|
}
|
|
#pt-notifications-message & {
|
|
background-color: @badge-background-unseen-message;
|
|
}
|
|
}
|
|
}
|