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;
|
|
|
|
padding-left: @border-width-base;
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
/* focus and hover have outlines. Text underline interferes with bottom border */
|
2022-07-15 18:27:57 +00:00
|
|
|
.mw-list-item a:focus,
|
|
|
|
.mw-list-item 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
|
|
|
|
*/
|
|
|
|
.vector-menu-tabs .mw-list-item,
|
|
|
|
.mw-article-toolbar-container .vector-menu-dropdown {
|
|
|
|
float: left;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin: 0 @padding-horizontal-tabs;
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
.vector-menu-heading {
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
// Top & bottom padding to increase clickable area.
|
|
|
|
padding: 18px 0 7px 0;
|
|
|
|
// bottom margin to overlap border with toolbar border.
|
|
|
|
margin-bottom: -1px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-bottom: @border-width-base @border-style-base transparent;
|
|
|
|
// 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-07-04 18:05:03 +00:00
|
|
|
}
|
2022-07-22 16:11:36 +00:00
|
|
|
|
|
|
|
// Applies only to dropdowns inside the article toolbar.
|
|
|
|
.mw-article-toolbar-container .vector-menu-dropdown {
|
|
|
|
.mw-list-item {
|
|
|
|
padding: 0.625em;
|
|
|
|
}
|
|
|
|
}
|