2015-08-13 00:54:16 +00:00
|
|
|
@import '../echo.mixins';
|
|
|
|
@import '../echo.variables';
|
|
|
|
|
|
|
|
/* We have to include the #pt-notifications selector due to monobook */
|
|
|
|
.mw-echo-notifications-badge {
|
2015-09-07 23:54:47 +00:00
|
|
|
#pt-notifications-alert &,
|
|
|
|
#pt-notifications-message & {
|
2015-09-07 23:32:57 +00:00
|
|
|
.mixin-notifications-badge();
|
2015-08-13 00:54:16 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-09 16:18:03 +00:00
|
|
|
#pt-notifications-message & {
|
|
|
|
margin-left: @badge-distance-adjustment;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-08-13 00:54:16 +00:00
|
|
|
&.mw-echo-unseen-notifications {
|
2015-09-07 23:54:47 +00:00
|
|
|
#pt-notifications-alert & {
|
2015-08-13 00:54:16 +00:00
|
|
|
background-color: @badge-background-unseen-alert;
|
|
|
|
}
|
2015-09-07 23:54:47 +00:00
|
|
|
#pt-notifications-message & {
|
2015-08-13 00:54:16 +00:00
|
|
|
background-color: @badge-background-unseen-message;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|