mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
de788c6446
Removing `white-space` on `.vector-menu` as we couldn't find any use case of this any more and it's breaking DRY-ed up Menu in portals on modern Vector. Bug: T252717 Change-Id: I87a64e64c02a6690a7ecea93ce7712619457d575
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
@import '../../variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
/* Hide empty portlets */
|
|
// FIXME: Remove when cache cleared.
|
|
.emptyPortlet,
|
|
.vector-menu-empty {
|
|
display: none;
|
|
}
|
|
|
|
/* Personal */
|
|
.vector-menu,
|
|
/* FIXME: Remove p-personal selector when cache has cleared. */
|
|
#p-personal {
|
|
// Hidden by default, but displayed by certain menus
|
|
// e.g. MenuPortal
|
|
h3 {
|
|
display: none;
|
|
}
|
|
|
|
ul {
|
|
list-style: none none;
|
|
margin: 0;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
/* Icon for registered user names & anonymous message */
|
|
#pt-anonuserpage,
|
|
#pt-userpage a {
|
|
// SVG support using a transparent gradient to guarantee cross-browser
|
|
// compatibility (browsers able to understand gradient syntax support also SVG)
|
|
.background-image-svg( 'images/user-avatar.svg', 'images/user-avatar.png' );
|
|
background-position: @background-position-nav-personal-icon;
|
|
background-repeat: no-repeat;
|
|
background-size: @background-size-nav-personal-icon @background-size-nav-personal-icon;
|
|
// Same as `#p-personal li` above
|
|
padding-top: 0.5em !important; // stylelint-disable-line declaration-no-important
|
|
padding-left: 16px !important; // stylelint-disable-line declaration-no-important
|
|
}
|
|
|
|
#pt-userpage {
|
|
padding-top: 0 !important; // stylelint-disable-line declaration-no-important
|
|
|
|
a {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
/* Show anonymous "Not logged in" text in gray */
|
|
#pt-anonuserpage {
|
|
color: #54595d;
|
|
}
|