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

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen - Echo Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
// Styles for echo badges
#pt-notifications {
&-alert,
&-notice {
.mw-echo-notifications-badge {
2021-01-13 17:21:01 +00:00
top: 0;
width: var( --width-button-base );
height: var( --height-header );
margin: 0;
background-position: center;
2021-01-13 17:21:01 +00:00
background-repeat: no-repeat;
opacity: var( --opacity-icon-base );
2021-01-13 17:21:01 +00:00
transition: @transition-opacity-quick, @transition-transform-quick;
2019-12-29 18:45:17 +00:00
&:hover {
opacity: var( --opacity-icon-base--hover ) !important; // override all styles
}
2019-12-29 18:45:17 +00:00
&:active {
opacity: var( --opacity-icon-base--active ) !important;
2019-12-29 18:45:17 +00:00
}
// Badge tweaks
&:after {
2021-03-06 19:40:32 +00:00
background-color: var( --color-destructive );
border-radius: 100px;
font-size: 10px;
2019-12-29 18:45:17 +00:00
}
&.mw-echo-notifications-badge-all-read {
opacity: var( --opacity-base--disabled );
2019-12-29 18:45:17 +00:00
}
}
}
// Rotate bell
&-alert {
.mw-echo-notifications-badge {
&:hover,
&:focus,
&:active {
2021-01-13 17:21:01 +00:00
transform: rotateZ( 20deg );
2019-12-29 18:45:17 +00:00
}
}
}
}
.skin-citizen-dark {
#pt-notifications {
&-alert,
&-notice {
2021-01-13 19:48:34 +00:00
.mw-echo-notifications-badge {
filter: invert( 1 ) hue-rotate( 180deg );
}
}
}
}