2024-04-18 15:12:01 +00:00
|
|
|
/**
|
|
|
|
* UserLinks
|
|
|
|
* All links and menus that appear in the header,
|
|
|
|
* at the top of the page, after the search bar.
|
|
|
|
*/
|
2021-07-22 21:20:15 +00:00
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
/**
|
2024-04-18 15:12:01 +00:00
|
|
|
* Top-most container that holds ALL menus in the user links section
|
|
|
|
* (horizontal menus and dropdowns)
|
|
|
|
* Logged-in and logged-out.
|
2022-07-22 19:20:55 +00:00
|
|
|
*/
|
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;
|
2022-07-22 19:20:55 +00:00
|
|
|
|
2024-04-18 15:12:01 +00:00
|
|
|
// Spacing for all top-level menu icons.
|
|
|
|
.mw-list-item,
|
|
|
|
.vector-dropdown-label {
|
|
|
|
margin: 0 @spacing-25;
|
|
|
|
}
|
|
|
|
// Reset margins on items inside dropdowns.
|
|
|
|
.vector-dropdown-content .mw-list-item {
|
2022-07-22 19:20:55 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2021-05-07 21:56:29 +00:00
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
/**
|
2024-04-18 15:12:01 +00:00
|
|
|
* Container that holds just the dropdown user menu (displays "..." when logged out).
|
|
|
|
* Logged-in and logged-out.
|
2022-07-22 19:20:55 +00:00
|
|
|
*/
|
|
|
|
.vector-user-menu {
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-content {
|
2023-06-21 20:13:22 +00:00
|
|
|
.mixin-vector-dropdown-content-flip();
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
2021-08-05 17:58:47 +00:00
|
|
|
|
2023-02-01 23:38:44 +00:00
|
|
|
// Used to hide collapsible items inside the dropdown menu
|
|
|
|
// as well as the dropdown menu itself when the menu is empty
|
|
|
|
&.user-links-collapsible-item,
|
2022-07-22 19:20:55 +00:00
|
|
|
.user-links-collapsible-item {
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-tablet ) {
|
2022-07-22 19:20:55 +00:00
|
|
|
display: none;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
2024-11-03 23:05:31 +00:00
|
|
|
|
|
|
|
&--none {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-26 23:23:53 +00:00
|
|
|
|
2024-04-18 15:12:01 +00:00
|
|
|
/**
|
|
|
|
* Container that holds all menus except the user menu (.vector-user-menu).
|
|
|
|
* Logged-in and logged-out.
|
|
|
|
*/
|
2023-11-08 01:01:59 +00:00
|
|
|
.vector-user-links-main {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.vector-menu-content-list {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-09-23 19:34:28 +00:00
|
|
|
font-size: @font-size-small;
|
2023-11-08 01:01:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.user-links-collapsible-item {
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-mobile ) {
|
2022-07-22 19:20:55 +00:00
|
|
|
display: none;
|
2021-05-26 23:23:53 +00:00
|
|
|
}
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-26 23:23:53 +00:00
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
/**
|
2024-04-18 15:12:01 +00:00
|
|
|
* Logged-in dropdown user menu.
|
2022-07-22 19:20:55 +00:00
|
|
|
*/
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-user-menu-logged-in .vector-dropdown-label {
|
2023-04-27 20:39:40 +00:00
|
|
|
.mixin-vector-arrowed-dropdown-toggle();
|
2022-07-22 19:20:55 +00:00
|
|
|
}
|
2021-06-04 12:47:39 +00:00
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
/**
|
2024-04-18 15:12:01 +00:00
|
|
|
* Logged-out dropdown user menu items- Special treatment for special links.
|
2022-07-22 19:20:55 +00:00
|
|
|
*/
|
2023-02-01 23:38:44 +00:00
|
|
|
#p-user-menu-anon-editor .vector-menu-heading {
|
|
|
|
display: block;
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
a::before {
|
2023-02-01 23:38:44 +00:00
|
|
|
content: '@{msg-parentheses-start}';
|
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
a::after {
|
2023-02-01 23:38:44 +00:00
|
|
|
content: '@{msg-parentheses-end}';
|
|
|
|
}
|
|
|
|
}
|
2021-06-04 12:47:39 +00:00
|
|
|
|
2024-02-01 18:58:46 +00:00
|
|
|
/**
|
2024-04-18 15:12:01 +00:00
|
|
|
* Logged-in user-page link in personal (overflow) menu.
|
2024-02-01 18:58:46 +00:00
|
|
|
*/
|
2022-07-22 19:20:55 +00:00
|
|
|
#pt-userpage-2 {
|
2024-09-23 19:34:28 +00:00
|
|
|
max-width: unit( 155 / @font-size-browser / @font-size-small, em );
|
2024-02-01 18:58:46 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-06-24 19:13:20 +00:00
|
|
|
|
2023-02-03 00:35:07 +00:00
|
|
|
a:not( .mw-selflink ) {
|
2022-08-04 13:14:11 +00:00
|
|
|
// T312157 Override redlink (.new) color for non-existant userpage
|
2024-06-06 15:33:01 +00:00
|
|
|
color: @color-progressive;
|
2022-08-04 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
span {
|
|
|
|
.text-overflow( @visible: false );
|
2021-06-24 19:13:20 +00:00
|
|
|
}
|
|
|
|
|
2022-07-22 19:20:55 +00:00
|
|
|
// T287522#7295558: Increase the max-width of the username when viewport
|
|
|
|
// allows for it.
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop-wide ) {
|
2024-09-23 19:34:28 +00:00
|
|
|
max-width: unit( 200 / @font-size-browser / @font-size-small, em );
|
2021-06-24 19:13:20 +00:00
|
|
|
}
|
2021-05-24 22:02:26 +00:00
|
|
|
}
|