2022-10-19 20:43:40 +00:00
|
|
|
.vector-pinnable-header {
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-feature-page-tools-enabled & {
|
|
|
|
.mixin-vector-dropdown-menu-item();
|
|
|
|
// Override display: flex applied by .mixin-vector-dropdown-menu-item()
|
|
|
|
display: block;
|
|
|
|
}
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
2023-01-11 14:52:45 +00:00
|
|
|
.vector-pinnable-header[ hidden ] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-page-tools,
|
2022-12-20 22:58:44 +00:00
|
|
|
.vector-toc {
|
2022-12-22 23:10:29 +00:00
|
|
|
.vector-feature-page-tools-enabled .vector-pinned-container & .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;
|
2022-12-19 16:27:54 +00:00
|
|
|
}
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @color-primary--hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '@{msg-brackets-start}';
|
|
|
|
color: @color-base--subtle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '@{msg-brackets-end}';
|
|
|
|
color: @color-base--subtle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-13 19:24:14 +00:00
|
|
|
// 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;
|
|
|
|
}
|
2022-11-21 20:46:04 +00:00
|
|
|
}
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|