mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-04 20:18:57 +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
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
.vector-pinnable-header {
|
|
.mixin-vector-dropdown-menu-item();
|
|
// Override display: flex applied by .mixin-vector-dropdown-menu-item()
|
|
display: block;
|
|
}
|
|
|
|
.vector-pinned-container .vector-page-tools .vector-pinnable-header,
|
|
.vector-pinned-container .vector-toc .vector-pinnable-header {
|
|
// Match styles with tabs in page toolbar to ensure TOC and Page Tools pinnable headers
|
|
// align with page toolbar border
|
|
padding: @padding-vertical-tabs;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.vector-pinnable-header-label {
|
|
display: inline-block;
|
|
color: @color-subtle;
|
|
font-size: unit( 14 / @font-size-browser, rem );
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
// Styles for the "move to sidebar/hide" buttons, hidden by default.
|
|
.vector-pinnable-header-toggle-button {
|
|
display: none;
|
|
border: 0;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
color: @color-progressive;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
font-size: unit( @font-size-small, rem );
|
|
|
|
&:hover {
|
|
color: @color-progressive--hover;
|
|
}
|
|
|
|
&::before {
|
|
content: '@{msg-brackets-start}';
|
|
color: @color-subtle;
|
|
}
|
|
|
|
&::after {
|
|
content: '@{msg-brackets-end}';
|
|
color: @color-subtle;
|
|
}
|
|
}
|
|
|
|
// Pinnable behavior is only enabled when JS is enabled and on larger viewports
|
|
@media ( min-width: @min-width-desktop ) {
|
|
&.client-js {
|
|
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button,
|
|
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|