- Offscreen worker backend publishes the camera probe, so the G/R/S modal's pointer basis, transform gizmo and wireframe work on both renderers. - Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre, committed as one grouped transaction (T(P)·R·S·T(-P) in object space). - Gizmo hits carry the pivot index; orthographic views size the axes from the visible world height instead of the 45° fov fallback. - View-menu navigation no longer switches workspace when a viewport is already on screen (the engine workspace transaction dropped the editor out of Edit). - Modal commits queue behind the shared command tail, so a trailing editEditorContext cannot consume the user's first Ctrl+Z. - Floating sidebar rotation field confirmed in degrees; headed cases for the offscreen path, per-island pivots and the sidebar unit, plus receipts/docs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
180 lines
4.6 KiB
CSS
180 lines
4.6 KiB
CSS
/* Static teaching catalogue. Kept separate from the app bundle so the page
|
|
loads instantly, before (and without) the WASM engine. */
|
|
|
|
:root {
|
|
--bg: #16181a;
|
|
--panel: #1f2225;
|
|
--panel-2: #262a2e;
|
|
--line: #363c41;
|
|
--text: #e7e9ea;
|
|
--muted: #9aa4ab;
|
|
--accent: #e67e22;
|
|
--accent-soft: #f2a65a;
|
|
--ok: #67c463;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: radial-gradient(1200px 600px at 20% -10%, #23282c 0%, var(--bg) 55%);
|
|
color: var(--text);
|
|
font: 14px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
|
}
|
|
|
|
a { color: var(--accent-soft); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.teach-hero {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 24px;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
padding: 40px clamp(18px, 4vw, 56px) 24px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.teach-hero-text { max-width: 640px; }
|
|
.teach-kicker {
|
|
margin: 0 0 4px;
|
|
color: var(--accent-soft);
|
|
font-size: 12px;
|
|
letter-spacing: .16em;
|
|
text-transform: uppercase;
|
|
}
|
|
.teach-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: .01em; }
|
|
.teach-lede { margin: 0; color: var(--muted); }
|
|
|
|
.teach-controls { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
|
|
|
|
.teach-search { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
|
|
.teach-search input {
|
|
padding: 9px 12px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
}
|
|
.teach-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
|
|
.teach-mode { display: flex; gap: 12px; margin: 0; padding: 0; border: 0; font-size: 12px; }
|
|
.teach-mode legend { padding: 0 0 4px; color: var(--muted); }
|
|
.teach-mode label { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
|
|
|
|
.teach-continue {
|
|
align-self: flex-start;
|
|
padding: 9px 16px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: var(--accent);
|
|
color: #1b1b1b;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
.teach-continue:hover { background: var(--accent-soft); }
|
|
|
|
main { padding: 8px clamp(18px, 4vw, 56px) 40px; }
|
|
.teach-loading { color: var(--muted); padding: 40px 0; }
|
|
.teach-error { color: #f08a80; }
|
|
|
|
.teach-part { margin-top: 32px; }
|
|
.teach-part > h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.teach-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.teach-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 16px 16px 14px;
|
|
background: linear-gradient(180deg, var(--panel-2), var(--panel));
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
transition: border-color .15s ease, transform .15s ease;
|
|
}
|
|
.teach-card:hover { border-color: #4b545b; transform: translateY(-1px); }
|
|
.teach-card.is-done { border-color: #3f5f41; }
|
|
.teach-card[hidden] { display: none; }
|
|
|
|
.teach-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
|
|
.teach-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
|
|
.teach-number {
|
|
display: inline-block;
|
|
margin-right: 6px;
|
|
color: var(--accent-soft);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.teach-ring {
|
|
--done: 0;
|
|
flex: none;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
background: conic-gradient(var(--ok) calc(var(--done) * 1%), #333a3f 0);
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
}
|
|
.teach-ring::before {
|
|
content: attr(data-label);
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--panel);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.teach-card p { margin: 0; color: var(--muted); font-size: 13px; }
|
|
|
|
.teach-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); }
|
|
.teach-meta span {
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
background: #202427;
|
|
}
|
|
|
|
.teach-card-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
|
|
.teach-start {
|
|
padding: 7px 14px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: var(--accent);
|
|
color: #1b1b1b;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.teach-start:hover { background: var(--accent-soft); }
|
|
.teach-manual { font-size: 12px; }
|
|
|
|
.teach-footer {
|
|
padding: 20px clamp(18px, 4vw, 56px) 40px;
|
|
border-top: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.teach-footer p { margin: 0 0 6px; }
|
|
.teach-version code { color: var(--text); }
|
|
|
|
@media (max-width: 640px) {
|
|
.teach-hero { align-items: flex-start; }
|
|
.teach-controls { width: 100%; }
|
|
}
|