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
|
|
|
|
2016-10-05 19:03:41 +00:00
|
|
|
/* stylelint-disable no-descending-specificity */
|
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;
|
2016-08-06 01:01:48 +00:00
|
|
|
width: 24px;
|
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;
|
2016-08-12 23:19:36 +00:00
|
|
|
top: 9px;
|
|
|
|
left: 55%;
|
|
|
|
font-size: 0.9em;
|
2016-07-20 00:24:17 +00:00
|
|
|
font-weight: bold;
|
|
|
|
padding: 0 0.3em;
|
2016-10-05 00:11:41 +00:00
|
|
|
border: 1px solid #fff;
|
2016-07-20 00:24:17 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
background-color: @badge-counter-background-seen;
|
2016-10-05 00:11:41 +00:00
|
|
|
content: attr( data-counter-text );
|
|
|
|
color: #fff;
|
2016-07-20 00:24:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-echo-notifications-badge-all-read {
|
|
|
|
opacity: 0.625;
|
2016-08-05 19:22:03 +00:00
|
|
|
|
2016-10-05 00:11:41 +00:00
|
|
|
&:after {
|
2016-07-20 00:24:17 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pt-notifications-alert & {
|
|
|
|
&:before {
|
|
|
|
/* @embed */
|
2016-10-05 00:11:41 +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-10-05 00:11:41 +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
|
|
|
}
|
2016-10-05 19:03:41 +00:00
|
|
|
/* stylelint-enable no-descending-specificity */
|