- 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>
104 lines
3.9 KiB
CSS
104 lines
3.9 KiB
CSS
/* Teaching hub: the panel reuses the tutorial shell classes; these rules add the
|
|
mode switch, the target line and the spotlight layer. */
|
|
|
|
.teach-panel {
|
|
position: fixed;
|
|
top: 64px;
|
|
right: 18px;
|
|
/* Above modal backdrops (`.operator-search-backdrop` is 1000): the coach must
|
|
* stay clickable while a dialog is open, which is exactly when a learner
|
|
* needs the next instruction. */
|
|
z-index: 1100;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 380px;
|
|
max-height: calc(100vh - 120px);
|
|
overflow: hidden;
|
|
background: #1c1f21;
|
|
color: #e7e9ea;
|
|
border: 1px solid #3a3f42;
|
|
border-radius: 8px;
|
|
box-shadow: 0 18px 40px #0009;
|
|
font-size: 12px;
|
|
}
|
|
/* Flipped to the free half when the step target sits under the panel. */
|
|
.teach-panel.is-left { left: 18px; right: auto; }
|
|
.teach-panel.is-dragging { cursor: grabbing; }
|
|
.teach-panel.is-demoing { opacity: .45; }
|
|
.teach-panel .tutorial-body { overflow: auto; }
|
|
|
|
.teach-modes { display: flex; gap: 4px; padding: 6px 12px 0; }
|
|
.teach-modes button {
|
|
flex: 1;
|
|
padding: 4px 0;
|
|
border: 1px solid #41474a;
|
|
border-radius: 4px;
|
|
background: #23282b;
|
|
color: #c8cccf;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
.teach-modes button.is-active { background: #e67e22; border-color: #e67e22; color: #1b1b1b; font-weight: 600; }
|
|
|
|
.teach-hint { margin: 4px 0 8px; color: #9fb4c4; }
|
|
.teach-target { margin: 0 0 8px; color: #cfd3d6; }
|
|
.teach-target strong { color: #f2c48a; }
|
|
.teach-reference summary, .teach-chapter summary { cursor: pointer; color: #a9b6bf; }
|
|
.teach-reference img { width: 100%; border-radius: 4px; margin-top: 6px; }
|
|
.teach-objectives { margin: 6px 0; padding-left: 18px; color: #c2c7ca; }
|
|
|
|
.teach-check { display: flex; gap: 6px; align-items: flex-start; margin: 3px 0; color: #b9bec1; }
|
|
.teach-check span:first-child { width: 14px; color: #7d858a; }
|
|
.teach-check.ok { color: #93d58f; }
|
|
.teach-check.ok span:first-child { color: #67c463; }
|
|
.teach-check small { display: block; color: #8d9499; }
|
|
|
|
.teach-reopen {
|
|
position: fixed; right: 18px; bottom: 120px; z-index: 60;
|
|
display: inline-flex; gap: 6px; align-items: center;
|
|
padding: 8px 12px; border-radius: 999px;
|
|
background: #e67e22; color: #1b1b1b; border: none; font-weight: 600; cursor: pointer;
|
|
}
|
|
.teach-reopen small { opacity: .75; }
|
|
.teach-home-link { color: #a9b6bf; text-decoration: none; font-size: 11px; }
|
|
.teach-home-link:hover { text-decoration: underline; }
|
|
|
|
/* Spotlight: a transparent layer with a single punched-out box. Every part is
|
|
pointer-events: none so the learner clicks the real control underneath. */
|
|
.teach-spotlight { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
|
|
.teach-spotlight-box {
|
|
position: fixed;
|
|
border: 2px solid #ffb340;
|
|
border-radius: 6px;
|
|
box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 179, 64, .25);
|
|
animation: teach-pulse 1.8s ease-in-out infinite;
|
|
}
|
|
.teach-spotlight-callout {
|
|
position: fixed;
|
|
max-width: 320px;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
background: #23282b;
|
|
border: 1px solid #e67e22;
|
|
color: #f0f2f3;
|
|
box-shadow: 0 8px 24px #0008;
|
|
display: flex; flex-direction: column; gap: 2px;
|
|
}
|
|
.teach-spotlight-callout strong { color: #ffb340; font-size: 12px; }
|
|
.teach-spotlight-callout span { font-size: 12px; line-height: 1.45; }
|
|
.teach-spotlight-callout small { color: #9aa1a6; font-size: 11px; }
|
|
.teach-spotlight-callout[data-state="occluded"], .teach-spotlight-callout[data-state="missing"] {
|
|
border-color: #e05a4f;
|
|
}
|
|
.teach-spotlight-callout[data-state="occluded"] strong, .teach-spotlight-callout[data-state="missing"] strong { color: #f08a80; }
|
|
.teach-spotlight[data-teach-spotlight="missing"] .teach-spotlight-callout { background: #2a2323; }
|
|
|
|
@keyframes teach-pulse {
|
|
0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 179, 64, .22); }
|
|
50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45), 0 0 0 7px rgba(255, 179, 64, .38); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.teach-spotlight-box { animation: none; }
|
|
}
|