2015-08-13 00:54:16 +00:00
|
|
|
@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-17 00:05:52 +00:00
|
|
|
border-radius: 0.2em;
|
|
|
|
background-color: #d2d2d2;
|
|
|
|
font-size: 1.125em;
|
|
|
|
font-weight: bold;
|
|
|
|
color: white;
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
|
|
|
margin-top: -0.2em;
|
2015-08-13 00:54:16 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
2015-09-14 16:47:29 +00:00
|
|
|
padding: @badge-padding (@badge-padding + 0.25em) @badge-padding (@badge-padding + 0.25em + 1.1em);
|
2015-09-15 06:13:51 +00:00
|
|
|
height: 1.05em;
|
2015-08-13 00:54:16 +00:00
|
|
|
|
|
|
|
body.ltr & {
|
2015-09-15 06:13:51 +00:00
|
|
|
background-position: @badge-padding 0.1em;
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
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
|
2015-09-15 06:13:51 +00:00
|
|
|
background-position: ~"calc(100% - @{badge-padding}) 0.1em";
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
background-size: @badge-icon-size;
|
2015-09-14 10:38:44 +00:00
|
|
|
background-repeat: no-repeat;
|
2015-08-13 00:54:16 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background-color: #c2c2c2;
|
|
|
|
outline: none;
|
|
|
|
-moz-outline-style: none;
|
|
|
|
}
|
2015-09-15 06:13:51 +00:00
|
|
|
|
|
|
|
&-dimmed {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
2015-09-09 16:18:03 +00:00
|
|
|
#pt-notifications-message & {
|
|
|
|
margin-left: @badge-distance-adjustment;
|
2015-09-17 00:05:52 +00:00
|
|
|
|
|
|
|
+ .oo-ui-popupWidget {
|
|
|
|
left: (1em + @badge-distance-adjustment);
|
|
|
|
}
|
2015-09-09 16:18:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|