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)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* Namespaces and Views */
|
2022-06-08 18:29:22 +00:00
|
|
|
|
.vector-menu-tabs-legacy {
|
2020-02-28 20:06:33 +00:00
|
|
|
|
// Tab separator: Outer start border (left in LTR) of tab row.
|
|
|
|
|
background-position: left bottom;
|
|
|
|
|
float: left;
|
|
|
|
|
height: 2.5em;
|
|
|
|
|
padding-left: @border-width-base;
|
|
|
|
|
|
|
|
|
|
/* Navigation Labels */
|
2022-02-21 15:42:10 +00:00
|
|
|
|
.vector-menu-heading {
|
2020-02-28 20:06:33 +00:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
float: left;
|
|
|
|
|
height: 100%;
|
|
|
|
|
list-style: none none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
// Tab fade background: Fade inside from light grey to white.
|
|
|
|
|
background-image: linear-gradient( to top, @border-color-content--tabs-inactive 0, #e8f2f8 1px, #fff 100% ); // Support: Standard (Firefox 16+, IE 10+, Safari 6.1+, Chrome 26+)
|
|
|
|
|
background-position: left bottom;
|
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
float: left;
|
|
|
|
|
display: block;
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
line-height: @line-height-nav;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
// Tab separator: Border between tabs and outer right border.
|
|
|
|
|
background-position: right bottom;
|
|
|
|
|
color: @color-link;
|
2022-05-12 20:17:03 +00:00
|
|
|
|
box-sizing: border-box;
|
2020-02-28 20:06:33 +00:00
|
|
|
|
display: block;
|
|
|
|
|
float: left;
|
|
|
|
|
height: unit( 40 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-top: 1.25em;
|
2021-06-30 07:36:23 +00:00
|
|
|
|
padding-left: @padding-horizontal-tabs;
|
|
|
|
|
padding-right: @padding-horizontal-tabs;
|
2020-02-28 20:06:33 +00:00
|
|
|
|
font-size: @font-size-tabs;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.new {
|
|
|
|
|
a,
|
|
|
|
|
a:visited {
|
|
|
|
|
color: @color-link-new;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selected {
|
|
|
|
|
// Overwrite above in browsers that support `rgba()`.
|
2022-05-16 13:04:28 +00:00
|
|
|
|
background: rgba( 255, 255, 255, 1 );
|
2020-02-28 20:06:33 +00:00
|
|
|
|
|
|
|
|
|
a,
|
|
|
|
|
a:visited {
|
|
|
|
|
color: @color-link-selected;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
a {
|
|
|
|
|
background-position: right bottom;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-06 21:39:57 +00:00
|
|
|
|
|
|
|
|
|
// Tab Separators
|
|
|
|
|
// `.vector-menu-tabs`: Outer start border (left in LTR) of tab row.
|
|
|
|
|
// `.vector-menu-tabs a`: Border between tabs and outer end (right in LTR) border.
|
|
|
|
|
// `#mw-head .vector-menu-dropdown .vector-menu-heading`: // Outer end (right in LTR) border of "Actions" menu.
|
|
|
|
|
// #mw-head rule is legacy Vector only.
|
|
|
|
|
.vector-menu-tabs,
|
|
|
|
|
.vector-menu-tabs a,
|
|
|
|
|
#mw-head .vector-menu-dropdown .vector-menu-heading {
|
|
|
|
|
background-image: linear-gradient( to bottom, rgba( 167, 215, 249, 0 ) 0, @border-color-content 100% );
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
// Contain gradient to 1px × 100% size and draw from top to bottom-left or -right corner.
|
|
|
|
|
background-size: @border-width-base 100%;
|
|
|
|
|
}
|