2022-06-06 21:39:57 +00:00
|
|
|
@import '../../common/variables.less';
|
2020-02-28 20:06:33 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 {
|
|
|
|
.mw-ui-icon {
|
|
|
|
// Align small icons with the bottom of the tabs.
|
2023-02-22 13:04:29 +00:00
|
|
|
// Height of tab is 32px, and small icon is 32px,
|
|
|
|
// With 2px border, 32 - 32 + 2
|
|
|
|
margin: 2px 0 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;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
border-bottom: @border-width-base @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 {
|
2022-07-04 18:05:03 +00:00
|
|
|
color: @color-link-new;
|
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;
|
|
|
|
border-bottom: @border-width-base @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,
|
2022-10-17 21:27:57 +00:00
|
|
|
.vector-page-toolbar-container .vector-menu-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,
|
|
|
|
.vector-page-toolbar-container .vector-menu-dropdown > .vector-menu-heading {
|
|
|
|
// Only apply no wrap
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-07-15 18:27:57 +00:00
|
|
|
.vector-menu-tabs .mw-list-item,
|
2022-10-17 21:27:57 +00:00
|
|
|
.vector-page-toolbar-container .vector-menu-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
|
|
|
|
// and dropdown menu headings inside the article toolbar.
|
|
|
|
// NOTE: Consider adding a single selector to define both items,
|
|
|
|
// since they both appear beside each other in the article toolbar.
|
|
|
|
& > a,
|
2022-11-08 19:55:23 +00:00
|
|
|
> .vector-menu-heading {
|
2022-07-15 18:27:57 +00:00
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
// max-height & box-sizing to make link, watchstar & dropdown height consistent.
|
|
|
|
// NOTE: Was 40px instead of 41, but changed to avoid visual regressions.
|
|
|
|
max-height: unit( 41 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
box-sizing: border-box;
|
2022-09-02 14:57:31 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2022-11-08 19:55:23 +00:00
|
|
|
> .vector-menu-heading {
|
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;
|
2022-09-02 14:57:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.vector-tab-noicon > a,
|
2022-11-08 19:55:23 +00:00
|
|
|
> .vector-menu-heading {
|
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;
|
|
|
|
}
|
|
|
|
}
|