mediawiki-skins-Citizen/skinStyles/extensions/Echo/ext.echo.styles.badge.less

95 lines
2 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen
*
* SkinStyles for Extension:Echo
* Module: ext.echo.styles.badge
* Version: REL1_39
*
* Date: 2024-05-06
2019-12-29 18:45:17 +00:00
*/
.mw-echo-notifications-badge {
#pt-notifications-alert &,
#pt-notifications-notice & {
top: 0;
width: var( --header-button-size );
height: var( --header-button-size );
margin: 0;
background-color: transparent; // reset mw-list-item style from Citizen
filter: var( --filter-invert );
background-repeat: no-repeat;
background-position: center;
background-size: var( --header-icon-size );
border-radius: var( --border-radius--small );
opacity: var( --opacity-icon-base );
2019-12-29 18:45:17 +00:00
&:hover {
opacity: var( --opacity-icon-base--hover );
}
&:active {
opacity: var( --opacity-icon-base--selected );
}
&:focus {
box-shadow: 0 0 0 1px var( --color-inverted-fixed ), 0 0 0 3px var( --color-progressive );
opacity: var( --opacity-icon-base--selected );
&::after {
border-color: var( --color-progressive );
}
}
&::after {
2021-01-13 17:21:01 +00:00
top: 0;
font-size: 0.65rem;
background-color: var( --color-destructive );
// Re-invert indicator color
filter: var( --filter-invert );
border-color: var( --color-destructive );
border-radius: var( --border-radius--pill );
}
&-dimmed {
opacity: var( --opacity-icon-base--disabled );
}
&.mw-echo-notifications-badge-all-read {
opacity: var( --opacity-icon-base );
2019-12-29 18:45:17 +00:00
&:hover {
opacity: var( --opacity-icon-base--hover );
}
2019-12-29 18:45:17 +00:00
&:active {
opacity: var( --opacity-icon-base--selected );
2019-12-29 18:45:17 +00:00
}
}
}
&.oo-ui-flaggedElement-unseen,
&.mw-echo-unseen-notifications {
#pt-notifications-alert &::after {
background-color: var( --color-destructive );
}
2019-12-29 18:45:17 +00:00
#pt-notifications-notice &::after {
background-color: var( --color-destructive );
2019-12-29 18:45:17 +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 );
}
}