feat: compose draft authoring workbench
This commit is contained in:
@@ -1259,6 +1259,196 @@ tbody tr:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Draft authoring keeps the three browser-owned contexts mounted together.
|
||||
The center graph is the only flexible column; side panes scroll locally. */
|
||||
.draft-workbench {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(11rem, 15rem) minmax(24rem, 1fr) minmax(18rem, 23rem);
|
||||
gap: 0.75rem;
|
||||
align-items: start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.draft-workbench > aside,
|
||||
.draft-workbench > section {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.capability-palette,
|
||||
.context-inspector,
|
||||
.authoring-graph {
|
||||
min-height: 42rem;
|
||||
max-height: calc(100vh - 10rem);
|
||||
overflow: auto;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 4px;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.capability-palette__header,
|
||||
.authoring-graph__heading,
|
||||
.context-inspector__heading {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.capability-palette__header h2,
|
||||
.authoring-graph__heading h2,
|
||||
.context-inspector__heading h2 {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.capability-palette__header p:last-child {
|
||||
color: var(--color-slate);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.capability-palette__list,
|
||||
.authoring-graph__routes ul {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.capability-palette__item,
|
||||
.authoring-graph__route {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
gap: 0.2rem;
|
||||
padding: 0.6rem;
|
||||
border: 1px solid var(--color-border);
|
||||
background: #fff;
|
||||
color: var(--color-ink);
|
||||
text-align: left;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.capability-palette__item strong,
|
||||
.authoring-graph__route strong {
|
||||
overflow-wrap: anywhere;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.capability-palette__item span,
|
||||
.authoring-graph__route span {
|
||||
color: var(--color-slate);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.capability-palette__item:hover,
|
||||
.capability-palette__item:focus-visible,
|
||||
.capability-palette__item[data-selected="true"],
|
||||
.authoring-graph__route:hover,
|
||||
.authoring-graph__route:focus-visible,
|
||||
.authoring-graph__route[aria-pressed="true"] {
|
||||
border-color: var(--color-signal-green);
|
||||
background: #f6fbf7;
|
||||
}
|
||||
|
||||
.capability-palette__empty,
|
||||
.authoring-graph__routes p {
|
||||
color: var(--color-slate);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.authoring-graph {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.authoring-graph__heading {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.authoring-graph__selection {
|
||||
color: var(--color-slate);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.authoring-graph .workflow-graph {
|
||||
height: 34rem;
|
||||
border-color: var(--color-border);
|
||||
}
|
||||
|
||||
.authoring-graph__routes {
|
||||
margin-top: 0.75rem;
|
||||
padding-top: 0.65rem;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.authoring-graph__routes h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.authoring-graph__route {
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.authoring-graph__route span:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.context-inspector {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.context-inspector .draft-detail__panels {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.context-inspector .draft-detail__panel,
|
||||
.authoring-inspector__selection,
|
||||
.authoring-inspector__deferred {
|
||||
margin: 0;
|
||||
padding: 0.7rem;
|
||||
border: 1px solid var(--color-border);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.context-inspector .draft-detail__panel h2,
|
||||
.authoring-inspector__selection h2 {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.context-inspector .draft-detail__facts,
|
||||
.authoring-inspector__facts {
|
||||
grid-template-columns: 1fr;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.authoring-inspector__selection p:last-child {
|
||||
color: var(--color-slate);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.authoring-inspector__deferred-actions {
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.authoring-inspector__deferred-actions button {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.context-inspector .draft-detail__raw {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Motion */
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
@@ -1367,6 +1557,21 @@ tbody tr:nth-child(10) { animation-delay: 270ms; }
|
||||
.capability-discovery__filters button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.draft-workbench {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.capability-palette,
|
||||
.context-inspector,
|
||||
.authoring-graph {
|
||||
min-height: auto;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.authoring-graph {
|
||||
order: -1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
|
||||
Reference in New Issue
Block a user