230 lines
4.1 KiB
CSS
230 lines
4.1 KiB
CSS
/* Custom styling for IT Learning Notes */
|
|
|
|
/* Right sidebar table of contents improvements */
|
|
.nav-chapters {
|
|
min-width: 30px !important;
|
|
}
|
|
|
|
.pagetoc {
|
|
position: fixed;
|
|
top: 70px;
|
|
right: 10px;
|
|
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 {
|
|
font-size: 1em;
|
|
margin: 0 0 8px 0;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid #e1e4e8;
|
|
}
|
|
|
|
.pagetoc ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0 0 0 10px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.pagetoc ul li {
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.pagetoc a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
transition: background-color 0.15s;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.pagetoc a:hover {
|
|
background-color: rgba(65, 131, 196, 0.1);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Adjust main content to make room for TOC sidebar */
|
|
.content {
|
|
padding-right: 230px !important;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@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 {
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #eaecef;
|
|
border-radius: 4px;
|
|
padding: 1em;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.toc ul, .toc ol {
|
|
list-style-type: none;
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.toc li {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
/* Back to top link styling */
|
|
a[href^="#"] {
|
|
text-decoration: none;
|
|
color: #4183c4;
|
|
font-weight: 600;
|
|
}
|
|
|
|
a[href^="#"]:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Navigation links at bottom of sections */
|
|
a[href="#user-management-solutions-"],
|
|
a[href="#storage-management-solutions-"],
|
|
a[href="#service-management-solutions-"],
|
|
a[href="#network-solutions-"],
|
|
a[href="#security-solutions-"],
|
|
a[href="#container-management-solutions-"],
|
|
a[href="#system-recovery-solutions-"],
|
|
a[href="#shell-scripting-solutions-"] {
|
|
display: inline-block;
|
|
background-color: #f1f8ff;
|
|
padding: 0.3em 0.6em;
|
|
margin: 1.5em 0;
|
|
border-radius: 4px;
|
|
border-left: 4px solid #4183c4;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Section anchor targets */
|
|
div[id^="scenario-"] {
|
|
scroll-margin-top: 70px;
|
|
}
|
|
|
|
/* Ensure all sections are properly visible */
|
|
.section {
|
|
display: block !important;
|
|
visibility: visible !important;
|
|
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;
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 0.3em;
|
|
}
|
|
|
|
/* Make anchors more reliable */
|
|
h2:before, h3:before {
|
|
content: "";
|
|
display: block;
|
|
height: 70px;
|
|
margin-top: -70px;
|
|
visibility: hidden;
|
|
}
|
|
|
|
/* Styling for code blocks */
|
|
pre {
|
|
background-color: #f5f5f5;
|
|
border-radius: 4px;
|
|
padding: 1em;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
/* Improve table styling */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
table, th, td {
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
}
|
|
|
|
th {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Style for tags */
|
|
.tag {
|
|
background-color: #f0f0f0;
|
|
border-radius: 4px;
|
|
padding: 3px 6px;
|
|
font-size: 0.85em;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* Ensure content is visible */
|
|
.content {
|
|
display: block !important;
|
|
}
|
|
|
|
/* Fix for potentially hidden elements */
|
|
.hidden {
|
|
display: block !important;
|
|
visibility: visible !important;
|
|
}
|
|
|
|
/* Ensure chapters don't disappear */
|
|
.chapter {
|
|
display: block !important;
|
|
visibility: visible !important;
|
|
} |