mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
1bb0a0e8fa
This reverts commit d1ef0d3aaf
.
Reason for revert: Applying again without the impact on styles in
master.
Bug: T319070
Change-Id: I751168e1dc0f6235fd5ba881dc884941edbf4b77
103 lines
3.2 KiB
Plaintext
103 lines
3.2 KiB
Plaintext
@import '../../common/variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
/**
|
|
* Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
|
|
*/
|
|
|
|
/* Tab list items */
|
|
.vector-menu-tabs {
|
|
float: left;
|
|
|
|
// T316574 Override visited link styles
|
|
.mw-list-item a {
|
|
color: @color-link;
|
|
}
|
|
|
|
/* focus and hover have outlines. Text underline interferes with bottom border */
|
|
/* FIXME: Remove 2 not selectors when cache has cleared for Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 */
|
|
.mw-list-item a:not( .mw-ui-icon ):focus,
|
|
.mw-list-item a:not( .mw-ui-icon ):hover,
|
|
.mw-list-item.vector-tab-noicon a:focus,
|
|
.mw-list-item.vector-tab-noicon a:hover {
|
|
text-decoration: none;
|
|
border-bottom: @border-width-base @border-style-base;
|
|
}
|
|
|
|
.mw-list-item.new a,
|
|
.mw-list-item.new a:visited {
|
|
color: @color-link-new;
|
|
}
|
|
|
|
.mw-list-item.selected a,
|
|
.mw-list-item.selected a:visited {
|
|
color: @color-link-selected;
|
|
border-bottom: @border-width-base @border-style-base;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Tab list item appearance. Applies to both <li>'s inside .vector-menu-tabs
|
|
* and dropdown menus inside the article toolbar
|
|
*/
|
|
// FIXME: Remove the body selector once Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 is in production
|
|
/* for cached HTML */ body:not( .vector-feature-visual-enhancement-next-enabled ) .vector-menu-tabs .mw-list-item,
|
|
.vector-menu-tabs .mw-list-item.vector-tab-noicon,
|
|
.mw-article-toolbar-container .vector-menu-dropdown {
|
|
margin: 0 @padding-horizontal-tabs;
|
|
}
|
|
|
|
.vector-menu-tabs .mw-list-item,
|
|
.mw-article-toolbar-container .vector-menu-dropdown {
|
|
float: left;
|
|
white-space: nowrap;
|
|
margin-bottom: 0; /* overrides default `li` styling */
|
|
|
|
// 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;
|
|
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;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.vector-menu-heading {
|
|
// For better compatibility with gadgets (like Twinkle) that append
|
|
// <H3> elements as dropdown headings (which was the convention in legacy Vector).
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* FIXME: Remove cached HTML selector (> a:not( .mw-ui-icon ))
|
|
when Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 is in production */
|
|
&.vector-tab-noicon > a,
|
|
& > a:not( .mw-ui-icon ),
|
|
.vector-menu-heading {
|
|
// Top & bottom padding to increase clickable area.
|
|
padding: 18px 0 7px 0;
|
|
// bottom margin to overlap border with toolbar border.
|
|
margin-bottom: -1px;
|
|
}
|
|
}
|
|
|
|
// With mw-ui-icons, expand watchstar and wikilove links it to cover full touch area
|
|
.vector-feature-visual-enhancement-next-enabled {
|
|
.vector-menu-tabs {
|
|
.mw-list-item {
|
|
.mw-ui-icon {
|
|
// Align small icons with the bottom of the tabs.
|
|
// Height of tab is 38px, and small icon is 32px,
|
|
// With 2px border, 38 - 32 + 2
|
|
margin: 8px 0 0 0;
|
|
}
|
|
}
|
|
}
|
|
}
|