2020-01-09 22:11:00 +00:00
|
|
|
@import '../../variables.less';
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
2020-04-09 19:16:36 +00:00
|
|
|
/* Hide empty portlets */
|
2020-05-28 23:00:32 +00:00
|
|
|
// This class has special magical powers. It can be removed by
|
|
|
|
// mw.util.addPortletLink
|
|
|
|
// in core:resources/src/mediawiki.util/util.js
|
|
|
|
// When I93fb6c96df9f238d1c0281cb66512b135ca2afc2 has been merged
|
|
|
|
// and is deployed this line of CSS should be removed or replaced
|
|
|
|
// with the class ".vector-menu-empty"
|
|
|
|
// See T253912.
|
|
|
|
.emptyPortlet {
|
2020-04-09 19:16:36 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Personal */
|
2020-05-07 16:51:46 +00:00
|
|
|
.vector-menu,
|
2020-05-05 23:26:35 +00:00
|
|
|
/* FIXME: Remove p-personal selector when cache has cleared. */
|
2014-08-07 11:38:34 +00:00
|
|
|
#p-personal {
|
2020-04-16 18:40:39 +00:00
|
|
|
// Hidden by default, but displayed by certain menus
|
|
|
|
// e.g. MenuPortal
|
2014-08-07 11:38:34 +00:00
|
|
|
h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2018-10-16 02:13:07 +00:00
|
|
|
list-style: none none;
|
2014-08-07 11:38:34 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-left: 0.75em;
|
2018-10-15 23:19:45 +00:00
|
|
|
// `padding-top` instead of `margin-top` necessary for
|
|
|
|
// anonymous user icon position below
|
|
|
|
padding-top: 0.5em;
|
2019-09-29 20:21:41 +00:00
|
|
|
line-height: @line-height-nav-personal;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-15 23:19:45 +00:00
|
|
|
/* Icon for registered user names & anonymous message */
|
|
|
|
#pt-anonuserpage,
|
|
|
|
#pt-userpage a {
|
2018-10-09 19:29:58 +00:00
|
|
|
// 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' );
|
2019-09-29 20:21:41 +00:00
|
|
|
background-position: @background-position-nav-personal-icon;
|
2014-08-07 11:38:34 +00:00
|
|
|
background-repeat: no-repeat;
|
2019-09-29 20:21:41 +00:00
|
|
|
background-size: @background-size-nav-personal-icon @background-size-nav-personal-icon;
|
2018-10-15 23:19:45 +00:00
|
|
|
// Same as `#p-personal li` above
|
|
|
|
padding-top: 0.5em !important; // stylelint-disable-line declaration-no-important
|
2018-10-09 19:29:58 +00:00
|
|
|
padding-left: 16px !important; // stylelint-disable-line declaration-no-important
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
2015-12-09 19:20:01 +00:00
|
|
|
|
2018-10-15 23:19:45 +00:00
|
|
|
#pt-userpage {
|
|
|
|
padding-top: 0 !important; // stylelint-disable-line declaration-no-important
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show anonymous "Not logged in" text in gray */
|
2015-12-09 19:20:01 +00:00
|
|
|
#pt-anonuserpage {
|
2018-10-09 20:43:10 +00:00
|
|
|
color: #54595d;
|
2015-12-09 19:20:01 +00:00
|
|
|
}
|