Drag the right edge from 480 up to leaving 240 of the canvas; the width is remembered and a double-click restores 660. The limits live in the CSS, so they hold when the browser window shrinks too. Going through every page at 480 turned up what this needed: - Workflow cards shrank into strips instead of the list scrolling: a card clips its content, so plain grid rows fit the height. - The Prompts page's own columns beat the narrow stacked rule, leaving half a page empty, in a narrow floating window too. - The Models header pushed the close button out. - The Workflows bar only wrapped on a small screen, not a small window. - The AI tabs kept a gap for their hidden icons and wrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
599 lines
14 KiB
CSS
599 lines
14 KiB
CSS
/* The Workflows page (ui_recipe_catalog.js, ui_recipe_cards.js): one bar, then cards as a grid
|
|
or a list; the small menu of ui_popup_menu.js; the empty page's guide. */
|
|
|
|
.anomalous-wf-bar {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--amb-border);
|
|
}
|
|
|
|
.anomalous-wf-search {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--amb-border-strong);
|
|
border-radius: var(--amb-radius-control);
|
|
background: var(--amb-bg-input);
|
|
color: var(--amb-text-dim);
|
|
}
|
|
|
|
.anomalous-wf-search:focus-within { border-color: var(--amb-link); }
|
|
|
|
.anomalous-wf-search input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--amb-text-main);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.anomalous-wf-filter,
|
|
.anomalous-wf-icon-btn,
|
|
.anomalous-wf-save {
|
|
flex: 0 0 auto;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--amb-border-strong);
|
|
border-radius: var(--amb-radius-control);
|
|
background: transparent;
|
|
color: var(--amb-text-soft);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-wf-icon-btn {
|
|
width: 32px;
|
|
padding: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.anomalous-wf-filter:hover,
|
|
.anomalous-wf-icon-btn:hover {
|
|
border-color: var(--amb-border-hover);
|
|
background: var(--amb-bg-card-hover);
|
|
color: var(--amb-text-main);
|
|
}
|
|
|
|
.anomalous-wf-filter.is-active {
|
|
border-color: var(--amb-link);
|
|
color: var(--amb-link);
|
|
}
|
|
|
|
.anomalous-wf-count {
|
|
flex: 0 0 auto;
|
|
color: var(--amb-text-dim);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.anomalous-wf-save {
|
|
border-color: transparent;
|
|
background: var(--amb-btn-primary-bg);
|
|
color: var(--amb-btn-primary-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.anomalous-wf-save:hover { background: var(--amb-btn-primary-hover); }
|
|
|
|
.anomalous-wf-list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.anomalous-wf-list.is-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
grid-auto-rows: max-content; /* a card clips its content, so plain rows would shrink to fit instead of scrolling */
|
|
align-content: start;
|
|
gap: 14px;
|
|
}
|
|
|
|
.anomalous-wf-list.is-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.anomalous-wf-card {
|
|
--wf-cover-height: 150px;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: var(--amb-radius-panel);
|
|
background: var(--amb-bg-card);
|
|
cursor: grab;
|
|
transition: border-color 0.15s ease, background-color 0.15s ease;
|
|
}
|
|
|
|
.anomalous-wf-card:active { cursor: grabbing; }
|
|
.anomalous-wf-card button { cursor: pointer; }
|
|
|
|
.anomalous-wf-card:hover,
|
|
.anomalous-wf-card:focus-within {
|
|
border-color: var(--amb-border-hover);
|
|
background: var(--amb-bg-card-hover);
|
|
}
|
|
|
|
.anomalous-wf-cover {
|
|
position: relative;
|
|
flex: 0 0 var(--wf-cover-height);
|
|
height: var(--wf-cover-height);
|
|
overflow: hidden;
|
|
background: var(--amb-bg-sunken);
|
|
}
|
|
|
|
.anomalous-wf-cover img,
|
|
.anomalous-wf-cover video {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.anomalous-wf-status {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 0 2px rgba(10, 12, 18, 0.7);
|
|
background: var(--amb-ok);
|
|
}
|
|
|
|
.anomalous-wf-status.is-warning { background: var(--amb-text-muted); }
|
|
|
|
.anomalous-wf-status.is-missing {
|
|
width: auto;
|
|
height: auto;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
box-shadow: none;
|
|
background: rgba(127, 29, 29, 0.9);
|
|
color: #fecaca;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.anomalous-wf-kind {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
background: rgba(10, 12, 18, 0.78);
|
|
color: #fde68a;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.anomalous-wf-actions {
|
|
position: absolute;
|
|
top: calc(var(--wf-cover-height) - 38px);
|
|
right: 8px;
|
|
display: flex;
|
|
gap: 6px;
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
}
|
|
|
|
.anomalous-wf-card:hover .anomalous-wf-actions,
|
|
.anomalous-wf-card:focus-within .anomalous-wf-actions {
|
|
opacity: 1;
|
|
transform: none;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.anomalous-wf-open,
|
|
.anomalous-wf-more {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
border-radius: 50%;
|
|
background: rgba(15, 20, 30, 0.88);
|
|
color: #f3f4f6;
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.anomalous-wf-open { font-size: 11px; }
|
|
|
|
.anomalous-wf-open:hover,
|
|
.anomalous-wf-more:hover { background: rgba(30, 38, 56, 0.96); }
|
|
.anomalous-wf-open:hover { border-color: var(--amb-link); color: #fff; }
|
|
|
|
.anomalous-wf-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
padding: 10px 12px 10px;
|
|
}
|
|
|
|
.anomalous-wf-title {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
color: var(--amb-text-main);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.anomalous-wf-meta {
|
|
overflow: hidden;
|
|
color: var(--amb-text-muted);
|
|
font-size: 12px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.anomalous-wf-meta:empty { display: none; }
|
|
|
|
.anomalous-wf-extras {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 20px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.anomalous-wf-model {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--amb-text-dim);
|
|
font-size: 11.5px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.anomalous-wf-extras .anomalous-recipe-set-chip { margin-left: auto; }
|
|
|
|
.anomalous-wf-list.is-list .anomalous-wf-card {
|
|
--wf-cover-height: 64px;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
height: 64px;
|
|
}
|
|
|
|
.anomalous-wf-list.is-list .anomalous-wf-cover { flex: 0 0 96px; width: 96px; }
|
|
.anomalous-wf-list.is-list .anomalous-wf-kind { display: none; }
|
|
|
|
.anomalous-wf-list.is-list .anomalous-wf-info {
|
|
flex: 1;
|
|
padding: 6px 90px 6px 14px;
|
|
}
|
|
|
|
.anomalous-wf-list.is-list .anomalous-wf-extras { display: none; }
|
|
|
|
.anomalous-wf-list.is-list .anomalous-wf-actions {
|
|
top: 17px;
|
|
right: 12px;
|
|
}
|
|
|
|
/* Abyssal Scarlet: wine cards, crimson on hover. */
|
|
.theme-abyssal-scarlet .anomalous-wf-card {
|
|
border-color: rgba(220, 20, 60, 0.22);
|
|
background: rgba(18, 10, 26, 0.88);
|
|
}
|
|
|
|
.theme-abyssal-scarlet .anomalous-wf-card:hover,
|
|
.theme-abyssal-scarlet .anomalous-wf-card:focus-within { border-color: #dc143c; }
|
|
|
|
.theme-abyssal-scarlet .anomalous-wf-filter.is-active {
|
|
border-color: #dc143c;
|
|
color: #e0d8db;
|
|
}
|
|
|
|
/* The small menu (ui_popup_menu.js) over the page and its dialogs. */
|
|
.anomalous-popup-menu {
|
|
position: fixed;
|
|
z-index: 1000003;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 168px;
|
|
max-height: 60vh;
|
|
padding: 4px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--amb-border-strong);
|
|
border-radius: var(--amb-radius-card);
|
|
background: var(--amb-bg-panel);
|
|
box-shadow: 0 12px 32px rgba(var(--amb-shadow-rgb), 0.45);
|
|
}
|
|
|
|
.anomalous-popup-menu-heading {
|
|
padding: 6px 10px 2px;
|
|
color: var(--amb-text-dim);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.anomalous-popup-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 7px 10px;
|
|
border: none;
|
|
border-radius: var(--amb-radius-control);
|
|
background: transparent;
|
|
color: var(--amb-text-main);
|
|
font-size: 13px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-popup-menu-item:hover { background: var(--amb-bg-card-hover); }
|
|
.anomalous-popup-menu-item.is-danger { color: var(--amb-danger-text); }
|
|
|
|
.anomalous-popup-menu-tick {
|
|
width: 12px;
|
|
color: var(--amb-link);
|
|
}
|
|
|
|
/* The empty page: what Workflows are for, three steps and Save. */
|
|
.anomalous-recipe-empty-guide {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
max-width: 580px;
|
|
margin: 32px auto;
|
|
padding: 28px 24px;
|
|
box-sizing: border-box;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: 16px;
|
|
background: rgba(var(--amb-ink-rgb), 0.025);
|
|
text-align: center;
|
|
}
|
|
|
|
.anomalous-recipe-empty-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
border: 1px solid color-mix(in srgb, var(--amb-link) 25%, transparent);
|
|
border-radius: 50%;
|
|
background: color-mix(in srgb, var(--amb-link) 10%, transparent);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.anomalous-recipe-empty-title {
|
|
margin: 0;
|
|
color: var(--amb-text-main);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.anomalous-recipe-empty-subtitle {
|
|
max-width: 440px;
|
|
margin: 0;
|
|
color: var(--amb-text-muted);
|
|
font-size: 12.5px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.anomalous-recipe-empty-steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 12px;
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.anomalous-recipe-empty-step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 14px;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: 10px;
|
|
background: rgba(var(--amb-ink-rgb), 0.03);
|
|
}
|
|
|
|
.anomalous-recipe-step-icon { font-size: 20px; line-height: 1; }
|
|
|
|
.anomalous-recipe-empty-step strong {
|
|
color: var(--amb-text-main);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.anomalous-recipe-empty-step p {
|
|
margin: 0;
|
|
color: var(--amb-text-muted);
|
|
font-size: 11.5px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.anomalous-recipe-empty-action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 6px;
|
|
padding: 8px 18px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: var(--amb-btn-primary-bg);
|
|
color: var(--amb-btn-primary-text);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-recipe-empty-action-btn:hover { background: var(--amb-btn-primary-hover); }
|
|
|
|
/* Saving the canvas as a workflow (ui_recipe_save_dialog.js): cover on the left, fields on the right. */
|
|
.anomalous-recipe-dialog.anomalous-wfs-dialog {
|
|
container: wfs / inline-size;
|
|
width: min(760px, 100%);
|
|
gap: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
.anomalous-wfs-head {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 16px 18px 12px;
|
|
border-bottom: 1px solid var(--amb-border);
|
|
}
|
|
|
|
.anomalous-wfs-titles { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
|
|
.anomalous-wfs-titles h3 { margin: 0; font-size: 16px; }
|
|
|
|
.anomalous-wfs-close {
|
|
flex: 0 0 auto;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--amb-text-muted);
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-wfs-close:hover { background: rgba(var(--amb-ink-rgb), 0.08); color: var(--amb-text-main); }
|
|
|
|
.anomalous-wfs-body {
|
|
display: grid;
|
|
flex: 1;
|
|
grid-template-columns: 250px minmax(0, 1fr);
|
|
gap: 18px;
|
|
min-height: 0;
|
|
padding: 16px 18px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.anomalous-wfs-cover-side,
|
|
.anomalous-wfs-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
.anomalous-wfs-fields { gap: 12px; }
|
|
|
|
.anomalous-wfs-cover {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
aspect-ratio: 3 / 2;
|
|
overflow: hidden;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: var(--amb-radius-panel);
|
|
background: var(--amb-bg-sunken);
|
|
}
|
|
|
|
.anomalous-wfs-cover img { width: 100%; height: 100%; object-fit: cover; }
|
|
.anomalous-wfs-cover-empty { color: var(--amb-text-dim); font-size: 12px; }
|
|
|
|
.anomalous-wfs-choices {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.anomalous-wfs-choice {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
aspect-ratio: 1;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: 6px;
|
|
background: var(--amb-bg-sunken);
|
|
color: var(--amb-text-dim);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-wfs-choice img { width: 100%; height: 100%; object-fit: cover; }
|
|
.anomalous-wfs-choice:hover { border-color: var(--amb-border-hover); }
|
|
.anomalous-wfs-choice.is-selected { border-color: var(--amb-link); box-shadow: 0 0 0 1px var(--amb-link); }
|
|
|
|
.anomalous-wfs-field { display: flex; flex-direction: column; gap: 5px; }
|
|
.anomalous-wfs-field textarea { min-height: 84px; resize: vertical; }
|
|
|
|
.anomalous-wfs-label {
|
|
color: var(--amb-text-soft);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.anomalous-wfs-hint {
|
|
margin: 0;
|
|
color: var(--amb-text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.anomalous-wfs-verify {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--amb-border);
|
|
border-radius: var(--amb-radius-panel);
|
|
background: rgba(var(--amb-ink-rgb), 0.03);
|
|
}
|
|
|
|
.anomalous-wfs-dialog .anomalous-wfs-check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
|
|
.anomalous-wfs-check input { margin: 0; }
|
|
|
|
.anomalous-wfs-foot {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 18px;
|
|
border-top: 1px solid var(--amb-border);
|
|
}
|
|
|
|
.anomalous-wfs-foot .anomalous-recipe-dialog-error { flex: 1; }
|
|
|
|
.anomalous-wfs-cancel {
|
|
padding: 7px 16px;
|
|
border: 1px solid var(--amb-border-strong);
|
|
border-radius: var(--amb-radius-control);
|
|
background: transparent;
|
|
color: var(--amb-text-soft);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anomalous-wfs-cancel:hover { color: var(--amb-text-main); }
|
|
|
|
@container wfs (max-width: 560px) {
|
|
.anomalous-wfs-body { grid-template-columns: minmax(0, 1fr); }
|
|
.anomalous-wfs-cover { aspect-ratio: 2 / 1; }
|
|
.anomalous-wfs-choices { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
|
|
}
|
|
|
|
@container (max-width: 540px) {
|
|
.anomalous-wf-bar { flex-wrap: wrap; }
|
|
.anomalous-wf-search { flex-basis: 100%; }
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.anomalous-wf-list.is-list .anomalous-wf-info { padding-right: 14px; }
|
|
.anomalous-wf-list.is-list .anomalous-wf-actions { display: none; }
|
|
} |