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;
|
|
|
|
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;
|
2023-04-17 20:09:05 +00:00
|
|
|
text-align: left;
|
2022-10-19 20:43:40 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @color-primary--hover;
|
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::before {
|
2022-10-19 20:43:40 +00:00
|
|
|
content: '@{msg-brackets-start}';
|
|
|
|
color: @color-base--subtle;
|
|
|
|
}
|
|
|
|
|
2023-03-28 20:22:36 +00:00
|
|
|
&::after {
|
2022-10-19 20:43:40 +00:00
|
|
|
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 ) {
|
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
|
|
|
}
|