Implement folder structure in file index and enhance document loading logic

This commit is contained in:
2025-01-29 12:21:52 +11:00
parent 4dab487d03
commit 661f9bb9c4
3 changed files with 162 additions and 43 deletions

View File

@@ -102,6 +102,41 @@ body {
border-left: 2px solid var(--ifm-color-primary);
}
.folder {
color: var(--ifm-color-content);
}
.folder-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 1.2rem;
cursor: pointer;
user-select: none;
font-size: 0.875rem;
}
.folder-header:hover {
background-color: rgba(0, 0, 0, 0.05);
}
.folder-icon {
width: 1.2em;
color: var(--ifm-color-content-secondary);
}
.folder-content {
display: none;
}
.folder.open > .folder-content {
display: block;
}
.folder .folder-header:hover .folder-icon {
color: var(--ifm-color-primary);
}
.social-links {
padding: 1rem 1rem 0.5rem;
border-top: 1px solid var(--ifm-border-color);