2021-05-26 23:23:53 +00:00
|
|
|
@import '../../common/variables.less';
|
2021-05-24 22:02:26 +00:00
|
|
|
|
|
|
|
.vector-user-links {
|
|
|
|
display: flex;
|
2021-05-07 21:56:29 +00:00
|
|
|
align-items: center;
|
|
|
|
height: 30px;
|
|
|
|
position: relative;
|
2021-06-02 22:57:43 +00:00
|
|
|
justify-content: flex-end;
|
|
|
|
flex-shrink: 1;
|
2021-05-26 23:23:53 +00:00
|
|
|
|
|
|
|
// Overrides personal menu styles for consolidated user links.
|
2021-05-07 21:56:29 +00:00
|
|
|
.vector-user-menu {
|
2021-06-18 20:30:05 +00:00
|
|
|
margin: 0 0 0 12px;
|
2021-05-07 21:56:29 +00:00
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
height: 100%;
|
2021-06-24 19:13:20 +00:00
|
|
|
padding: 0;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-menu-checkbox {
|
|
|
|
&:hover + h3 {
|
|
|
|
background-color: @colorGray14;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-menu-content {
|
2021-05-07 21:56:29 +00:00
|
|
|
min-width: 200px;
|
2021-05-26 23:23:53 +00:00
|
|
|
top: 100%;
|
|
|
|
left: unset;
|
|
|
|
right: 0;
|
2021-05-07 21:56:29 +00:00
|
|
|
border-top-width: 1px;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-menu-content-list {
|
|
|
|
li {
|
|
|
|
// FIXME: the following font-size rule is for cached HTML. It can be removed when
|
|
|
|
// I068c5233bb25a7b141e66a6726b5761841f83eb2 is in production.
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
font-size: 100% !important;
|
|
|
|
width: 100%;
|
2021-05-07 21:56:29 +00:00
|
|
|
margin: 0;
|
2021-05-26 23:23:53 +00:00
|
|
|
|
|
|
|
&:hover {
|
2021-05-07 21:56:29 +00:00
|
|
|
background-color: @background-color-secondary;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
2021-06-02 22:57:43 +00:00
|
|
|
|
|
|
|
&.user-links-collapsible-item {
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
2021-07-13 22:20:55 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
// Copied from https://github.com/wikimedia/Vector/blob/master/resources/common/components/MenuDropdown.less#L88
|
|
|
|
.vector-user-menu-anon-editor,
|
|
|
|
.vector-user-menu-login {
|
|
|
|
padding: 0.625em;
|
|
|
|
margin: 0;
|
|
|
|
font-size: @font-size-tabs;
|
|
|
|
}
|
2021-05-07 21:56:29 +00:00
|
|
|
|
2021-06-04 12:47:39 +00:00
|
|
|
// "Login" and "Logout" links in user menu
|
2021-06-02 19:48:25 +00:00
|
|
|
.vector-user-menu-login {
|
|
|
|
&:hover {
|
|
|
|
background-color: @background-color-secondary;
|
|
|
|
}
|
2021-05-26 23:23:53 +00:00
|
|
|
|
2021-06-04 12:47:39 +00:00
|
|
|
&:first-child {
|
|
|
|
border-bottom: 1px solid @border-color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-top: 1px solid @border-color-base;
|
|
|
|
}
|
|
|
|
|
2021-05-26 23:23:53 +00:00
|
|
|
a {
|
2021-06-02 19:48:25 +00:00
|
|
|
display: block;
|
2021-05-07 21:56:29 +00:00
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-07 21:56:29 +00:00
|
|
|
|
2021-06-24 19:13:20 +00:00
|
|
|
.vector-user-menu-logged-out h3 {
|
|
|
|
&:before {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-user-menu-logged-in h3 {
|
|
|
|
min-width: 48px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
left: -25%;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background-size: auto;
|
|
|
|
color: #54595d;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
background-position: 100% 0%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
.mw-portlet-notifications {
|
2021-05-07 21:56:29 +00:00
|
|
|
li {
|
|
|
|
float: left;
|
2021-06-02 22:57:43 +00:00
|
|
|
margin-left: 0;
|
2021-05-07 21:56:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
.mw-portlet-user-page {
|
2021-06-02 22:57:43 +00:00
|
|
|
// For logged-in users, below tablet threshold, the menu will collapse the user name/link to user page into the user menu
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
li {
|
|
|
|
margin-left: 1em;
|
|
|
|
padding-bottom: 0.5em;
|
2021-05-07 21:56:29 +00:00
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
a {
|
|
|
|
background-position: left center;
|
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-05-07 21:56:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
.vector-user-links-createaccount {
|
|
|
|
margin-left: 0.75em;
|
2021-06-02 22:57:43 +00:00
|
|
|
// For logged-out users, below tablet threshold, the menu will collapse the create account link into the user menu
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-05-07 21:56:29 +00:00
|
|
|
}
|
2021-06-02 19:48:52 +00:00
|
|
|
|
|
|
|
// Adjust the user-interface-preferences menu.
|
|
|
|
.mw-portlet-user-interface-preferences {
|
|
|
|
margin-top: -0.2em;
|
|
|
|
margin-right: 0;
|
|
|
|
padding: 0;
|
2021-06-02 22:57:43 +00:00
|
|
|
// The menu is collapsed into the p-personal menu at lower resolutions, because the features
|
|
|
|
// are accessible via Special:Preferences with a few more clicks and there is not space to
|
|
|
|
// accomodate this icon at this resolution.
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-06-02 19:48:52 +00:00
|
|
|
|
|
|
|
// Hide the heading of the user-interface-preferences menu.
|
|
|
|
h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.vector-menu-content-list {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2021-05-24 22:02:26 +00:00
|
|
|
}
|