mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-11 23:46:22 +00:00
751454d7a8
Replaces font-sizes that are between 12-14 px with ones that equal 14px. This involved converting some values to rems as well as changing their size. @font-size-tabs (a computed 13px value) is removed in favour of unit( @font-size-small, rem). This removal requires the following changes: * Removing max-height & box-sizing from tabs, since they used @font-size-tabs for size calculations * modifying .mixin-vector-arrowed-dropdown-toggle() to use `unit( 12 / @font-size-browser, rem )` instead of `unit( 16 / @font-size-tabs / @font-size-browser, em )` * Changes to the position of `.vector-toc-toggle` since it's width/height depended on .mixin-vector-arrowed-dropdown-toggle() Opportunistic refactor: - `.mixin-vector-legacy-menu-heading-arrow()` is removed from Zebra Expected visual changes: font-sizes below refer to computed values, actual values are now set in rems. * Text in tabs is 14px not 13px * #siteSub is 14px not 12.8px * #contentSub is 14px not 11.76px * #contentSub line height is default, not 1.2 * dropdown [hide] labels are 14px instead of 13px ************************* *****VISUAL CHANGE***** ************************* : 91 changes in Pixel due to content being pushed down due to bigger font-size in toolbar. Bug: T346062 Bug: T261334 Change-Id: I6cfc800bb8dfed206670e5365bdc55e5d7357a4a
89 lines
2.3 KiB
Plaintext
89 lines
2.3 KiB
Plaintext
/**
|
|
* Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
|
|
*/
|
|
|
|
/* Tab list items */
|
|
.vector-menu-tabs {
|
|
float: left;
|
|
|
|
// With mw-ui-icons, expand watchstar and wikilove links it to cover full touch area
|
|
.mw-list-item {
|
|
.cdx-button--icon-only {
|
|
// Align small icons with the bottom of the tabs.
|
|
margin: 2px 0 0;
|
|
}
|
|
}
|
|
|
|
// T316574 Override visited link styles
|
|
.mw-list-item a {
|
|
color: @color-link;
|
|
}
|
|
|
|
/* focus and hover have outlines. Text underline interferes with bottom border */
|
|
.mw-list-item.vector-tab-noicon a:focus,
|
|
.mw-list-item.vector-tab-noicon a:hover {
|
|
text-decoration: none;
|
|
border-bottom: 2px @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: 2px @border-style-base;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 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.vector-tab-noicon,
|
|
.vector-page-toolbar-container .vector-dropdown {
|
|
margin: 0 @padding-horizontal-tabs;
|
|
}
|
|
|
|
.vector-menu-tabs .mw-list-item,
|
|
.vector-page-toolbar-container .vector-dropdown-label {
|
|
// Only apply no wrap
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vector-menu-tabs .mw-list-item,
|
|
.vector-page-toolbar-container .vector-dropdown {
|
|
float: left;
|
|
margin-bottom: 0; /* overrides default `li` styling */
|
|
|
|
// target links inside of .vector-tab-menu
|
|
// and dropdown toggles 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-dropdown-label {
|
|
display: inline-flex;
|
|
position: relative;
|
|
cursor: pointer;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.vector-dropdown-label {
|
|
// For better compatibility with gadgets (like Twinkle) that append
|
|
// <H3> elements as dropdown headings (which was the convention in legacy Vector).
|
|
font-size: inherit;
|
|
// Override button styles on dropdown toggle button
|
|
border: 0;
|
|
}
|
|
|
|
&.vector-tab-noicon > a,
|
|
.vector-dropdown-label {
|
|
// Top & bottom padding to increase clickable area.
|
|
padding: @padding-vertical-tabs;
|
|
// bottom margin to overlap border with toolbar border.
|
|
margin-bottom: -1px;
|
|
}
|
|
}
|