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;
|
|
|
|
|
|
|
|
li {
|
2022-07-04 18:05:03 +00:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2020-02-28 20:06:33 +00:00
|
|
|
white-space: nowrap;
|
2022-07-04 18:05:03 +00:00
|
|
|
margin: 0;
|
2020-02-28 20:06:33 +00:00
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
// Make first and last elements flush with edge of header.
|
|
|
|
&:first-child {
|
|
|
|
margin-left: -8px;
|
2022-06-06 21:39:57 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-right: -8px;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
/* focus and hover have outlines. Text underline interferes with bottom border */
|
|
|
|
li a:focus,
|
|
|
|
li a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
border-bottom: @border-width-base @border-style-base;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
.new a,
|
|
|
|
.new a:visited {
|
|
|
|
color: @color-link-new;
|
2020-02-28 20:06:33 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 18:05:03 +00:00
|
|
|
.selected a,
|
|
|
|
.selected a:visited {
|
|
|
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* Tab link appearance, applies to
|
|
|
|
* - <a> inside vector-menu-tabs (e.g. read, edit, view, history)
|
|
|
|
* - vector-menu-dropdown headings (e.g. more menu, language variants, gadgets)
|
|
|
|
*/
|
|
|
|
.vector-menu-tabs li a,
|
|
|
|
.vector-article-toolbar .vector-menu-heading {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
// Top bottom padding to increase clickable area.
|
|
|
|
padding-top: 18px;
|
|
|
|
padding-bottom: 7px;
|
|
|
|
// left & right margin separate bottom border between words,
|
|
|
|
// bottom margin makes link border overlap toolbar border.
|
|
|
|
margin: 0 8px -1px 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-bottom: @border-width-base @border-style-base transparent;
|
|
|
|
}
|