2023-01-09 18:48:02 +00:00
|
|
|
// TOC styles when unpinned
|
|
|
|
.mixin-toc-unpinned() {
|
2024-01-09 14:46:11 +00:00
|
|
|
margin-right: 8px;
|
2022-06-08 15:03:38 +00:00
|
|
|
|
2023-06-26 16:54:44 +00:00
|
|
|
.vector-dropdown-content {
|
2023-01-10 17:28:17 +00:00
|
|
|
// Override default dropdown max width
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2023-01-09 18:48:02 +00:00
|
|
|
// Shared unpinned TOC styles, applies across all unpinned cases (page titlebar, sticky header, floating)
|
|
|
|
.vector-toc {
|
|
|
|
// T316056 Remove TOC menu fixed width and apply min/max-width
|
|
|
|
width: max-content;
|
|
|
|
min-width: 200px;
|
|
|
|
// Collapsed TOC should be smaller than 85% of the content container (51em) and 75vw
|
|
|
|
max-width: ~'min( 0.85 * @{max-width-content-container}, 75vw )'; // min( 51em, 75vw )
|
2022-06-08 15:03:38 +00:00
|
|
|
}
|
2022-11-21 22:16:07 +00:00
|
|
|
}
|
2022-06-08 15:03:38 +00:00
|
|
|
|
2023-02-14 18:01:14 +00:00
|
|
|
// TOC styles when below page title
|
|
|
|
.mixin-toc-below-page-title {
|
|
|
|
position: fixed;
|
|
|
|
top: 12px;
|
|
|
|
left: 12px;
|
|
|
|
margin: 0;
|
2023-03-14 08:37:58 +00:00
|
|
|
z-index: @z-index-dropdown;
|
2023-02-14 18:01:14 +00:00
|
|
|
}
|
|
|
|
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-js {
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-11-21 22:16:07 +00:00
|
|
|
//
|
|
|
|
// TOC in page titlebar on narrow screens
|
|
|
|
//
|
2023-01-09 18:48:02 +00:00
|
|
|
.vector-page-titlebar-toc {
|
|
|
|
.mixin-toc-unpinned();
|
|
|
|
}
|
2022-11-21 22:16:07 +00:00
|
|
|
|
|
|
|
//
|
2023-02-14 18:01:14 +00:00
|
|
|
// TOC in page titlebar on narrow screens below page title
|
2022-11-21 22:16:07 +00:00
|
|
|
//
|
2023-02-14 18:01:14 +00:00
|
|
|
.vector-below-page-title .vector-page-titlebar-toc {
|
|
|
|
.mixin-toc-below-page-title();
|
2022-07-08 16:13:32 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-09 16:22:07 +00:00
|
|
|
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2022-11-21 22:16:07 +00:00
|
|
|
//
|
|
|
|
// TOC in page titlebar
|
|
|
|
//
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-0 body:not( .vector-sticky-header-visible ) {
|
2023-01-09 18:48:02 +00:00
|
|
|
.vector-page-titlebar-toc {
|
|
|
|
.mixin-toc-unpinned();
|
|
|
|
}
|
2022-11-21 22:16:07 +00:00
|
|
|
}
|
2022-09-29 22:54:55 +00:00
|
|
|
|
2023-02-14 18:01:14 +00:00
|
|
|
//
|
|
|
|
// TOC in page titlebar below page title
|
|
|
|
//
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-0 body:not( .vector-sticky-header-visible ).vector-below-page-title {
|
2023-02-14 18:01:14 +00:00
|
|
|
.vector-page-titlebar-toc {
|
|
|
|
.mixin-toc-below-page-title();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-21 22:16:07 +00:00
|
|
|
//
|
|
|
|
// TOC in sticky header
|
|
|
|
//
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-0 .vector-sticky-header-visible {
|
2023-01-09 18:48:02 +00:00
|
|
|
.vector-sticky-header-toc {
|
|
|
|
.mixin-toc-unpinned();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-nojs {
|
2023-03-13 19:24:14 +00:00
|
|
|
//
|
|
|
|
// No-JS TOC in page titlebar
|
|
|
|
//
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-0 {
|
2023-03-13 19:24:14 +00:00
|
|
|
.vector-page-titlebar-toc {
|
2023-01-09 18:48:02 +00:00
|
|
|
.mixin-toc-unpinned();
|
|
|
|
}
|
2023-03-13 19:24:14 +00:00
|
|
|
}
|
2023-01-09 18:48:02 +00:00
|
|
|
|
2023-03-13 19:24:14 +00:00
|
|
|
//
|
2023-10-17 03:31:18 +00:00
|
|
|
// Applies simplified TOC styles to No-JS pinned TOC on narrow viewports
|
2023-03-13 19:24:14 +00:00
|
|
|
//
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2023-09-14 19:56:06 +00:00
|
|
|
&.vector-feature-toc-pinned-clientpref-1 {
|
2023-10-17 03:31:18 +00:00
|
|
|
.vector-sticky-pinned-container {
|
|
|
|
position: static;
|
2023-03-13 19:24:14 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 14:46:11 +00:00
|
|
|
#vector-toc-pinned-container {
|
2023-10-17 03:31:18 +00:00
|
|
|
max-height: 200px;
|
2023-03-13 19:24:14 +00:00
|
|
|
}
|
2022-11-21 22:16:07 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-09 16:22:07 +00:00
|
|
|
}
|