mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-26 16:40:33 +00:00
f62e1997f5
The padding-top of the orange notification set in ext.echo.styles.alert.less was being overriden by the `padding-top: 0` set in UserLinks.less which was intended to only override the padding set in Menu.less. This commit: * Scopes the li styles in Menu.less to apply only to the legacy user menu (found in both legacy and modern vector with the consolidated user links feature off) which appears to be the only menus that needs these rules. * The padding-top previously in UserLinks is no longer needed as a result of the above point. * Adjusts/cleans up the positioning of the orange notification by removing an unneeded margin/padding-top and setting the top to 100% (the previous `calc` statement was unintentionally resulting in 112%). Bug: T287633 Change-Id: Ia7069d291f53d8e0e0e576d7b96b7a8b1a6cb29d
28 lines
663 B
Plaintext
28 lines
663 B
Plaintext
@import '../variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
.mw-portlet {
|
|
// Hidden by default, but displayed by certain menus
|
|
// e.g. MenuPortal
|
|
h3 {
|
|
display: none;
|
|
}
|
|
|
|
ul {
|
|
list-style: none none;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
// FIXME: Move these rules to the #p-personal li selector in
|
|
// skins.vector.styles.legacy/layouts/screen.less when modern Vector no longer
|
|
// uses the legacy user menu and only uses the new consolidated user links
|
|
// menu.
|
|
.vector-user-menu-legacy li {
|
|
margin-left: 0.75em;
|
|
// `padding-top` instead of `margin-top` necessary for
|
|
// anonymous user icon position below
|
|
padding-top: 0.5em;
|
|
line-height: @line-height-nav-personal;
|
|
}
|