refactor: simplify primary workflows

This commit is contained in:
Codex
2026-08-28 18:33:20 +09:00
parent 6e5bd512b9
commit 35c33e360e
5 changed files with 756 additions and 126 deletions
+360
View File
@@ -643,3 +643,363 @@
grid-row: 2;
}
}
/* Task-first Builder navigation and progressive disclosure. */
.builder-header {
min-height: 58px;
padding-block: 9px;
gap: 16px;
}
.builder-workflow {
min-width: 0;
margin-left: auto;
}
.builder-workflow ol {
display: flex;
align-items: center;
margin: 0;
padding: 0;
list-style: none;
}
.builder-workflow li {
display: flex;
align-items: center;
gap: 6px;
color: var(--muted);
font-size: 0.68rem;
font-weight: 680;
white-space: nowrap;
}
.builder-workflow li + li::before {
width: 18px;
height: 1px;
margin: 0 7px;
background: var(--line);
content: "";
}
.builder-workflow li span {
display: grid;
width: 20px;
height: 20px;
border: 1px solid rgb(101 242 191 / 34%);
border-radius: 50%;
place-items: center;
color: var(--mint);
font: 750 0.6rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.header-more {
position: relative;
}
.header-more > summary {
list-style: none;
}
.header-more > summary::-webkit-details-marker,
.inline-disclosure > summary::-webkit-details-marker,
.section-summary::-webkit-details-marker,
.asset-help > summary::-webkit-details-marker {
display: none;
}
.header-more__menu {
position: absolute;
z-index: 30;
top: calc(100% + 8px);
right: 0;
display: grid;
width: max-content;
min-width: 210px;
gap: 8px;
padding: 10px;
border: 1px solid var(--line);
border-radius: 12px;
background: #0b1714;
box-shadow: 0 18px 48px rgb(0 0 0 / 35%);
}
.header-more__menu .button {
width: 100%;
}
.builder-layout {
grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
min-height: calc(100vh - 59px);
}
.scene-workspace {
padding: clamp(20px, 2.5vw, 34px);
}
.workspace-heading {
margin-bottom: 16px;
}
.workspace-heading h1 {
font-size: clamp(1.55rem, 3vw, 2.35rem);
}
.source-strip-heading .eyebrow {
margin-bottom: 5px;
font-size: 0.64rem;
}
.source-strip-heading {
margin-top: 24px;
}
.asset-shelf {
align-items: center;
margin-top: 20px;
padding: 14px 16px;
}
.asset-help {
color: var(--muted);
font-size: 0.7rem;
}
.asset-help summary {
width: fit-content;
margin-top: 4px;
color: var(--mint);
cursor: pointer;
}
.asset-help p {
max-width: 520px;
margin-top: 9px;
}
.control-panel {
top: 59px;
max-height: calc(100vh - 59px);
padding: 14px;
}
.control-section--primary {
border-color: rgb(101 242 191 / 28%);
background: rgb(101 242 191 / 3%);
}
.validation-card {
margin-top: 0;
margin-bottom: 12px;
padding: 13px 15px;
}
.control-section + .validation-card {
margin-top: 12px;
}
.inline-disclosure {
margin-top: 12px;
border-top: 1px solid var(--line);
}
.inline-disclosure > summary {
padding: 12px 0 0;
color: var(--muted);
cursor: pointer;
font-size: 0.7rem;
font-weight: 700;
}
.inline-disclosure > summary::after {
float: right;
color: var(--mint);
content: "+";
}
.inline-disclosure[open] > summary::after {
content: "−";
}
.disclosure-section {
padding: 0;
}
.section-summary {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 9px;
padding: 15px 17px;
cursor: pointer;
list-style: none;
}
.section-summary > span {
color: var(--mint);
font: 750 0.62rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.section-summary > strong {
font-size: 0.82rem;
}
.section-summary > small {
color: var(--muted);
font-size: 0.62rem;
}
.disclosure-section[open] {
padding: 0 17px 17px;
}
.disclosure-section[open] .section-summary {
margin: 0 -17px 14px;
border-bottom: 1px solid var(--line);
}
@media (max-width: 1180px) {
.builder-workflow li {
font-size: 0;
gap: 0;
}
.builder-workflow li + li::before {
width: 12px;
margin-inline: 5px;
}
}
@media (max-width: 1100px) {
.control-panel {
max-height: none;
}
}
@media (max-width: 760px) {
.builder-header {
gap: 10px;
}
.builder-workflow {
order: 3;
width: 100%;
margin: 0;
}
.builder-workflow ol {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.builder-workflow li {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 5px;
font-size: 0.64rem;
}
.builder-workflow li + li::before {
display: none;
}
.header-actions {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.header-actions > .button,
.header-actions > .header-more,
.header-more > summary {
width: 100%;
}
.header-more__menu {
top: calc(100% + 6px);
}
.asset-shelf {
align-items: stretch;
}
}
@media (max-width: 430px) {
.builder-header,
.scene-workspace,
.control-panel {
padding-inline: 14px;
}
.builder-workflow li {
grid-template-columns: 18px minmax(0, 1fr);
font-size: 0.59rem;
}
.builder-workflow li span {
width: 18px;
height: 18px;
}
.header-actions {
gap: 6px;
}
.header-actions .button {
min-height: 36px;
padding-inline: 7px;
font-size: 0.72rem;
}
.header-more__menu {
right: -2px;
min-width: 190px;
}
.canvas-card {
min-height: 360px;
}
#scene-canvas {
height: 360px;
}
.workspace-tools .button,
.source-actions .button {
font-size: 0.74rem;
}
.trajectory-row {
grid-template-columns: 34px repeat(2, minmax(0, 1fr)) 30px;
grid-template-rows: repeat(2, auto);
}
.trajectory-row__select,
.trajectory-row__remove {
grid-row: 1 / 3;
align-self: stretch;
}
.trajectory-row .field:nth-of-type(1) {
grid-column: 2;
grid-row: 1;
}
.trajectory-row .field:nth-of-type(2) {
grid-column: 3;
grid-row: 1;
}
.trajectory-row .field:nth-of-type(3) {
grid-column: 2;
grid-row: 2;
}
.trajectory-row .field:nth-of-type(4) {
grid-column: 3;
grid-row: 2;
}
.trajectory-row__remove {
grid-column: 4;
}
}