mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-04 20:18:57 +00:00
3cea6d4132
This change scopes the styles related to the Zebra update by wrapping the imports in a top-level feature flag selector, i.e .vector-feature-zebra-design-enabled { @import "./screen.less" } To account for this extra selector, ampersands are added wherever the html element is targeted in the affected files. This applies to both zebra enabled and disabled files. getDefaultModules() is used in SkinVector22.php to conditionally load the new skins.vector.zebra.styles module when the feature is enabled. Bug: T332600 Change-Id: I5e673df383ff31f296010f982e4188c82f095590
58 lines
1.4 KiB
Plaintext
58 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-base--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-primary;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
|
|
&:hover {
|
|
color: @color-primary--hover;
|
|
}
|
|
|
|
&::before {
|
|
content: '@{msg-brackets-start}';
|
|
color: @color-base--subtle;
|
|
}
|
|
|
|
&::after {
|
|
content: '@{msg-brackets-end}';
|
|
color: @color-base--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;
|
|
}
|
|
}
|
|
}
|