2020-02-28 20:06:33 +00:00
|
|
|
/**
|
|
|
|
* Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
|
|
|
|
*/
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
/* Tab list items */
|
2020-05-07 16:51:46 +00:00
|
|
|
.vector-menu-tabs {
|
2020-02-28 20:06:33 +00:00
|
|
|
float: left;
|
|
|
|
|
2022-11-07 22:57:31 +00:00
|
|
|
// With mw-ui-icons, expand watchstar and wikilove links it to cover full touch area
|
|
|
|
.mw-list-item {
|
2023-04-27 20:39:40 +00:00
|
|
|
.cdx-button--icon-only {
|
2022-11-07 22:57:31 +00:00
|
|
|
// Align small icons with the bottom of the tabs.
|
2023-04-27 20:39:40 +00:00
|
|
|
margin: 2px 0 0;
|
2022-11-07 22:57:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-31 16:09:56 +00:00
|
|
|
// T316574 Override visited link styles
|
|
|
|
.mw-list-item a {
|
|
|
|
color: @color-link;
|
|
|
|
}
|
|
|
|
|
2024-04-04 14:13:44 +00:00
|
|
|
/* T361841 add invisible bottom border by default */
|
|
|
|
.mw-list-item.vector-tab-noicon a {
|
|
|
|
border-bottom: 2px @border-style-base @border-color-transparent;
|
|
|
|
}
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
/* focus and hover have outlines. Text underline interferes with bottom border */
|
2022-09-02 14:57:31 +00:00
|
|
|
.mw-list-item.vector-tab-noicon a:focus,
|
|
|
|
.mw-list-item.vector-tab-noicon a:hover {
|
2022-07-04 18:05:03 +00:00
|
|
|
text-decoration: none;
|
2023-05-25 17:39:30 +00:00
|
|
|
border-bottom: 2px @border-style-base;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
|
2022-07-15 18:27:57 +00:00
|
|
|
.mw-list-item.new a,
|
|
|
|
.mw-list-item.new a:visited {
|
2024-05-06 18:55:33 +00:00
|
|
|
color: @color-link-red;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
|
2022-07-15 18:27:57 +00:00
|
|
|
.mw-list-item.selected a,
|
|
|
|
.mw-list-item.selected a:visited {
|
2022-07-04 18:05:03 +00:00
|
|
|
color: @color-link-selected;
|
2023-05-25 17:39:30 +00:00
|
|
|
border-bottom: 2px @border-style-base;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
}
|
2022-07-04 18:05:03 +00:00
|
|
|
|
|
|
|
/**
|
2022-07-15 18:27:57 +00:00
|
|
|
* Tab list item appearance. Applies to both <li>'s inside .vector-menu-tabs
|
|
|
|
* and dropdown menus inside the article toolbar
|
|
|
|
*/
|
2022-09-02 14:57:31 +00:00
|
|
|
.vector-menu-tabs .mw-list-item.vector-tab-noicon,
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-page-toolbar-container .vector-dropdown {
|
2022-09-02 14:57:31 +00:00
|
|
|
margin: 0 @padding-horizontal-tabs;
|
|
|
|
}
|
|
|
|
|
2023-01-10 17:28:17 +00:00
|
|
|
.vector-menu-tabs .mw-list-item,
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-page-toolbar-container .vector-dropdown-label {
|
2023-01-10 17:28:17 +00:00
|
|
|
// Only apply no wrap
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-07-15 18:27:57 +00:00
|
|
|
.vector-menu-tabs .mw-list-item,
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-page-toolbar-container .vector-dropdown {
|
2022-07-15 18:27:57 +00:00
|
|
|
float: left;
|
2022-09-02 14:57:31 +00:00
|
|
|
margin-bottom: 0; /* overrides default `li` styling */
|
2022-07-15 18:27:57 +00:00
|
|
|
|
|
|
|
// target links inside of .vector-tab-menu
|
2023-06-26 16:54:44 +00:00
|
|
|
// and dropdown toggles inside the article toolbar.
|
2022-07-15 18:27:57 +00:00
|
|
|
// NOTE: Consider adding a single selector to define both items,
|
|
|
|
// since they both appear beside each other in the article toolbar.
|
|
|
|
& > a,
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-label {
|
2022-07-15 18:27:57 +00:00
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
2022-09-02 14:57:31 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-label {
|
2022-08-02 20:57:02 +00:00
|
|
|
// For better compatibility with gadgets (like Twinkle) that append
|
|
|
|
// <H3> elements as dropdown headings (which was the convention in legacy Vector).
|
|
|
|
font-size: inherit;
|
2023-04-27 20:39:40 +00:00
|
|
|
// Override button styles on dropdown toggle button
|
|
|
|
border: 0;
|
2022-09-02 14:57:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.vector-tab-noicon > a,
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-label {
|
2022-09-02 14:57:31 +00:00
|
|
|
// Top & bottom padding to increase clickable area.
|
2022-10-19 20:43:40 +00:00
|
|
|
padding: @padding-vertical-tabs;
|
2022-09-02 14:57:31 +00:00
|
|
|
// bottom margin to overlap border with toolbar border.
|
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
}
|