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
|
|
|
font-weight: bold;
|
|
|
|
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);
|
2016-04-19 22:57:11 +00:00
|
|
|
// Override height, width, min-height and min-width from OOUI IconElement
|
2015-09-15 06:13:51 +00:00
|
|
|
height: 1.05em;
|
2016-04-19 22:57:11 +00:00
|
|
|
min-height: 1.05em;
|
|
|
|
width: auto;
|
|
|
|
min-width: 0;
|
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 {
|
|
|
|
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
|
|
|
|
2015-09-29 22:55:30 +00:00
|
|
|
body.ltr & + .oo-ui-popupWidget {
|
|
|
|
// Only add a left adjustment for LTR pages.
|
|
|
|
// In LTR, the correction above moves the badge from the left
|
|
|
|
// which means we have to adjust the positioning of the anchor
|
|
|
|
// to be in the middle of the badge.
|
|
|
|
// In RTL, however, the above will be flipped to margin-right
|
|
|
|
// which doesn't affect the positioning of the anchor and hence
|
|
|
|
// doesn't require a correction.
|
2015-09-17 00:05:52 +00:00
|
|
|
left: (1em + @badge-distance-adjustment);
|
|
|
|
}
|
2015-09-09 16:18:03 +00:00
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|