1c837766cd
Add backend-driven assembly and simulation experiences, MAKE branding, mobile rendering budgets and desktop-only CAD/PCB routes. Improve logo loading progress, document image recovery and URDF request handling; include dev packaging and regression coverage.
58 lines
5.1 KiB
CSS
58 lines
5.1 KiB
CSS
/* 项目详情:模型与行走演示,只保留展示和必要控制。 */
|
|
.assembly-open { height: 40px; padding: 0 18px; font-size: 13.5px; }
|
|
.p-head > div { min-width: 0; max-width: 100%; }
|
|
.p-desc { overflow-wrap: anywhere; }
|
|
.assembly-dialog {
|
|
width: min(1240px, calc(100vw - 64px)); max-width: none;
|
|
height: min(800px, calc(100dvh - 64px)); max-height: none;
|
|
margin: auto; padding: 0; overflow: hidden;
|
|
color: var(--text); background: #111316; border: 1px solid #34373c; border-radius: 24px;
|
|
box-shadow: 0 32px 120px #0009;
|
|
}
|
|
.assembly-dialog[open] { display: flex; flex-direction: column; }
|
|
.assembly-dialog::backdrop { background: #020305e6; }
|
|
.assembly-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.assembly-dialog button:disabled { opacity: .45; cursor: wait; }
|
|
.preview-close { position: absolute; right: max(18px, env(safe-area-inset-right)); top: max(18px, env(safe-area-inset-top)); z-index: 5; width: 44px; height: 44px; background: #161a20ed; border: 1px solid #ffffff24; }
|
|
.assembly-viewport { flex: 1; min-width: 0; min-height: 0; position: relative; overflow: hidden; background: radial-gradient(ellipse at 46% 43%, #3b414b, #242931 56%, #171b21); }
|
|
.assembly-scene { position: absolute; inset: 0; }
|
|
.assembly-motion-status { position: absolute; z-index: 1; top: 20px; left: 20px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; min-height: 44px; max-width: calc(100% - 100px); border: 1px solid #ffffff24; border-radius: 12px; color: #e5e9ef; background: #161a20ed; text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
|
|
.assembly-motion-status span + span { color: var(--accent); font-size: 11px; }
|
|
.assembly-viewport.is-stepping .assembly-scene { bottom: 150px; }
|
|
.assembly-viewport.is-exploded .assembly-scene { bottom: 122px; }
|
|
.assembly-viewport canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
|
|
.assembly-viewport canvas:active { cursor: grabbing; }
|
|
.assembly-tools { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
|
|
.assembly-tools .btn { min-height: 44px; background: #161a20ed; color: #d4d9e0; border-color: #ffffff24; }
|
|
.assembly-tools [aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); background: #242f1be6; }
|
|
.assembly-step { position: absolute; left: 16px; right: 16px; bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 0; }
|
|
.assembly-step-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; width: min(480px, 100%); height: 44px; }
|
|
.assembly-progress { width: min(480px, 100%); height: 44px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
|
|
.assembly-step [data-step-label] { min-width: 0; color: #e5e9ef; padding: 8px 12px; border-radius: 12px; background: #161a20ed; text-align: center; font-size: 13px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.assembly-step .btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; background: #161a20ed; }
|
|
.assembly-explosion { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); width: min(480px, calc(100% - 32px)); display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; align-items: center; gap: 14px; color: #d4d9e0; font-size: 12px; }
|
|
.assembly-explosion input { min-width: 0; width: 100%; height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
|
|
.assembly-explosion output { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.assembly-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #232830; text-align: center; padding: 24px; }
|
|
.assembly-loading strong { font-size: 14px; font-weight: 500; }
|
|
.assembly-loading [data-progress] { color: var(--muted); font-size: 12px; }
|
|
.assembly-loading.is-error .spinner { display: none; }
|
|
.walking-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #08080c; }
|
|
.walking-status { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: #13171d; color: var(--muted); font-size: 14px; }
|
|
@media (max-width: 760px) {
|
|
.assembly-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
|
|
.preview-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
|
|
.assembly-tools { bottom: max(16px, env(safe-area-inset-bottom)); }
|
|
.assembly-tools .btn { padding-inline: 10px; font-size: 12px; }
|
|
.assembly-step { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 48px); }
|
|
.assembly-explosion { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 48px); gap: 10px; }
|
|
.assembly-open { min-height: 44px; }
|
|
}
|
|
@media (pointer: coarse) and (max-height: 500px) {
|
|
.assembly-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
|
|
}
|
|
@media (max-width: 380px) {
|
|
.assembly-tools { gap: 6px; }
|
|
.assembly-tools .btn { padding-inline: 6px; }
|
|
}
|