init
This commit is contained in:
247
web-ui/src/styles.css
Normal file
247
web-ui/src/styles.css
Normal file
@@ -0,0 +1,247 @@
|
||||
:root {
|
||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
||||
color: #111827;
|
||||
background: #fff;
|
||||
font-synthesis: none;
|
||||
--blue: #0f5df5;
|
||||
--blue-soft: #f2f7ff;
|
||||
--muted: #667085;
|
||||
--line: #e8edf5;
|
||||
--green: #087d41;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 0; min-height: 100vh; }
|
||||
button, input, textarea { font: inherit; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
|
||||
.app-shell { min-height: 100vh; display: flex; background: #fff; }
|
||||
.rail { width: 84px; flex: 0 0 84px; height: 100vh; position: sticky; top: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 20px 10px; gap: 18px; }
|
||||
.brand { width: 46px; height: 46px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
|
||||
.brand svg { width: 24px; }
|
||||
.rail a { width: 64px; height: 66px; border-radius: 9px; color: #405170; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 15px; }
|
||||
.rail a svg { width: 24px; height: 24px; }
|
||||
.rail a.active { background: var(--blue); color: #fff; }
|
||||
.rail .brand + a { margin-top: 6px; }
|
||||
|
||||
.project-list { width: 276px; flex: 0 0 276px; height: 100vh; position: sticky; top: 0; overflow-y: auto; border-right: 1px solid var(--line); padding: 24px 16px; background: #fff; }
|
||||
.aside-title { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
|
||||
.aside-title h2 { font-size: 20px; margin: 0; }
|
||||
.icon-button { width: 32px; height: 32px; border: 1px solid #9aa8bd; border-radius: 50%; background: #fff; color: #395277; font-size: 23px; line-height: 27px; cursor: pointer; }
|
||||
.aside-label { margin: 32px 12px 12px; color: #596883; font-size: 14px; }
|
||||
.project-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-radius: 8px; margin-bottom: 7px; }
|
||||
.project-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||
.project-item time { color: #697794; font-size: 13px; }
|
||||
.project-item.selected { background: #edf4ff; color: var(--blue); }
|
||||
.aside-empty { padding: 20px 12px; color: #98a2b3; }
|
||||
.main-view { min-width: 0; flex: 1; }
|
||||
|
||||
.project-page { min-height: 100vh; display: flex; flex-direction: column; }
|
||||
.page-header { height: 80px; flex: 0 0 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: rgba(255,255,255,.95); position: sticky; top: 0; z-index: 3; }
|
||||
.page-heading, .run-actions { display: flex; align-items: center; gap: 12px; }
|
||||
.page-header h1 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
|
||||
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid #cfd7e4; border-radius: 6px; color: #52617b; font-size: 14px; font-weight: 500; white-space: nowrap; }
|
||||
.tag.blue { color: var(--blue); border-color: #9dbdff; }
|
||||
.tag.green { color: var(--green); border-color: #9be0bd; }
|
||||
.work-scroll { width: min(920px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 72px; }
|
||||
.history-loading { margin-top: 24vh; text-align: center; color: var(--muted); }
|
||||
|
||||
.material-start { width: 640px; max-width: 100%; margin: 10vh auto 0; }
|
||||
.material-start h2 { font-size: 24px; margin: 0 0 24px; }
|
||||
.upload-box .el-upload-dragger { border: 1px dashed #a9b8cf; background: #fbfdff; padding: 44px; }
|
||||
.upload-box .el-icon { color: var(--blue); font-size: 34px; }
|
||||
.upload-box p { margin: 14px 0 4px; font-size: 16px; }
|
||||
.upload-box small { color: #8995a8; }
|
||||
.folder-upload { display: flex; justify-content: center; margin-top: 12px; }
|
||||
.folder-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
||||
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
|
||||
.file-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
|
||||
.file-chips svg { width: 16px; color: var(--blue); }
|
||||
.file-chips > small { align-self: center; color: var(--muted); }
|
||||
|
||||
.timeline { display: flex; flex-direction: column; gap: 12px; }
|
||||
.load-earlier { align-self: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 16px; }
|
||||
.load-earlier:hover, .load-earlier:focus-visible { color: var(--primary); }
|
||||
.flow-row { min-width: 0; content-visibility: auto; contain-intrinsic-size: 54px; }
|
||||
.flow-message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin: 0; }
|
||||
.flow-message > .flow-content { grid-column: 2; }
|
||||
.flow-tool, .flow-reasoning, .flow-notice { position: relative; padding-left: 54px; }
|
||||
.agent-avatar { width: 38px; height: 38px; border-radius: 11px; background: #edf4ff; color: var(--blue); display: grid; place-items: center; }
|
||||
.agent-avatar svg { width: 21px; height: 21px; stroke-width: 1.8; }
|
||||
.flow-content { min-width: 0; }
|
||||
.flow-meta { display: flex; gap: 10px; align-items: baseline; margin: 1px 0 8px; }
|
||||
.flow-meta time { color: #6c7b95; font-size: 13px; }
|
||||
.agent-markdown { min-width: 0; color: #253247; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
|
||||
.agent-markdown > :first-child { margin-top: 0; }
|
||||
.agent-markdown > :last-child { margin-bottom: 0; }
|
||||
.agent-markdown p.paragraph-node { margin: 0; }
|
||||
.agent-markdown > .node-slot + .node-slot { margin-top: 12px; }
|
||||
.agent-markdown h1, .agent-markdown h2, .agent-markdown h3 { margin: 20px 0 10px; line-height: 1.35; color: #182235; }
|
||||
.agent-markdown h1 { font-size: 21px; }
|
||||
.agent-markdown h2 { font-size: 18px; }
|
||||
.agent-markdown h3 { font-size: 16px; }
|
||||
.agent-markdown ul, .agent-markdown ol { margin: 8px 0 12px; padding-left: 24px; }
|
||||
.agent-markdown li + li { margin-top: 4px; }
|
||||
.agent-markdown blockquote { margin: 12px 0; padding-left: 14px; border-left: 2px solid #d8e0eb; color: #5d687b; }
|
||||
.agent-markdown code { padding: 2px 5px; border-radius: 4px; background: #f2f4f7; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
||||
.agent-markdown pre { margin: 12px 0; padding: 14px 16px; overflow-x: auto; border-radius: 7px; background: #f5f7fa; }
|
||||
.agent-markdown pre code { padding: 0; background: transparent; }
|
||||
.agent-markdown a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
|
||||
.agent-markdown table { display: block; max-width: 100%; margin: 12px 0; overflow-x: auto; border-collapse: collapse; }
|
||||
.agent-markdown th, .agent-markdown td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
|
||||
.activity-row { color: #778195; font-size: 13px; border: 0; }
|
||||
.activity-row summary { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; list-style: none; }
|
||||
.activity-row summary::-webkit-details-marker { display: none; }
|
||||
.activity-row summary::after { content: "›"; margin-left: 2px; color: #a1a9b7; transition: transform .16s ease; }
|
||||
.activity-row[open] summary::after { transform: rotate(90deg); }
|
||||
.activity-row summary > svg { width: 15px; height: 15px; flex: 0 0 15px; color: currentColor; stroke-width: 1.8; }
|
||||
.activity-row p { margin: 6px 0 2px 23px; color: #647084; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
|
||||
.activity-row.failed { color: #b54747; }
|
||||
.activity-row.active summary span { color: transparent; background: linear-gradient(90deg, #8d96a6 25%, #3f83ed 50%, #8d96a6 75%); background-size: 220% 100%; background-clip: text; animation: activity-shimmer 1.7s linear infinite; }
|
||||
.view-image-strip { display: flex; flex-wrap: nowrap; gap: 10px; margin: 8px 0 4px 23px; overflow-x: auto; padding: 0 0 8px; }
|
||||
.view-image-item { flex: 0 0 168px; min-width: 0; padding: 0; border: 0; color: #657187; background: transparent; text-align: left; cursor: zoom-in; }
|
||||
.view-image-item:focus-visible { border-radius: 7px; outline: 2px solid var(--blue); outline-offset: 3px; }
|
||||
.view-image-strip img { display: block; width: 168px; height: 98px; object-fit: cover; border-radius: 7px; background: #f4f6f8; }
|
||||
.view-image-strip span { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
|
||||
.finalizing-row { margin-left: 54px; color: #778195; font-size: 13px; }
|
||||
.finalizing-row span { color: transparent; background: linear-gradient(90deg, #8d96a6 25%, #3f83ed 50%, #8d96a6 75%); background-size: 220% 100%; background-clip: text; animation: activity-shimmer 1.7s linear infinite; }
|
||||
@keyframes activity-shimmer { to { background-position: -220% 0; } }
|
||||
@media (prefers-reduced-motion: reduce) { .activity-row.active summary span, .finalizing-row span { color: inherit; background: none; animation: none; } }
|
||||
.notice-row { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 8px; background: #f6f9ff; }
|
||||
.notice-row svg { width: 18px; }
|
||||
.notice-row.success { color: #087d41; }
|
||||
.notice-row.error { color: #c53131; background: #fff7f7; }
|
||||
.notice-row.info { color: #45658f; background: #f7f9fc; }
|
||||
.pending { opacity: .9; }
|
||||
|
||||
.ask-card { width: 700px; max-width: calc(100% - 60px); margin: 28px 0 0 60px; padding: 22px; border-radius: 9px; background: #f6f9ff; box-shadow: inset 0 0 0 1px #d7e4fb; }
|
||||
.ask-card h3 { color: var(--blue); margin: 0 0 5px; font-size: 20px; }
|
||||
.ask-card > p { color: #697794; margin: 0 0 16px; font-size: 14px; }
|
||||
.plan-fields { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #dce4ef; }
|
||||
.plan-fields label { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
|
||||
.plan-fields label:last-child { border: 0; }
|
||||
.plan-fields label > span { padding-left: 16px; }
|
||||
.plan-fields .el-input__wrapper { box-shadow: none; }
|
||||
.plan-fields .el-input-number { width: 100%; }
|
||||
.plan-fields .el-input-number .el-input__wrapper { box-shadow: none; }
|
||||
.plan-summary { margin: 12px 0 16px; padding: 11px 14px; border-radius: 6px; color: #4b6188; background: #eaf2ff; }
|
||||
.plan-note { display: block; margin-bottom: 16px; }
|
||||
.plan-note > span { display: block; margin-bottom: 8px; color: #53617b; font-size: 14px; }
|
||||
.ask-actions { display: flex; gap: 8px; }
|
||||
.material-items { margin-bottom: 16px; overflow: hidden; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #dce4ef; }
|
||||
.material-item { min-height: 72px; display: grid; grid-template-columns: minmax(180px, 1fr) 190px 58px; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
|
||||
.material-item:last-child { border-bottom: 0; }
|
||||
.material-item > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
|
||||
.material-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.material-item small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.material-item small.field-error { color: #b42318; }
|
||||
.material-upload { color: var(--blue); cursor: pointer; text-align: center; }
|
||||
.material-upload.busy { color: var(--muted); }
|
||||
.material-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
||||
.material-clear { margin: 0; padding: 16px; color: var(--green); }
|
||||
.material-more { width: 100%; padding: 11px; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--blue); cursor: pointer; }
|
||||
.material-upload:focus-within, .material-more:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
|
||||
.artifact-card { margin: 28px 0 min(28vh, 280px) 60px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px #dce4ef; }
|
||||
.artifact-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
|
||||
.artifact-row:last-child { border: 0; }
|
||||
.artifact-row > svg { width: 25px; color: var(--blue); }
|
||||
.artifact-row div { display: flex; flex-direction: column; gap: 4px; }
|
||||
.artifact-row small { color: #7b879b; }
|
||||
.artifact-row a { color: var(--blue); }
|
||||
.stream-error { display: block; border: 0; background: transparent; color: #c53131; margin: 24px auto; cursor: pointer; }
|
||||
.retry-button { display: block; margin: 28px auto 0; }
|
||||
.back-to-bottom { position: fixed; right: 32px; bottom: 28px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 6px 22px rgba(29, 58, 111, .14); cursor: pointer; }
|
||||
.back-to-bottom:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
||||
.empty-main { display: grid; place-items: center; min-height: 100vh; color: #8995a8; }
|
||||
|
||||
.settings-page { min-height: 100vh; padding: 28px 42px; }
|
||||
.settings-page > header h1 { margin: 0; font-size: 28px; }
|
||||
.settings-page > header p { color: #5f6d86; margin: 10px 0 0; }
|
||||
.settings-grid { display: grid; grid-template-columns: 380px minmax(520px, 1fr); margin-top: 38px; min-height: 740px; }
|
||||
.settings-list { padding-right: 28px; border-right: 1px solid var(--line); }
|
||||
.settings-list h2, .skill-list h2 { font-size: 18px; margin: 0 0 18px; }
|
||||
.settings-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 18px 16px; border: 0; border-radius: 7px; background: #fff; cursor: pointer; }
|
||||
.settings-list button.selected { background: #edf4ff; color: var(--blue); }
|
||||
.settings-list button strong, .settings-list button span { grid-column: 1; }
|
||||
.settings-list button span { margin-top: 8px; color: #5f6d86; }
|
||||
.settings-list button small { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--green); }
|
||||
.settings-list button i, .skill-list button > i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
|
||||
.settings-form { padding-left: 28px; }
|
||||
.form-title { height: 62px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
|
||||
.form-title h2 { margin: 0; font-size: 22px; }
|
||||
.settings-form > label { display: grid; grid-template-columns: 170px minmax(320px, 1fr); align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); }
|
||||
.capability-row { display: grid; grid-template-columns: 170px 1fr; min-height: 88px; align-items: center; border-bottom: 1px solid var(--line); }
|
||||
.capability-row div { display: flex; gap: 8px; }
|
||||
.capability-row b { padding: 6px 10px; border: 1px solid #d3dbe7; border-radius: 5px; font-size: 13px; font-weight: 500; }
|
||||
.model-actions { display: flex; align-items: center; gap: 16px; padding-top: 28px; }
|
||||
.connection-ok { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
|
||||
.connection-ok svg { width: 18px; }
|
||||
|
||||
.skills-header { display: flex; justify-content: space-between; align-items: start; }
|
||||
.import-skill-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff; cursor: pointer; }
|
||||
.import-skill-trigger:hover, .skills-header .el-upload:focus-visible .import-skill-trigger { border-color: var(--primary); color: var(--primary); }
|
||||
.skill-grid { display: grid; grid-template-columns: 480px minmax(540px, 1fr); margin-top: 24px; min-height: 780px; }
|
||||
.skill-list { border-right: 1px solid var(--line); padding-right: 16px; overflow-y: auto; max-height: calc(100vh - 150px); }
|
||||
.skill-item { min-height: 84px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }
|
||||
.skill-item.selected { background: #edf4ff; }
|
||||
.skill-select { min-width: 0; min-height: 84px; display: grid; grid-template-columns: minmax(0, 1fr) 52px 54px; align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; padding: 14px; cursor: pointer; }
|
||||
.skill-select > span { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
|
||||
.skill-select strong, .skill-select span > small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||
.skill-select strong { color: #1f2a3d; }
|
||||
.skill-select span > small { color: #667085; font-size: 13px; }
|
||||
.skill-select > i { color: var(--green); font-style: normal; white-space: nowrap; }
|
||||
.skill-select > i::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; }
|
||||
.skill-detail { padding-left: 28px; }
|
||||
.skill-title { min-height: 72px; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
|
||||
.skill-title > div { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
|
||||
.skill-title h2 { margin: 0 6px 0 0; font-size: 24px; }
|
||||
.skill-detail pre { min-height: 450px; max-height: calc(100vh - 280px); overflow: auto; white-space: pre-wrap; margin: 8px 0 0; padding: 22px; border-radius: 7px; background: #fafbfd; color: #293752; line-height: 1.7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; box-shadow: inset 0 0 0 1px #e1e7f0; }
|
||||
.resource-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.resource-list span { padding: 12px; border-bottom: 1px solid var(--line); }
|
||||
.validation-ok { color: var(--green); }
|
||||
|
||||
.login-page { min-height: 100vh; display: grid; place-items: center; background: #f8faff; }
|
||||
.login-panel { width: 360px; padding: 36px; display: flex; flex-direction: column; gap: 16px; border-radius: 14px; background: #fff; box-shadow: 0 12px 44px rgba(34, 64, 120, .08); }
|
||||
.login-panel .brand.large { margin: 0 auto; }
|
||||
.login-panel h1 { margin: 4px 0 10px; text-align: center; font-size: 24px; }
|
||||
.full-button { width: 100%; }
|
||||
.form-error { color: #c53131; font-size: 13px; margin: 0; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
|
||||
.el-button--primary { --el-button-bg-color: var(--blue); --el-button-border-color: var(--blue); }
|
||||
.el-input__wrapper, .el-textarea__inner { box-shadow: inset 0 0 0 1px #d9e0ea; }
|
||||
.el-dialog { border-radius: 12px; }
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.project-list { width: 240px; flex-basis: 240px; }
|
||||
.settings-page { padding-left: 28px; padding-right: 28px; }
|
||||
.settings-grid { grid-template-columns: 310px 1fr; }
|
||||
.skill-grid { grid-template-columns: 390px 1fr; }
|
||||
.skill-title { min-height: 100px; }
|
||||
.skill-title > div { align-items: flex-start; flex-wrap: wrap; }
|
||||
.skill-title h2 { flex-basis: 100%; font-size: 21px; overflow-wrap: anywhere; }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.rail { width: 64px; flex-basis: 64px; padding-left: 0; padding-right: 0; }
|
||||
.rail a { width: 52px; font-size: 12px; }
|
||||
.project-list { width: 190px; flex-basis: 190px; padding: 20px 10px; }
|
||||
.work-scroll { width: calc(100% - 32px); }
|
||||
.page-header { padding: 0 16px; }
|
||||
.page-header h1 { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
|
||||
.ask-card, .artifact-card { max-width: 100%; margin-left: 0; }
|
||||
.flow-tool, .flow-reasoning, .flow-notice { padding-left: 28px; }
|
||||
.flow-tool::before, .flow-reasoning::before { left: 7px; }
|
||||
.flow-tool::after, .flow-reasoning::after { left: 4px; }
|
||||
.material-item { grid-template-columns: 1fr 160px; }
|
||||
.material-upload { grid-column: 2; }
|
||||
.settings-page { padding: 24px 16px; }
|
||||
.settings-grid, .skill-grid { grid-template-columns: 1fr; }
|
||||
.settings-list, .skill-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
|
||||
.settings-form, .skill-detail { padding: 24px 0 0; }
|
||||
.settings-form > label, .capability-row { grid-template-columns: 130px 1fr; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
||||
}
|
||||
Reference in New Issue
Block a user