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;
|
|
|
|
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 {
|
2021-06-30 19:52:44 +00:00
|
|
|
color: transparent; // overrides MediaWiki UI icon
|
2021-05-07 21:56:29 +00:00
|
|
|
height: 100%;
|
2021-06-30 19:52:44 +00:00
|
|
|
font-size: inherit;
|
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;
|
2021-06-30 19:52:44 +00:00
|
|
|
|
|
|
|
p,
|
|
|
|
span {
|
|
|
|
font-size: @font-size-tabs;
|
|
|
|
}
|
2021-06-02 19:48:25 +00:00
|
|
|
}
|
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 {
|
2021-06-30 19:52:44 +00:00
|
|
|
@offset-icon-down-arrow: 4px;
|
|
|
|
@bg-height: unit( 12px / @font-size-browser, em );
|
2021-06-24 19:13:20 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: #54595d;
|
2021-06-30 19:52:44 +00:00
|
|
|
margin-left: -@offset-icon-down-arrow;
|
2021-06-24 19:13:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
background-position: 100% 0%;
|
2021-06-30 19:52:44 +00:00
|
|
|
top: @icon-padding-md + ( @bg-height / 2 );
|
|
|
|
right: @offset-icon-down-arrow;
|
2021-06-24 19:13:20 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-24 22:02:26 +00:00
|
|
|
}
|