2022-01-12 19:36:45 +00:00
|
|
|
@import '../resources/common/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 {
|
2021-07-12 18:23:39 +00:00
|
|
|
.vector-menu-content-list {
|
|
|
|
.mw-echo-alert {
|
|
|
|
padding: 0.2em 0.5em;
|
|
|
|
white-space: nowrap;
|
2021-08-06 15:57:05 +00:00
|
|
|
// Prevent alert message from pushing user links off screen
|
|
|
|
max-width: 270px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-07-12 18:23:39 +00:00
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
.mw-ui-icon.mw-ui-icon-before::before {
|
2021-07-12 18:23:39 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-06-02 22:57:43 +00:00
|
|
|
}
|
|
|
|
|
2022-06-23 21:33:47 +00:00
|
|
|
@media ( max-width: @min-width-desktop-wide ) {
|
2021-07-12 18:23:39 +00:00
|
|
|
.mw-echo-alert {
|
2022-04-11 21:33:40 +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();
|
|
|
|
}
|
|
|
|
}
|