mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
b55d95c70c
Replacing the legacy Vector breakpoint tokens with the Codex standard ones. All names have been unified, only some legacy values remain for backwards compatibility. Also - replacing a wrongly applied min-width with the correct max-width token, - replacing a width with an equal value min-width one and - removing the now equal value mobile min-width one. Note that we can't do some reference magic here alike `@max-width-breakpoint-mobile: @min-width-breakpoint-tablet - 1px;` as this would take the Codex value from skin variables and not the legacy value. Also note, that we could move all those Vector legacy definitions into Vector's 'mediawiki.skin.variables.less' file(s), but that would mean that extensions don't rely on the Codex default values, but on Vector's and we want latter to move to the standard, also in foresight of further standardization to build for all feature teams like a shared Grid. Bug: T331403 Change-Id: Ifb968b1977001edb1a79e20df387c61f27043542
37 lines
768 B
Plaintext
37 lines
768 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 {
|
|
.vector-menu-content-list {
|
|
.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 ) {
|
|
.mw-echo-alert {
|
|
.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();
|
|
}
|
|
}
|