Remove sidebar table of contents for cleaner interface
This commit is contained in:
+69
-46
@@ -1,46 +1,22 @@
|
||||
/* Custom styling for IT Learning Notes */
|
||||
|
||||
/* Right sidebar table of contents improvements */
|
||||
/* Hide the sidebar/TOC completely */
|
||||
.sidebar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Make content take up full width without sidebar */
|
||||
.content-wrap {
|
||||
margin-left: 0 !important;
|
||||
max-width: 100% !important;
|
||||
padding: 0 30px !important;
|
||||
}
|
||||
|
||||
/* Right/left navigation buttons */
|
||||
.nav-chapters {
|
||||
min-width: 30px !important;
|
||||
}
|
||||
|
||||
/* mdBook TOC styling - this targets the actual sidebar TOC */
|
||||
.content-wrap {
|
||||
max-width: calc(100% - 220px) !important;
|
||||
margin-right: 220px !important;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: rgba(245, 245, 247, 0.95) !important;
|
||||
}
|
||||
|
||||
.sidebar-scrollbox {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
.chapter {
|
||||
line-height: 1.3 !important;
|
||||
font-size: 0.9em !important;
|
||||
}
|
||||
|
||||
.chapter li a {
|
||||
display: block !important;
|
||||
padding: 5px 0 !important;
|
||||
text-overflow: ellipsis !important;
|
||||
overflow: hidden !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.chapter li a:hover {
|
||||
text-decoration: none !important;
|
||||
background-color: rgba(0, 0, 0, 0.05) !important;
|
||||
}
|
||||
|
||||
.chapter .active {
|
||||
background-color: rgba(0, 0, 0, 0.07) !important;
|
||||
}
|
||||
|
||||
/* Page table of contents styling for in-page TOC */
|
||||
.toc {
|
||||
background-color: #f8f9fa;
|
||||
@@ -100,15 +76,6 @@ div[id^="scenario-"] {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
/* Improve nested section visibility */
|
||||
.chapter li.chapter-item {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.chapter li.chapter-item.expanded {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* Better styling for scenario headers */
|
||||
h2 {
|
||||
margin-top: 2em;
|
||||
@@ -179,6 +146,62 @@ th {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
/* Ensure main menu button is visible */
|
||||
#menu-bar {
|
||||
z-index: 10 !important;
|
||||
}
|
||||
|
||||
/* Make menu button more visible for navigation */
|
||||
#menu-bar i {
|
||||
font-size: 1.5em !important;
|
||||
}
|
||||
|
||||
/* Menu items more spaced when menu is opened */
|
||||
#menu-bar.open .menu-title {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
/* mdBook TOC styling - this targets the actual sidebar TOC */
|
||||
.content-wrap {
|
||||
max-width: calc(100% - 220px) !important;
|
||||
margin-right: 220px !important;
|
||||
}
|
||||
|
||||
.sidebar-scrollbox {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
.chapter {
|
||||
line-height: 1.3 !important;
|
||||
font-size: 0.9em !important;
|
||||
}
|
||||
|
||||
.chapter li a {
|
||||
display: block !important;
|
||||
padding: 5px 0 !important;
|
||||
text-overflow: ellipsis !important;
|
||||
overflow: hidden !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.chapter li a:hover {
|
||||
text-decoration: none !important;
|
||||
background-color: rgba(0, 0, 0, 0.05) !important;
|
||||
}
|
||||
|
||||
.chapter .active {
|
||||
background-color: rgba(0, 0, 0, 0.07) !important;
|
||||
}
|
||||
|
||||
/* Improve nested section visibility */
|
||||
.chapter li.chapter-item {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.chapter li.chapter-item.expanded {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* mdBook theme-specific adjustments */
|
||||
.light .sidebar {
|
||||
background-color: #fafafa !important;
|
||||
|
||||
Reference in New Issue
Block a user