2023-10-05 20:33:10 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2023-10-10 18:57:12 +00:00
|
|
|
@import '../resources/skins.vector.styles/variables.less';
|
2021-06-02 22:57:43 +00:00
|
|
|
|
2022-04-11 21:33:40 +00:00
|
|
|
/** Mixin for collapsing the Echo new messages alert */
|
|
|
|
.echo-alert-collapse() {
|
|
|
|
font-size: 12px;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:43 +00:00
|
|
|
.vector-user-links {
|
2023-11-13 19:16:23 +00:00
|
|
|
.mw-echo-alert {
|
|
|
|
padding: 0.2em 0.5em;
|
|
|
|
white-space: nowrap;
|
|
|
|
// Prevent alert message from pushing user links off screen
|
|
|
|
max-width: 270px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-06-02 22:57:43 +00:00
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-desktop ) {
|
2023-11-13 19:16:23 +00:00
|
|
|
.echo-alert-collapse();
|
2021-07-12 18:23:39 +00:00
|
|
|
}
|
2021-06-02 22:57:43 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-11 21:33:40 +00:00
|
|
|
|
|
|
|
// If the user link is wide, always collapse
|
|
|
|
.vector-user-links-wide .vector-menu-content-list {
|
|
|
|
.mw-echo-alert {
|
|
|
|
.echo-alert-collapse();
|
|
|
|
}
|
|
|
|
}
|