mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-26 23:32:25 +00:00
2bf20397e1
This decouple the filter style from the class. Instead, filter-invert can be redefined if needed (e.g. :root.skin-citizen-dark)
96 lines
2 KiB
Plaintext
96 lines
2 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* SkinStyles for Extension:Echo
|
|
* Module: ext.echo.styles.badge
|
|
* Version: REL1_35 347c30e
|
|
*
|
|
* Date: 2021-08-11
|
|
*/
|
|
|
|
.mw-echo-notifications-badge {
|
|
#pt-notifications-alert &,
|
|
#pt-notifications-notice & {
|
|
top: 0;
|
|
width: var( --header-button-size );
|
|
height: var( --header-button-size );
|
|
border-radius: var( --border-radius--small );
|
|
margin: 0;
|
|
background-color: transparent; // reset mw-list-item style from Citizen
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: var( --header-icon-size );
|
|
filter: var( --filter-invert );
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
&:hover {
|
|
opacity: var( --opacity-icon-base--hover );
|
|
}
|
|
|
|
&: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 {
|
|
top: 0;
|
|
border-color: var( --color-destructive );
|
|
border-radius: var( --border-radius--pill );
|
|
background-color: var( --color-destructive );
|
|
// Re-invert indicator color
|
|
filter: var( --filter-invert );
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
&-dimmed {
|
|
opacity: var( --opacity-icon-base--disabled );
|
|
}
|
|
|
|
&.mw-echo-notifications-badge-all-read {
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
&:hover {
|
|
opacity: var( --opacity-icon-base--hover );
|
|
}
|
|
|
|
&:active {
|
|
opacity: var( --opacity-icon-base--active );
|
|
}
|
|
}
|
|
}
|
|
|
|
&.oo-ui-flaggedElement-unseen,
|
|
&.mw-echo-unseen-notifications {
|
|
#pt-notifications-alert &::after {
|
|
background-color: var( --color-destructive );
|
|
}
|
|
|
|
#pt-notifications-notice &::after {
|
|
background-color: var( --color-destructive );
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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 );
|
|
}
|
|
}
|