2023-10-02 19:57:23 +00:00
|
|
|
@import '../../variables.less';
|
|
|
|
@import '../../mixins.less';
|
2022-12-20 18:09:01 +00:00
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2023-12-01 16:46:56 +00:00
|
|
|
.vector-column-start .vector-sticky-pinned-container {
|
2023-04-18 21:57:55 +00:00
|
|
|
// Align the left edge of the TOC text with the page container
|
|
|
|
margin-left: -@spacing-subsection-toggle;
|
2023-01-20 03:21:13 +00:00
|
|
|
}
|
|
|
|
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-1 #vector-toc-pinned-container {
|
2023-04-18 21:57:55 +00:00
|
|
|
// Default spacing separating the sidebar TOC from the main menu.
|
|
|
|
margin-top: 1.5em;
|
|
|
|
}
|
2022-12-20 18:09:01 +00:00
|
|
|
|
2023-09-14 15:27:58 +00:00
|
|
|
// FIXME: Remove vector-feature-toc-pinned-(enabled|disabled) when cache allows.
|
|
|
|
&.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-1 #vector-toc-pinned-container,
|
2023-04-19 20:57:36 +00:00
|
|
|
&.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-enabled #vector-toc-pinned-container {
|
2023-04-18 21:57:55 +00:00
|
|
|
// Align TOC with bottom of title when main menu is not pinned but the TOC is
|
|
|
|
margin-top: @margin-top-pinned-toc;
|
|
|
|
}
|
2022-12-22 23:10:29 +00:00
|
|
|
|
2023-04-18 21:57:55 +00:00
|
|
|
// T302076: Add fade scrollable indicator when TOC is in sidebar
|
|
|
|
// Avoid showing indicator when the TOC is floating, or collapsed in the page title/sticky header
|
|
|
|
#vector-toc-pinned-container .vector-toc {
|
|
|
|
padding-top: @padding-top-pinned-element;
|
|
|
|
padding-left: @spacing-subsection-toggle;
|
|
|
|
padding-right: @padding-horizontal-dropdown-menu-item;
|
2022-12-20 18:09:01 +00:00
|
|
|
}
|
|
|
|
}
|