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;
|
2016-08-05 19:22:03 +00:00
|
|
|
height: 24px;
|
2016-07-20 00:24:17 +00:00
|
|
|
top: -5px;
|
2015-09-17 00:05:52 +00:00
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
2016-08-05 19:34:06 +00:00
|
|
|
// Hide the text, but keep accessible for screen-readers
|
|
|
|
color: transparent;
|
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;
|
2016-08-05 19:22:03 +00:00
|
|
|
content: '';
|
|
|
|
background-repeat: no-repeat;
|
2016-07-20 00:24:17 +00:00
|
|
|
left: 0;
|
2016-08-05 19:22:03 +00:00
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2016-07-20 00:24:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Counter
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 10px;
|
|
|
|
left: 40%;
|
2016-08-05 19:34:06 +00:00
|
|
|
font-size: 0.8em;
|
2016-07-20 00:24:17 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-echo-notifications-badge-all-read {
|
|
|
|
opacity: 0.625;
|
2016-08-05 19:22:03 +00:00
|
|
|
|
2016-07-20 00:24:17 +00:00
|
|
|
&::after {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pt-notifications-alert & {
|
|
|
|
&:before {
|
|
|
|
/* @embed */
|
2016-08-05 19:22:03 +00:00
|
|
|
background-image: url('../icons/bell.svg');
|
2016-07-20 00:24:17 +00:00
|
|
|
}
|
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 */
|
2016-08-05 19:22:03 +00:00
|
|
|
background-image: 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
|
|
|
}
|