2019-12-29 18:45:17 +00:00
|
|
|
/*
|
2021-08-11 20:17:43 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:Echo
|
|
|
|
* Module: ext.echo.styles.badge
|
2024-05-06 19:28:56 +00:00
|
|
|
* Version: REL1_39
|
2021-08-11 20:17:43 +00:00
|
|
|
*
|
2024-05-06 19:28:56 +00:00
|
|
|
* Date: 2024-05-06
|
2019-12-29 18:45:17 +00:00
|
|
|
*/
|
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
.mw-echo-notifications-badge {
|
|
|
|
#pt-notifications-alert &,
|
|
|
|
#pt-notifications-notice & {
|
2021-08-11 20:40:16 +00:00
|
|
|
top: 0;
|
2022-09-29 23:12:56 +00:00
|
|
|
width: var( --header-button-size );
|
|
|
|
height: var( --header-button-size );
|
2021-08-11 20:17:43 +00:00
|
|
|
margin: 0;
|
2023-07-10 20:34:14 +00:00
|
|
|
background-color: transparent; // reset mw-list-item style from Citizen
|
2023-07-28 01:19:27 +00:00
|
|
|
filter: var( --filter-invert );
|
2021-08-11 20:17:43 +00:00
|
|
|
background-repeat: no-repeat;
|
2023-07-28 01:19:27 +00:00
|
|
|
background-position: center;
|
2022-09-29 23:12:56 +00:00
|
|
|
background-size: var( --header-icon-size );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2021-08-11 20:17:43 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
2021-05-10 16:11:47 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2024-06-30 05:04:30 +00:00
|
|
|
box-shadow: 0 0 0 1px var( --color-inverted-fixed ), 0 0 0 3px var( --color-progressive );
|
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2021-08-11 20:17:43 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2024-06-30 05:04:30 +00:00
|
|
|
border-color: var( --color-progressive );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2021-01-13 17:21:01 +00:00
|
|
|
top: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
font-size: 0.65rem;
|
2022-09-28 21:02:56 +00:00
|
|
|
background-color: var( --color-destructive );
|
2023-07-10 20:56:56 +00:00
|
|
|
// Re-invert indicator color
|
|
|
|
filter: var( --filter-invert );
|
2023-07-28 01:19:27 +00:00
|
|
|
border-color: var( --color-destructive );
|
|
|
|
border-radius: var( --border-radius--pill );
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-dimmed {
|
|
|
|
opacity: var( --opacity-icon-base--disabled );
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-echo-notifications-badge-all-read {
|
2021-01-15 19:27:39 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-01-15 19:27:39 +00:00
|
|
|
&:hover {
|
2021-08-11 20:17:43 +00:00
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2021-01-15 19:27:39 +00:00
|
|
|
}
|
|
|
|
|
2019-12-29 18:45:17 +00:00
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-11 20:17:43 +00:00
|
|
|
}
|
2021-05-10 16:11:47 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
&.oo-ui-flaggedElement-unseen,
|
|
|
|
&.mw-echo-unseen-notifications {
|
2023-02-28 21:59:36 +00:00
|
|
|
#pt-notifications-alert &::after {
|
2021-08-11 20:17:43 +00:00
|
|
|
background-color: var( --color-destructive );
|
2021-05-10 16:11:47 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
#pt-notifications-notice &::after {
|
2021-08-11 20:17:43 +00:00
|
|
|
background-color: var( --color-destructive );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-12 05:59:04 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
// Add quiet background hover states
|
|
|
|
#pt-notifications-alert,
|
|
|
|
#pt-notifications-notice {
|
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
2020-06-12 05:59:04 +00:00
|
|
|
}
|
|
|
|
}
|