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 {
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin: 0 0 0 12px;
|
|
|
|
padding: 0;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
padding: 0.4em 0 0.4em 0;
|
|
|
|
content: none;
|
|
|
|
}
|
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-02 19:48:25 +00:00
|
|
|
// "Login" link in anonymous user menus
|
|
|
|
.vector-user-menu-login {
|
|
|
|
border-bottom: 1px solid @border-color-base;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: @background-color-secondary;
|
|
|
|
}
|
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-06-02 19:48:25 +00:00
|
|
|
|
|
|
|
// "Log out" link in logged in user menus
|
|
|
|
// FIXME: Should not use ID selector. To be fixed as part of T281791.
|
|
|
|
#pt-logout {
|
|
|
|
border-top: 1px solid @border-color-base;
|
|
|
|
}
|
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;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
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-05-24 22:02:26 +00:00
|
|
|
}
|