2019-10-25 20:53:39 +00:00
|
|
|
@import '../echo.variables.less';
|
|
|
|
@import 'mediawiki.mixins.less';
|
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;
|
2018-03-22 19:42:03 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2018-03-27 12:54:27 +00:00
|
|
|
margin: 0 2px;
|
2017-03-28 16:20:23 +00:00
|
|
|
// Hide the text, but keep accessible for screen-readers
|
2019-04-13 18:45:11 +00:00
|
|
|
// Later we put the counter back onscreen with a zero text-indent
|
|
|
|
top: -5px;
|
|
|
|
text-indent: -9999px;
|
2020-04-16 01:09:48 +00:00
|
|
|
border-radius: @border-radius-base;
|
2015-09-17 00:05:52 +00:00
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
2018-03-27 12:54:27 +00:00
|
|
|
line-height: normal;
|
|
|
|
.box-sizing( border-box );
|
2019-04-13 18:45:11 +00:00
|
|
|
opacity: 0.87;
|
2015-08-13 00:54:16 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2017-02-17 23:41:15 +00:00
|
|
|
outline: 0;
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
2015-09-15 06:13:51 +00:00
|
|
|
|
2018-04-22 18:09:39 +00:00
|
|
|
&:focus {
|
|
|
|
.box-shadow( ~'0 0 0 1px #fff, 0 0 0 3px #36c' );
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
border-color: #36c;
|
|
|
|
}
|
2015-09-15 06:13:51 +00:00
|
|
|
}
|
2016-07-20 00:24:17 +00:00
|
|
|
|
|
|
|
// Counter
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2017-03-28 16:20:23 +00:00
|
|
|
// Bring it back onscreen
|
2019-04-13 18:45:11 +00:00
|
|
|
top: 9px;
|
|
|
|
text-indent: 0;
|
2016-08-12 23:19:36 +00:00
|
|
|
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;
|
2020-04-16 01:09:48 +00:00
|
|
|
border-radius: @border-radius-base;
|
2016-07-20 00:24:17 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-04-22 18:09:39 +00:00
|
|
|
&-dimmed {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
2016-12-20 18:40:54 +00:00
|
|
|
&.mw-echo-notifications-badge-long-label {
|
2018-03-28 16:44:38 +00:00
|
|
|
margin-right: 0.5em;
|
2018-11-08 05:16:55 +00:00
|
|
|
|
2016-12-20 18:40:54 +00:00
|
|
|
&:after {
|
|
|
|
left: 35%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-20 00:24:17 +00:00
|
|
|
&.mw-echo-notifications-badge-all-read {
|
2019-04-13 18:45:11 +00:00
|
|
|
opacity: 0.51;
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-20 14:56:06 +00:00
|
|
|
&.oo-ui-flaggedElement-unseen,
|
|
|
|
&.mw-echo-unseen-notifications {
|
|
|
|
#pt-notifications-alert &:after {
|
|
|
|
background-color: @badge-counter-background-unseen-alert;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pt-notifications-notice &:after {
|
|
|
|
background-color: @badge-counter-background-unseen-message;
|
|
|
|
}
|
|
|
|
}
|
2015-08-13 00:54:16 +00:00
|
|
|
}
|
2016-10-05 19:03:41 +00:00
|
|
|
/* stylelint-enable no-descending-specificity */
|