Apply aggressive TOC hiding rules to fix persistent right sidebar
This commit is contained in:
+38
-2
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
/* Show the left navigation sidebar but modify styling */
|
/* Show the left navigation sidebar but modify styling */
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
display: block !important;
|
||||||
|
width: auto !important;
|
||||||
|
visibility: visible !important;
|
||||||
background-color: rgba(245, 245, 247, 0.95) !important;
|
background-color: rgba(245, 245, 247, 0.95) !important;
|
||||||
border-right: 1px solid #e1e4e8 !important;
|
border-right: 1px solid #e1e4e8 !important;
|
||||||
}
|
}
|
||||||
@@ -10,10 +13,32 @@
|
|||||||
padding: 10px !important;
|
padding: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the floating right-side table of contents */
|
/* Hide the floating right-side table of contents - using more specific and aggressive rules */
|
||||||
|
.nav-wide-wrapper,
|
||||||
|
div[class*="toc"],
|
||||||
.page-toc,
|
.page-toc,
|
||||||
.pagetoc,
|
.pagetoc,
|
||||||
.table-of-contents {
|
.table-of-contents,
|
||||||
|
aside.right-side,
|
||||||
|
aside.sidebar-right,
|
||||||
|
.floating-toc,
|
||||||
|
#toc-container {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden !important;
|
||||||
|
width: 0 !important;
|
||||||
|
height: 0 !important;
|
||||||
|
position: absolute !important;
|
||||||
|
right: -9999px !important;
|
||||||
|
opacity: 0 !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Override any inline styles that might be applied to the TOC */
|
||||||
|
[id*="toc"],
|
||||||
|
[class*="toc"],
|
||||||
|
[class*="content"] [class*="toc"],
|
||||||
|
[id*="sidebar-toc"],
|
||||||
|
[class*="sidebar-toc"] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
visibility: hidden !important;
|
visibility: hidden !important;
|
||||||
}
|
}
|
||||||
@@ -26,6 +51,17 @@
|
|||||||
padding: 0 30px !important;
|
padding: 0 30px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure the main content fills the space */
|
||||||
|
main,
|
||||||
|
.content,
|
||||||
|
.page,
|
||||||
|
article,
|
||||||
|
.page-content {
|
||||||
|
max-width: 100% !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
padding-right: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Improve chapter navigation */
|
/* Improve chapter navigation */
|
||||||
.chapter {
|
.chapter {
|
||||||
line-height: 1.3 !important;
|
line-height: 1.3 !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user