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
|
|
|
|
* Version: REL1_35 347c30e
|
|
|
|
*
|
|
|
|
* Date: 2021-08-11
|
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
|
|
|
box-sizing: content-box;
|
2022-09-28 21:02:56 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2021-08-11 20:17:43 +00:00
|
|
|
margin: 0;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
2022-09-29 23:12:56 +00:00
|
|
|
background-size: var( --header-icon-size );
|
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 {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0 0 0 1px #fff, 0 0 0 3px var( --color-primary );
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
border-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2021-01-13 17:21:01 +00:00
|
|
|
top: 0;
|
2021-08-11 20:48:31 +00:00
|
|
|
border-color: var( --color-destructive );
|
2021-09-02 16:00:33 +00:00
|
|
|
border-radius: 100px;
|
2022-09-28 21:02:56 +00:00
|
|
|
background-color: var( --color-destructive );
|
2021-09-02 16:00:33 +00:00
|
|
|
font-size: 0.65rem;
|
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 {
|
2021-08-11 20:17:43 +00:00
|
|
|
opacity: var( --opacity-icon-base--active );
|
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 {
|
|
|
|
#pt-notifications-alert &:after {
|
|
|
|
background-color: var( --color-destructive );
|
2021-05-10 16:11:47 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
#pt-notifications-notice &:after {
|
|
|
|
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 {
|
|
|
|
z-index: 1; // fix background clipping
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2021-05-10 16:11:47 +00:00
|
|
|
|
2021-08-11 20:17:43 +00:00
|
|
|
// Dark mode icon
|
|
|
|
.skin-citizen-dark {
|
|
|
|
#pt-notifications-alert,
|
|
|
|
#pt-notifications-notice {
|
|
|
|
.mw-echo-notifications-badge {
|
|
|
|
filter: invert( 1 ) hue-rotate( 180deg );
|
2021-09-02 00:45:19 +00:00
|
|
|
|
|
|
|
// Re-invert indicator color
|
|
|
|
&:after {
|
|
|
|
filter: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
}
|
2021-05-10 16:11:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|