2019-10-25 20:53:39 +00:00
|
|
|
@import '../echo.variables.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;
|
2022-04-20 04:59:30 +00:00
|
|
|
box-sizing: border-box;
|
2018-03-22 19:42:03 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2018-03-27 12:54:27 +00:00
|
|
|
margin: 0 2px;
|
2020-10-29 16:00:31 +00:00
|
|
|
// Hide the text, but keep accessible for screen-readers
|
|
|
|
// Later we put the counter back onscreen with a zero text-indent
|
2020-07-15 21:00:23 +00:00
|
|
|
top: 0;
|
2020-10-29 16:00:31 +00:00
|
|
|
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;
|
2019-04-13 18:45:11 +00:00
|
|
|
opacity: 0.87;
|
2020-07-07 22:43:02 +00:00
|
|
|
color: transparent;
|
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 {
|
2021-08-19 14:47:15 +00:00
|
|
|
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #36c;
|
2018-04-22 18:09:39 +00:00
|
|
|
opacity: 1;
|
|
|
|
|
2023-03-29 22:24:47 +00:00
|
|
|
&::after {
|
2018-04-22 18:09:39 +00:00
|
|
|
border-color: #36c;
|
|
|
|
}
|
2015-09-15 06:13:51 +00:00
|
|
|
}
|
2016-07-20 00:24:17 +00:00
|
|
|
|
|
|
|
// Counter
|
2023-03-29 22:24:47 +00:00
|
|
|
&::after {
|
2016-07-20 00:24:17 +00:00
|
|
|
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
|
|
|
|
2023-03-29 22:24:47 +00:00
|
|
|
&::after {
|
2016-12-20 18:40:54 +00:00
|
|
|
left: 35%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-20 00:24:17 +00:00
|
|
|
&.mw-echo-notifications-badge-all-read {
|
2023-03-22 22:00:01 +00:00
|
|
|
opacity: 0.51;
|
|
|
|
|
2023-03-29 22:24:47 +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 {
|
2023-03-29 22:24:47 +00:00
|
|
|
#pt-notifications-alert &::after {
|
2019-02-20 14:56:06 +00:00
|
|
|
background-color: @badge-counter-background-unseen-alert;
|
|
|
|
}
|
|
|
|
|
2023-03-29 22:24:47 +00:00
|
|
|
#pt-notifications-notice &::after {
|
2019-02-20 14:56:06 +00:00
|
|
|
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 */
|