2022-10-19 20:43:40 +00:00
|
|
|
.vector-pinnable-header {
|
2023-03-28 15:26:22 +00:00
|
|
|
.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-03-28 15:26:22 +00:00
|
|
|
.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;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-pinnable-header-label {
|
|
|
|
display: inline-block;
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-subtle;
|
2022-10-19 20:43:40 +00:00
|
|
|
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;
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-progressive;
|
2022-10-19 20:43:40 +00:00
|
|
|
cursor: pointer;
|
2023-04-17 20:09:05 +00:00
|
|
|
text-align: left;
|
2023-10-18 15:58:49 +00:00
|
|
|
font-size: unit( @font-size-small, rem );
|
2022-10-19 20:43:40 +00:00
|
|
|
|
|
|
|
&:hover {
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-progressive--hover;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::before {
|
2022-10-19 20:43:40 +00:00
|
|
|
content: '@{msg-brackets-start}';
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-subtle;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::after {
|
2022-10-19 20:43:40 +00:00
|
|
|
content: '@{msg-brackets-end}';
|
2023-04-23 13:48:55 +00:00
|
|
|
color: @color-subtle;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-13 19:24:14 +00:00
|
|
|
// Pinnable behavior is only enabled when JS is enabled and on larger viewports
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-js {
|
2023-03-13 19:24:14 +00:00
|
|
|
.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
|
|
|
}
|