Add a built-in wiki.
This commit is contained in:
parent
358a8f68fd
commit
567ac1a26d
28 changed files with 4030 additions and 118 deletions
|
|
@ -218,3 +218,76 @@
|
|||
.grade { font-size: 68px; font-weight: 800; font-family: var(--mono); line-height: 1; }
|
||||
.grade.s { color: var(--brand-blue); } .grade.a { color: var(--green); }
|
||||
.grade.b { color: var(--amber); } .grade.c { color: var(--red); } .grade.f { color: var(--red); }
|
||||
|
||||
.wiki-page { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg-deep); }
|
||||
.wiki-topbar {
|
||||
padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg-panel-solid);
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0;
|
||||
}
|
||||
.wiki-topbar-controls { flex-wrap: wrap; align-items: center; }
|
||||
.wiki-search-input { width: clamp(210px, 24vw, 300px); min-width: 180px; }
|
||||
.wiki-layout {
|
||||
display: grid; grid-template-columns: 270px 1fr; flex: 1; min-height: 0; overflow: hidden;
|
||||
}
|
||||
.wiki-sidebar {
|
||||
border-right: 1px solid var(--border); background: var(--bg-panel-solid);
|
||||
padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 64px;
|
||||
}
|
||||
.wiki-nav-group { display: flex; flex-direction: column; gap: 4px; }
|
||||
.wiki-nav-cat {
|
||||
font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
|
||||
text-transform: uppercase; color: var(--text-faint); padding: 4px 6px;
|
||||
}
|
||||
.wiki-nav-item {
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
|
||||
padding: 8px 10px; background: transparent; border: 1px solid transparent; clip-path: var(--chamfer-sm);
|
||||
color: var(--text-dim); font-family: var(--mono); font-size: 11px; text-align: left; cursor: pointer;
|
||||
transition: background-color 0.14s, border-color 0.14s, color 0.14s;
|
||||
}
|
||||
.wiki-nav-item:hover { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
|
||||
.wiki-nav-item.active { background: var(--sim-glow); color: var(--sim-accent); border-color: var(--sim-accent); }
|
||||
.wiki-search-hit {
|
||||
display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 8px 10px;
|
||||
background: var(--bg-deep); border: 1px solid var(--border); clip-path: var(--chamfer-sm);
|
||||
color: var(--text); text-align: left; cursor: pointer;
|
||||
}
|
||||
.wiki-search-hit:hover { border-color: var(--sim-accent); background: var(--bg-elevated); }
|
||||
.wiki-main {
|
||||
overflow-y: auto; padding: 22px 26px 86px; display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
.wiki-main > * { max-width: 980px; }
|
||||
.wiki-article-header h2 { font-size: 20px; color: var(--text); }
|
||||
.wiki-callout {
|
||||
display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px;
|
||||
background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35);
|
||||
clip-path: var(--chamfer-sm); color: var(--text);
|
||||
}
|
||||
.wiki-section { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
|
||||
.wiki-prose { font-size: 13px; line-height: 1.62; color: var(--text-dim); }
|
||||
.wiki-bullets {
|
||||
padding-left: 18px; display: flex; flex-direction: column; gap: 6px;
|
||||
font-size: 12px; line-height: 1.55; color: var(--text);
|
||||
}
|
||||
.wiki-formula {
|
||||
padding: 8px 12px; background: var(--bg-deep); border: 1px solid var(--border-bright);
|
||||
clip-path: var(--chamfer-sm); font-family: var(--mono); font-size: 12px; color: var(--brand-blue);
|
||||
}
|
||||
.wiki-lab-card { padding: 16px 18px; }
|
||||
.wiki-lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
|
||||
.wiki-checklist-item {
|
||||
padding: 10px 12px; background: var(--bg-deep); border: 1px solid var(--border);
|
||||
clip-path: var(--chamfer-sm); transition: border-color 0.15s;
|
||||
}
|
||||
.wiki-checklist-item.done { border-color: rgba(52, 211, 153, 0.45); }
|
||||
.wiki-glossary-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
|
||||
.wiki-glossary-card.highlighted { border-color: var(--sim-accent); box-shadow: 0 0 18px var(--sim-glow); }
|
||||
.wiki-refs-section { margin-top: 4px; }
|
||||
.wiki-ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
|
||||
.wiki-ref-card {
|
||||
display: block; text-decoration: none; color: inherit; padding: 12px 14px;
|
||||
background: var(--bg-panel-solid); border: 1px solid var(--border); clip-path: var(--chamfer-sm);
|
||||
transition: border-color 0.15s, background-color 0.15s;
|
||||
}
|
||||
.wiki-ref-card:hover { border-color: var(--brand-blue); background: var(--bg-elevated); }
|
||||
.wiki-ext-link { text-decoration: none; }
|
||||
.wiki-footer-nav { padding-top: 8px; border-top: 1px solid var(--border); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue