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

62 lines
1 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;
2019-12-29 18:45:17 +00:00
width: @icon-box-size + @icon-padding;
height: @header-height;
margin: 0;
2021-01-13 17:21:01 +00:00
background-repeat: no-repeat;
background-position: center;
opacity: 0.4;
transition: @transition-opacity-quick, @transition-transform-quick;
2019-12-29 18:45:17 +00:00
&:hover,
&:focus,
&:active {
2021-01-13 17:21:01 +00:00
opacity: 0.6 !important; // override all styles
2019-12-29 18:45:17 +00:00
}
// Badge tweaks
&:after {
background-color: @red-50;
font-size: 11px;
}
&.mw-echo-notifications-badge-all-read {
2021-01-13 17:21:01 +00:00
opacity: 0.3; // 0.75 * 0.4 = 0.3
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 {
.mw-echo-notifications-badge:before {
filter: invert( 1 );
}
}
}
}