mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-21 12:12:44 +00:00
332678a991
* Updates CSS selector for the Echo alert * Prevents conversion of OBOD to a button via a generic array of "exception" names. Bug: T350195 Change-Id: Id9b2763fe4d893fa4b4ce1e740dba59e6d887436
33 lines
702 B
Plaintext
33 lines
702 B
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import '../resources/skins.vector.styles/variables.less';
|
|
|
|
/** Mixin for collapsing the Echo new messages alert */
|
|
.echo-alert-collapse() {
|
|
font-size: 12px;
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
}
|
|
|
|
.vector-user-links {
|
|
.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;
|
|
|
|
@media ( max-width: @max-width-breakpoint-desktop ) {
|
|
.echo-alert-collapse();
|
|
}
|
|
}
|
|
}
|
|
|
|
// If the user link is wide, always collapse
|
|
.vector-user-links-wide .vector-menu-content-list {
|
|
.mw-echo-alert {
|
|
.echo-alert-collapse();
|
|
}
|
|
}
|