We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f764bb1 commit 1e8ad93Copy full SHA for 1e8ad93
src/scss/theme/_toc.scss
@@ -1,6 +1,12 @@
1
-.tableOfContents_node_modules-\@docusaurus-theme-classic-lib-theme-TOC-styles-module {
+/* Target ToC container using attribute selector for CSS modules compatibility */
2
+[class*='tableOfContents'] {
3
margin-top: -3rem;
- top: calc(var(--ifm-navbar-height) + 2rem) !important;
4
+ top: calc(var(--ifm-navbar-height) + 4rem) !important;
5
+}
6
+
7
+/* Increase offset when SubNavBar is present to clear the sticky banner */
8
+body:has([class*='subNavBar']) [class*='tableOfContents'] {
9
+ top: calc(var(--ifm-navbar-height) + 9rem) !important;
10
}
11
12
.table-of-contents {
0 commit comments