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
|
|
|
|
2021-06-02 22:57:43 +00:00
|
|
|
.vector-user-menu-more {
|
|
|
|
.vector-menu-content-list {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
li {
|
|
|
|
padding-top: 0;
|
|
|
|
margin-left: 1em;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Below tablet threshold, all menu items except the notification icons will collapse into the user menu
|
|
|
|
// This ensures a max of 4 icons on small screen sizes (i.e. search, 2 notification icons and the user avatar)
|
|
|
|
&.user-links-collapsible-item {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
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-05-24 22:02:26 +00:00
|
|
|
}
|