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-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-18 20:30:05 +00:00
|
|
|
min-width: 48px;
|
|
|
|
// Override background size from common/components/UserLinks.less
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
background-size: auto !important;
|
|
|
|
background-position: 25%;
|
2021-05-07 21:56:29 +00:00
|
|
|
|
|
|
|
&:after {
|
2021-06-18 20:30:05 +00:00
|
|
|
background-position: 100% 0%;
|
2021-05-07 21:56:29 +00:00
|
|
|
}
|
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-05-07 21:56:29 +00:00
|
|
|
a {
|
|
|
|
display: block;
|
2021-05-26 23:23:53 +00:00
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-02 19:48:25 +00:00
|
|
|
.mw-portlet-notifications {
|
2021-05-07 21:56:29 +00:00
|
|
|
li {
|
|
|
|
float: left;
|
|
|
|
margin-left: 0.75em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 19:48:25 +00:00
|
|
|
.mw-portlet-user-page {
|
|
|
|
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-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;
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|