mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-30 10:26:03 +00:00
6998c536d4
Since we have feature flagged the new user menu feature, it is imperative we load both sets of styles until the feature has shipped. This allows us to switch seamlessly between the two without worrying about cached HTML being served with updated CSS. To do this, we add a new class to both user menu's distinguishing the legacy version from the modern version. The styles are then scoped to these new selectors. This also fixes some regressions with the legacy user menu in modern Vector when wgVectorConsolidateUserLinks is disabled. Notes: * No caching selector is needed for #pt-userpage given it can only ever be output for logged in users. * ID selectors in general are bad, so scoping to mw-portlet-personal-user-menu-legacy isolates the legacy component allowing it to be rendered alongside the modern UserMenu Bug: T276561 Change-Id: I068c5233bb25a7b141e66a6726b5761841f83eb2
38 lines
1 KiB
Plaintext
38 lines
1 KiB
Plaintext
@import '../../common/variables.less';
|
|
|
|
// Legacy overrides for the UserMenu
|
|
|
|
/* Personal Menu */
|
|
.vector-user-menu-legacy li,
|
|
/* FIXME: the following selector is for cached HTML. It can be removed when
|
|
I068c5233bb25a7b141e66a6726b5761841f83eb2 is in production. */
|
|
#p-personal li {
|
|
font-size: @font-size-nav-personal;
|
|
}
|
|
|
|
/* Icon for registered user names & anonymous message */
|
|
/* FIXME: the following selector is for cached HTML. It can be removed when
|
|
I068c5233bb25a7b141e66a6726b5761841f83eb2 is in production */
|
|
#pt-anonuserpage,
|
|
.vector-user-menu-legacy #pt-anonuserpage,
|
|
.vector-user-menu-legacy #pt-userpage a {
|
|
background-position: @background-position-nav-personal-icon;
|
|
padding-top: 0.5em;
|
|
}
|
|
|
|
.vector-user-menu-legacy #pt-userpage {
|
|
padding-top: 0;
|
|
|
|
a {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
/* Show anonymous "Not logged in" text in gray */
|
|
/* FIXME: the following selector is for cached HTML. It can be removed when
|
|
I068c5233bb25a7b141e66a6726b5761841f83eb2 is in production. */
|
|
#pt-anonuserpage,
|
|
.vector-user-menu-legacy #pt-anonuserpage {
|
|
color: #54595d;
|
|
}
|