Files
openclaw/extensions/qa-lab/web/src/styles.css
2026-04-06 01:03:21 +01:00

597 lines
9.9 KiB
CSS

:root {
color-scheme: dark;
--bg: #091018;
--bg-alt: #121a24;
--panel: rgba(14, 20, 30, 0.9);
--panel-strong: rgba(19, 28, 40, 0.97);
--line: rgba(167, 192, 214, 0.16);
--line-strong: rgba(167, 192, 214, 0.28);
--text: #eef4fc;
--muted: #91a0b2;
--accent: #79e0c6;
--accent-strong: #4dc9aa;
--accent-2: #ffb36f;
--danger: #ff7f8d;
--warning: #ffd36f;
--shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
--radius: 22px;
font-family:
"Avenir Next", "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(circle at top left, rgba(121, 224, 198, 0.18), transparent 28%),
radial-gradient(circle at top right, rgba(255, 179, 111, 0.14), transparent 24%),
linear-gradient(180deg, #081018, #0b121a 58%, #081018);
color: var(--text);
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background-image:
linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
background-size: 24px 24px;
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}
button,
input,
select,
textarea {
font: inherit;
}
button,
input,
select,
textarea {
border-radius: 14px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.03);
color: var(--text);
}
button {
cursor: pointer;
padding: 0.7rem 1rem;
transition:
transform 120ms ease,
border-color 120ms ease,
background 120ms ease;
}
button:hover:not(:disabled) {
transform: translateY(-1px);
border-color: var(--line-strong);
}
button.accent {
background: linear-gradient(135deg, var(--accent), #9ce7d5);
border-color: transparent;
color: #04130f;
font-weight: 700;
}
button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
input,
select,
textarea {
width: 100%;
padding: 0.75rem 0.85rem;
}
textarea {
resize: vertical;
}
.shell {
padding: 1.3rem;
}
.dashboard {
min-height: 100vh;
}
.split-dashboard {
display: grid;
grid-template-columns: minmax(420px, 1.05fr) minmax(680px, 1fr);
gap: 1rem;
padding: 1rem;
}
.qa-column {
min-width: 0;
}
.topbar,
.statusbar,
.workspace {
max-width: 1600px;
margin: 0 auto;
}
.topbar {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: end;
margin-bottom: 1rem;
}
.topbar h1,
.panel h2 {
margin: 0;
}
.topbar h1,
.panel h2,
.panel h3 {
font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
letter-spacing: -0.02em;
}
.eyebrow {
margin: 0 0 0.25rem;
color: #b7f4e3;
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 0.68rem;
}
.subtle {
margin: 0.25rem 0 0;
color: var(--muted);
}
.toolbar {
display: flex;
gap: 0.7rem;
flex-wrap: wrap;
}
.toolbar.lower {
margin-top: 1rem;
}
.statusbar {
display: flex;
gap: 0.65rem;
flex-wrap: wrap;
margin-bottom: 1.1rem;
}
.pill {
padding: 0.45rem 0.75rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--line);
color: var(--muted);
backdrop-filter: blur(8px);
}
.pill.success {
color: var(--accent);
}
.pill.error {
color: var(--danger);
}
.workspace {
display: grid;
grid-template-columns: 280px minmax(0, 1fr) 360px;
gap: 1rem;
}
.rail,
.center,
.right {
display: flex;
flex-direction: column;
gap: 1rem;
min-height: 0;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 1.05rem;
min-height: 0;
backdrop-filter: blur(16px);
}
.control-pane {
display: flex;
flex-direction: column;
min-height: calc(100vh - 2rem);
position: sticky;
top: 1rem;
}
.control-frame {
flex: 1;
width: 100%;
border: 1px solid var(--line);
border-radius: 16px;
background: #0b0f14;
}
.button-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.7rem 1rem;
border-radius: 14px;
border: 1px solid var(--line);
color: var(--text);
text-decoration: none;
background: rgba(255, 255, 255, 0.04);
}
.panel-header {
display: flex;
justify-content: space-between;
gap: 0.7rem;
align-items: center;
margin-bottom: 0.85rem;
}
.stack {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.list-item {
display: flex;
flex-direction: column;
align-items: start;
gap: 0.15rem;
text-align: left;
padding: 0.85rem 0.95rem;
}
.list-item.selected {
background: linear-gradient(180deg, rgba(121, 224, 198, 0.13), rgba(121, 224, 198, 0.06));
border-color: rgba(121, 224, 198, 0.42);
}
.list-item span,
.message footer,
.event-row span {
color: var(--muted);
font-size: 0.82rem;
}
.transcript,
.events {
flex: 1;
}
.messages,
.report {
min-height: 0;
max-height: 50vh;
overflow: auto;
}
.scenario-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
max-height: 32vh;
overflow: auto;
}
.scenario-card {
padding: 0.9rem;
border-radius: 16px;
background: var(--panel-strong);
border: 1px solid rgba(255, 255, 255, 0.07);
}
.scenario-card header,
.scenario-card footer {
display: flex;
gap: 0.55rem;
align-items: center;
justify-content: space-between;
}
.scenario-card p {
margin: 0.55rem 0 0;
color: var(--muted);
}
.scenario-card-button {
width: 100%;
text-align: left;
padding: 1rem;
}
.scenario-card-button.selected {
border-color: rgba(121, 224, 198, 0.42);
background:
linear-gradient(180deg, rgba(121, 224, 198, 0.14), rgba(121, 224, 198, 0.05)),
var(--panel-strong);
}
.scenario-surface {
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.68rem;
color: #bed3eb;
}
.scenario-board {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 0.9rem;
}
.message {
padding: 1rem;
border-radius: 16px;
margin-bottom: 0.8rem;
border: 1px solid rgba(255, 255, 255, 0.05);
background: var(--panel-strong);
}
.message.inbound {
border-left: 3px solid var(--accent-2);
}
.message.outbound {
border-left: 3px solid var(--accent);
}
.message header,
.message footer,
.event-row {
display: flex;
gap: 0.55rem;
align-items: center;
flex-wrap: wrap;
}
.message p {
margin: 0.65rem 0;
white-space: pre-wrap;
}
.composer-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.8rem;
}
.tabbar {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
margin-bottom: 1rem;
}
.tab-button {
padding: 0.72rem 1rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.035);
}
.tab-button.active {
background: linear-gradient(135deg, rgba(121, 224, 198, 0.18), rgba(121, 224, 198, 0.08));
border-color: rgba(121, 224, 198, 0.34);
color: #e9fff9;
}
.status-chip {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.25rem 0.55rem;
border-radius: 999px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.04);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.64rem;
color: var(--muted);
}
.status-pass {
color: var(--accent);
border-color: rgba(121, 224, 198, 0.32);
}
.status-fail {
color: var(--danger);
border-color: rgba(255, 127, 141, 0.3);
}
.status-running {
color: var(--warning);
border-color: rgba(255, 211, 111, 0.3);
}
.status-pending,
.status-idle,
.status-skip {
color: #b9c6d6;
}
.run-grid,
.meta-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
}
.meta-label {
display: block;
margin-bottom: 0.28rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.68rem;
}
.scenario-objective,
.outcome-summary {
color: #d9e3ef;
line-height: 1.6;
}
.inspector-section + .inspector-section {
margin-top: 1.15rem;
}
.criteria-list {
margin: 0;
padding-left: 1.1rem;
color: #dbe5f0;
}
.criteria-list li + li {
margin-top: 0.45rem;
}
.step-list {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.step-card {
padding: 0.85rem;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.025);
}
.step-card header {
display: flex;
justify-content: space-between;
gap: 0.7rem;
align-items: center;
margin-bottom: 0.55rem;
}
.step-details {
margin: 0;
padding: 0.75rem;
border-radius: 14px;
background: rgba(6, 10, 16, 0.74);
border: 1px solid rgba(255, 255, 255, 0.06);
white-space: pre-wrap;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.78rem;
line-height: 1.5;
}
.ref-grid {
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.ref-grid code {
display: block;
padding: 0.65rem 0.75rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
color: #dce6f4;
white-space: pre-wrap;
word-break: break-word;
}
.kickoff-report {
margin-bottom: 1rem;
max-height: 16rem;
}
label span {
display: block;
margin-bottom: 0.35rem;
color: var(--muted);
font-size: 0.84rem;
}
.textarea-label {
display: block;
margin-top: 0.85rem;
}
@media (max-width: 1280px) {
.split-dashboard {
grid-template-columns: 1fr;
}
.control-pane {
min-height: 70vh;
position: static;
}
}
.lower {
margin-top: 0.85rem;
}
.report {
margin: 0;
padding: 0.8rem;
border-radius: 16px;
background: rgba(7, 10, 14, 0.7);
border: 1px solid rgba(255, 255, 255, 0.04);
white-space: pre-wrap;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.78rem;
line-height: 1.45;
}
.event-row {
padding: 0.75rem;
border-radius: 14px;
background: rgba(255, 255, 255, 0.03);
}
.event-row code {
display: block;
width: 100%;
color: #c7d2e3;
white-space: pre-wrap;
word-break: break-word;
}
.empty {
color: var(--muted);
}
@media (max-width: 1180px) {
.workspace {
grid-template-columns: 1fr;
}
.messages,
.report {
max-height: none;
}
}