mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2025-01-10 05:34:39 +00:00
1a15dbd4d0
* This moves down the client pref menu * For now when page tools is collapsed the client preference menu is hidden. This will be revisited when we implement pinning in the next sprint. Bug: T350417 Change-Id: Ic94d6fd2c4ccb667b0ae602d03c564f88a14b8ec
63 lines
1.5 KiB
Plaintext
63 lines
1.5 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-client-prefs-sidebar-container .vector-client-preferences .vector-pinnable-header {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.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-breakpoint-desktop ) {
|
|
&.client-js {
|
|
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button,
|
|
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|