2015-08-13 00:54:16 +00:00
|
|
|
@import '../echo.variables';
|
2016-07-20 00:24:17 +00:00
|
|
|
@import 'mediawiki.mixins';
|
2015-08-13 00:54:16 +00:00
|
|
|
|
|
|
|
/* 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 &,
|
2016-07-21 18:19:17 +00:00
|
|
|
#pt-notifications-notice & {
|
2016-07-20 00:24:17 +00:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
width: 30px;
|
|
|
|
top: -5px;
|
|
|
|
font-size: 0;
|
2015-09-17 00:05:52 +00:00
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
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;
|
|
|
|
}
|
2016-07-20 00:24:17 +00:00
|
|
|
|
|
|
|
// Background icon
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.8;
|
|
|
|
left: 0;
|
2016-08-03 22:18:21 +00:00
|
|
|
|
|
|
|
// Prevent IE from making the icon ridiculously big (T142042)
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2016-07-20 00:24:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Counter
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 10px;
|
|
|
|
left: 40%;
|
|
|
|
// The original font-size was 12px, we had
|
|
|
|
// to override it in the parent so the original
|
|
|
|
// number is hidden, so we rewrite it here. This
|
|
|
|
// is far from perfect, but it will make sure
|
|
|
|
// that screen-readers can still see the number that
|
|
|
|
// is outputted in the original <a> link while letting
|
|
|
|
// us style the boxed number the way we want to.
|
|
|
|
// We want 0.8em of the original 12px font size
|
|
|
|
font-size: 12px * 0.8;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0 0.3em;
|
|
|
|
border: 1px solid white;
|
|
|
|
border-radius: 2px;
|
|
|
|
background-color: @badge-counter-background-seen;
|
|
|
|
content: attr(data-counter-text);
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ .oo-ui-popupWidget {
|
|
|
|
margin-top: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-echo-notifications-badge-all-read {
|
|
|
|
opacity: 0.625;
|
|
|
|
&::after {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pt-notifications-alert & {
|
|
|
|
&:before {
|
|
|
|
/* @embed */
|
|
|
|
content: url('../icons/bell.svg');
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
|
|
|
|
2016-07-21 18:19:17 +00:00
|
|
|
#pt-notifications-notice & {
|
2016-07-20 00:24:17 +00:00
|
|
|
&:before {
|
|
|
|
/* @embed */
|
|
|
|
content: url('../icons/tray.svg');
|
2015-09-17 00:05:52 +00:00
|
|
|
}
|
2015-09-09 16:18:03 +00:00
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|