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

58 lines
962 B
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
* Citizen - Echo Styles
* https://starcitizen.tools
*/
@import '../resources/variables.less';
// Styles for echo badges
#pt-notifications {
&-alert,
&-notice {
.mw-echo-notifications-badge {
top: -1000px; // Default was -1005px for some reason
margin: 0;
width: @icon-box-size + @icon-padding;
height: @header-height;
&:hover,
&:focus,
&:active {
&:before {
2019-12-26 10:21:50 +00:00
opacity: 0.6 !important; // override all styles
2019-08-15 17:40:13 +00:00
}
}
// Icon tweaks
&:before {
opacity: 0.4;
background-position: center;
transition: @transition-opacity, @transition-transform;
}
// Badge tweaks
&:after {
background-color: @red-50;
font-size: 11px;
}
&.mw-echo-notifications-badge-all-read {
opacity: 0.75; // 0.75 * 0.4 = 0.3
}
}
}
// Rotate bell
&-alert {
.mw-echo-notifications-badge {
&:hover,
&:focus,
&:active {
&:before {
2019-12-26 10:21:50 +00:00
transform: rotateZ( 20deg );
2019-08-15 17:40:13 +00:00
}
}
}
}
}