Every page in both languages, all themes and at 480: - Give the window its own text colour: text with none took ComfyUI's, white on the light theme (Tidy headings and file names, the site chip). - Keep a task's link chip in its row, its x in reach, and colour the next-task chip. - Let choices in Settings wrap, the Models search shrink, and a workflow's preset row go to two lines. - Add --amb-on-link for text on the accent: pale in the dark themes, so white was hard to read. - Lists and colons follow the language (listSeparator, wordColon); tests/words_in_language.mjs keeps it so. - Right plurals in English, "AI" on the rail, one line left in Chinese translated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
134 lines
7.4 KiB
CSS
134 lines
7.4 KiB
CSS
/* A task's decisions (ui_ai_decisions.js): the card of one the AI recorded on the timeline, and
|
|
the side column's list of all of them. Also the tasks it goes on from and in (ui_ai_task_links.js). */
|
|
|
|
.anomalous-ai-step.is-decision { --kind: #e0a63c; }
|
|
|
|
.anomalous-ai-decision {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
margin-top: 4px;
|
|
padding: 10px 12px;
|
|
border: 1px solid color-mix(in srgb, #e0a63c 40%, transparent);
|
|
border-left: 3px solid #e0a63c;
|
|
border-radius: 0 10px 10px 0;
|
|
background: color-mix(in srgb, #e0a63c 8%, transparent);
|
|
}
|
|
.anomalous-ai-decision-head { display: flex; align-items: center; gap: 7px; color: #e0a63c; }
|
|
.anomalous-ai-decision-title { flex: 1; min-width: 0; color: var(--amb-text-soft); font-size: 12.5px; font-weight: 600; }
|
|
.anomalous-ai-decision-text { color: var(--amb-text-main); font-size: 14px; font-weight: 650; line-height: 1.5; white-space: pre-wrap; }
|
|
.anomalous-ai-decision-why { color: var(--amb-text-soft); font-size: 12.5px; line-height: 1.5; }
|
|
.anomalous-ai-decision-not { color: var(--amb-text-dim); font-size: 12px; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--amb-text-dim) 50%, transparent); }
|
|
.anomalous-ai-decision-by {
|
|
flex: none;
|
|
padding: 0 7px;
|
|
border-radius: 999px;
|
|
background: rgba(var(--amb-ink-rgb), 0.08);
|
|
color: var(--amb-text-soft);
|
|
font-size: 11px;
|
|
line-height: 18px;
|
|
}
|
|
.anomalous-ai-decision-by.is-user { background: color-mix(in srgb, var(--amb-link) 16%, transparent); color: var(--amb-link); }
|
|
.anomalous-ai-decision-by.is-together { background: color-mix(in srgb, var(--amb-ok) 16%, transparent); color: var(--amb-ok-text, var(--amb-ok)); }
|
|
.anomalous-ai-decision-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--amb-text-dim); font-size: 11.5px; }
|
|
.anomalous-ai-decision-link { padding: 0; border: 0; background: none; color: var(--amb-link); font: inherit; font-size: 12px; cursor: pointer; }
|
|
.anomalous-ai-decision-link:hover { text-decoration: underline; }
|
|
|
|
.anomalous-ai-decisions { display: flex; flex-direction: column; gap: 4px; }
|
|
.anomalous-ai-decisions-gap {
|
|
margin-bottom: 8px;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
background: rgba(var(--amb-ink-rgb), 0.05);
|
|
color: var(--amb-text-soft);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
.anomalous-ai-decisions-none { line-height: 1.7; text-align: left; }
|
|
.anomalous-ai-decisions-row { display: flex; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--amb-border); }
|
|
.anomalous-ai-decisions-row:last-child { border-bottom: 0; }
|
|
.anomalous-ai-decisions-mark {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 50%;
|
|
background: rgba(var(--amb-ink-rgb), 0.06);
|
|
color: var(--amb-text-soft);
|
|
}
|
|
.anomalous-ai-decisions-row.is-logged .anomalous-ai-decisions-mark { background: color-mix(in srgb, #e0a63c 18%, transparent); color: #e0a63c; }
|
|
.anomalous-ai-decisions-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
|
|
.anomalous-ai-decisions-top { display: flex; align-items: center; gap: 8px; }
|
|
.anomalous-ai-decisions-title { flex: 1; min-width: 0; overflow: hidden; color: var(--amb-text-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.anomalous-ai-decisions-words { color: var(--amb-text-main); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
|
|
|
|
/* Under a task's title: the task it goes on from, those going on from it, or a way to link one. */
|
|
.anomalous-ai-task-links { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.anomalous-ai-task-links:empty { display: none; }
|
|
.anomalous-ai-task-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
max-width: 320px;
|
|
border: 1px solid color-mix(in srgb, var(--amb-link) 40%, transparent);
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--amb-link) 8%, transparent);
|
|
color: var(--amb-link);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
}
|
|
.anomalous-ai-task-link-go, .anomalous-ai-task-link.is-next {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
padding: 3px 10px;
|
|
border: 0;
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.anomalous-ai-task-link.is-next { border: 1px solid color-mix(in srgb, var(--amb-link) 40%, transparent); color: var(--amb-link); font-size: 12px; } /* they are the chips: not the header's size */
|
|
.anomalous-ai-task-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.anomalous-ai-task-link-go:hover span, .anomalous-ai-task-link.is-next:hover span { text-decoration: underline; }
|
|
.anomalous-ai-task-link-x { display: inline-flex; flex: none; margin-right: 4px; padding: 3px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
|
|
.anomalous-ai-task-link-x:hover { background: color-mix(in srgb, var(--amb-link) 18%, transparent); }
|
|
.anomalous-ai-task-links-menu {
|
|
position: fixed;
|
|
z-index: 1000003;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(340px, 90vw);
|
|
max-height: 320px;
|
|
padding: 6px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--amb-border-strong, var(--amb-border));
|
|
border-radius: 10px;
|
|
background: var(--amb-bg-panel);
|
|
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
|
|
}
|
|
.anomalous-ai-task-links-menu-head { padding: 4px 8px 6px; color: var(--amb-text-dim); font-size: 11.5px; }
|
|
.anomalous-ai-task-links-pick { display: flex; align-items: baseline; gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--amb-text-main); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
|
|
.anomalous-ai-task-links-pick:hover { background: color-mix(in srgb, var(--amb-link) 16%, transparent); }
|
|
.anomalous-ai-task-links-pick-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.anomalous-ai-task-links-pick-when { flex: none; color: var(--amb-text-dim); font-size: 11.5px; }
|
|
|
|
/* The task list: those going on from a task hang under it, one step in however long the line. */
|
|
.anomalous-ai-task-item { position: relative; display: flex; flex-direction: column; }
|
|
.anomalous-ai-task-item.is-child { margin-left: 18px; }
|
|
.anomalous-ai-task-item.is-child::before { content: ""; position: absolute; top: -3px; bottom: 0; left: -9px; width: 1px; background: var(--amb-border-strong); }
|
|
.anomalous-ai-task-family { flex: none; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--amb-link) 14%, transparent); color: var(--amb-link); font-size: 11px; line-height: 17px; }
|
|
|
|
/* Each task's more button: on the task the pointer is on, and always on the one shown. */
|
|
.anomalous-ai-task-more { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--amb-text-soft); font: inherit; font-size: 15px; line-height: 24px; cursor: pointer; opacity: 0; }
|
|
.anomalous-ai-task-more:hover { background: rgba(var(--amb-ink-rgb), 0.1); color: var(--amb-text-main); }
|
|
.anomalous-ai-task-item:is(:hover, :focus-within, .is-current) .anomalous-ai-task-more { opacity: 1; }
|
|
.anomalous-ai-task-item:is(:hover, :focus-within, .is-current) .anomalous-ai-task-row-top { padding-right: 24px; }
|
|
@media (hover: none) {
|
|
.anomalous-ai-task-more { opacity: 1; }
|
|
.anomalous-ai-task-row-top { padding-right: 24px; }
|
|
}
|