completely redesigned notes update

This commit is contained in:
Hugh Ratsch
2025-03-02 12:03:42 -06:00
parent 1933b4368f
commit a7ad134cad
+60 -73
View File
@@ -5,93 +5,43 @@
min-width: 30px !important; min-width: 30px !important;
} }
.pagetoc { /* mdBook TOC styling - this targets the actual sidebar TOC */
position: fixed; .content-wrap {
top: 70px; max-width: calc(100% - 220px) !important;
right: 10px; margin-right: 220px !important;
width: 200px;
background: rgba(240, 242, 245, 0.9);
border-radius: 5px;
border: 1px solid #e1e4e8;
font-size: 0.8em;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
padding: 10px 10px;
max-height: calc(100vh - 120px);
overflow-y: auto;
} }
.pagetoc h2 { .sidebar {
font-size: 1em; background: rgba(245, 245, 247, 0.95) !important;
margin: 0 0 8px 0;
padding-bottom: 5px;
border-bottom: 1px solid #e1e4e8;
} }
.pagetoc ul { .sidebar-scrollbox {
list-style-type: none; padding: 10px !important;
margin: 0;
padding: 0 0 0 10px;
line-height: 1.3;
} }
.pagetoc ul li { .chapter {
margin: 0 0 4px 0; line-height: 1.3 !important;
font-size: 0.9em !important;
} }
.pagetoc a { .chapter li a {
color: #4183c4; display: block !important;
text-decoration: none; padding: 5px 0 !important;
display: block; text-overflow: ellipsis !important;
padding: 2px 5px; overflow: hidden !important;
border-radius: 3px; white-space: nowrap !important;
transition: background-color 0.15s;
font-weight: normal;
} }
.pagetoc a:hover { .chapter li a:hover {
background-color: rgba(65, 131, 196, 0.1); text-decoration: none !important;
text-decoration: none; background-color: rgba(0, 0, 0, 0.05) !important;
} }
/* Adjust main content to make room for TOC sidebar */ .chapter .active {
.content { background-color: rgba(0, 0, 0, 0.07) !important;
padding-right: 230px !important;
} }
/* Responsive adjustments */ /* Page table of contents styling for in-page TOC */
@media screen and (max-width: 1250px) {
.pagetoc {
width: 180px;
}
.content {
padding-right: 200px !important;
}
}
@media screen and (max-width: 1100px) {
.pagetoc {
width: 150px;
font-size: 0.75em;
padding: 8px;
}
.content {
padding-right: 170px !important;
}
}
@media screen and (max-width: 800px) {
.pagetoc {
display: none;
}
.content {
padding-right: 15px !important;
}
}
/* Table of Contents styling for in-page TOC */
.toc { .toc {
background-color: #f8f9fa; background-color: #f8f9fa;
border: 1px solid #eaecef; border: 1px solid #eaecef;
@@ -227,4 +177,41 @@ th {
.chapter { .chapter {
display: block !important; display: block !important;
visibility: visible !important; visibility: visible !important;
}
/* mdBook theme-specific adjustments */
.light .sidebar {
background-color: #fafafa !important;
border-right: 1px solid #e6e6e6 !important;
}
.navy .sidebar, .coal .sidebar, .ayu .sidebar {
background-color: #292c2f !important;
border-right: 1px solid #393f44 !important;
}
/* Responsive adjustments for the sidebar */
@media only screen and (max-width: 1300px) {
.content-wrap {
max-width: calc(100% - 200px) !important;
margin-right: 200px !important;
}
}
@media only screen and (max-width: 1080px) {
.content-wrap {
max-width: calc(100% - 180px) !important;
margin-right: 180px !important;
}
.chapter {
font-size: 0.85em !important;
}
}
@media only screen and (max-width: 700px) {
.content-wrap {
max-width: 100% !important;
margin-right: 0 !important;
}
} }