a2a-source-edit: write frontend/src/style.css
This commit is contained in:
@@ -1,244 +1,69 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
color-scheme: light;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background: #090909;
|
||||
color: #f5f5f5;
|
||||
background: #f6f4ef;
|
||||
color: #17201b;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #e8fff5, #f6f4ef 34%, #fffaf0); }
|
||||
button, input { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
code { background: #eef3ee; border-radius: 6px; padding: 2px 5px; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: #090909;
|
||||
}
|
||||
.loading { min-height: 100vh; display: grid; place-items: center; color: #59655e; }
|
||||
.studio-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; display: grid; gap: 18px; }
|
||||
.hero { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 24px; align-items: end; padding: 26px; border: 1px solid #dbe5d8; border-radius: 28px; background: rgba(255,255,255,0.72); box-shadow: 0 24px 70px rgba(32, 64, 48, 0.10); }
|
||||
.eyebrow { margin: 0 0 10px; color: #0f7b58; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
|
||||
h1, h2, p { margin-top: 0; }
|
||||
h1 { max-width: 780px; margin-bottom: 14px; font-size: clamp(38px, 7vw, 78px); line-height: .92; letter-spacing: -0.06em; }
|
||||
h2 { margin-bottom: 10px; font-size: 24px; letter-spacing: -0.03em; }
|
||||
.lede { max-width: 760px; margin-bottom: 0; color: #526158; font-size: 18px; line-height: 1.55; }
|
||||
.session-card { border: 1px solid #dce6d9; border-radius: 20px; padding: 18px; background: #fff; display: grid; gap: 8px; color: #5d675f; }
|
||||
.session-card strong { color: #17201b; overflow-wrap: anywhere; }
|
||||
|
||||
button,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
.panel { border: 1px solid #dde6da; border-radius: 24px; background: rgba(255,255,255,.86); padding: 22px; box-shadow: 0 18px 50px rgba(32, 64, 48, 0.08); }
|
||||
.workflow { display: grid; gap: 18px; }
|
||||
.controls-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 14px; }
|
||||
label { display: grid; gap: 7px; color: #405047; font-weight: 700; }
|
||||
input { width: 100%; border: 1px solid #cfdacf; border-radius: 12px; background: #fff; color: #17201b; padding: 11px 12px; }
|
||||
input:focus { outline: 3px solid #b7ebd8; border-color: #18966b; }
|
||||
.hint { margin: 0; color: #5d675f; }
|
||||
.warning { color: #9d4a13; font-weight: 800; }
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
.quote-table { display: grid; gap: 8px; overflow-x: auto; }
|
||||
.quote-row { min-width: 860px; display: grid; grid-template-columns: 1.5fr .8fr .65fr .8fr .9fr auto; gap: 8px; align-items: center; }
|
||||
.quote-head { color: #66756c; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
|
||||
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.button { border: 0; border-radius: 999px; background: #116b4f; color: #fff; padding: 12px 18px; font-weight: 900; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
|
||||
.button:hover { background: #0b513b; }
|
||||
.button:disabled { opacity: .55; cursor: not-allowed; }
|
||||
.secondary { border: 1px solid #cbd8cd; background: #fff; color: #174535; }
|
||||
.secondary:hover { background: #eff8f3; }
|
||||
.ghost { border: 0; background: transparent; color: #8b3c26; font-weight: 800; padding: 8px; }
|
||||
|
||||
.loading {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #b8b8b8;
|
||||
}
|
||||
.upload-panel { display: grid; grid-template-columns: 1fr minmax(220px, 360px) auto; gap: 16px; align-items: center; }
|
||||
.upload-panel p { margin-bottom: 0; color: #526158; line-height: 1.5; }
|
||||
.status { border-radius: 18px; background: #17201b; color: #eafff5; padding: 14px 18px; font-weight: 800; }
|
||||
.empty-state { color: #526158; }
|
||||
.empty-state p { margin-bottom: 0; }
|
||||
.result { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 18px; }
|
||||
.error-result { display: block; border-color: #f0c7b7; background: #fff8f4; }
|
||||
.error-result p { color: #70331e; }
|
||||
.error-result li { margin: 6px 0; }
|
||||
.recommendation { border-radius: 20px; background: linear-gradient(145deg, #0f7b58, #123f31); color: white; padding: 22px; }
|
||||
.recommendation h2 { font-size: 36px; margin-bottom: 10px; }
|
||||
.recommendation .eyebrow { color: #baf4df; }
|
||||
.recommendation p { color: #e7fff4; line-height: 1.5; }
|
||||
.recommendation small { color: #bfe8d8; overflow-wrap: anywhere; }
|
||||
.ranking { display: grid; gap: 10px; }
|
||||
.rank-card { border: 1px solid #dce6d9; border-radius: 18px; background: #fff; padding: 16px; display: grid; gap: 6px; }
|
||||
.rank-card strong { font-size: 18px; }
|
||||
.rank-card span { color: #526158; }
|
||||
|
||||
.app-shell {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 340px) 1fr;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
min-height: 100vh;
|
||||
border-right: 1px solid #222;
|
||||
background: #0d0d0d;
|
||||
padding: 28px;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 10px;
|
||||
color: #8bd8c6;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 10px;
|
||||
font-size: clamp(32px, 5vw, 56px);
|
||||
line-height: 0.95;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 0;
|
||||
font-size: 30px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: 12px;
|
||||
color: #d7d7d7;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.agent-meta {
|
||||
margin-bottom: 0;
|
||||
color: #a6a6a6;
|
||||
}
|
||||
|
||||
.skill-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.skill {
|
||||
width: 100%;
|
||||
min-height: 58px;
|
||||
border: 1px solid #252525;
|
||||
border-radius: 8px;
|
||||
background: #121212;
|
||||
color: #f3f3f3;
|
||||
padding: 12px 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.skill:hover,
|
||||
.skill.active {
|
||||
border-color: #5bb7a7;
|
||||
background: #15201d;
|
||||
}
|
||||
|
||||
.skill span {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.skill small {
|
||||
color: #9d9d9d;
|
||||
}
|
||||
|
||||
.session {
|
||||
border: 1px solid #252525;
|
||||
border-radius: 8px;
|
||||
padding: 14px;
|
||||
color: #a6a6a6;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.session strong {
|
||||
color: #f3f3f3;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.workbench {
|
||||
padding: 28px;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.toolbar a,
|
||||
.runner button {
|
||||
border: 1px solid #e8e8e8;
|
||||
border-radius: 7px;
|
||||
background: #f4f4f4;
|
||||
color: #111;
|
||||
padding: 10px 14px;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.runner {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.runner label {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
color: #d7d7d7;
|
||||
}
|
||||
|
||||
.runner textarea {
|
||||
width: 100%;
|
||||
min-height: 170px;
|
||||
resize: vertical;
|
||||
border: 1px solid #252525;
|
||||
border-radius: 8px;
|
||||
background: #070707;
|
||||
color: #eeeeee;
|
||||
padding: 14px;
|
||||
line-height: 1.5;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
||||
}
|
||||
|
||||
.runner button {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.runner button:disabled {
|
||||
cursor: wait;
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.panels {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
min-width: 0;
|
||||
border: 1px solid #252525;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
background: #0d0d0d;
|
||||
}
|
||||
|
||||
pre {
|
||||
min-height: 260px;
|
||||
max-height: 420px;
|
||||
margin: 0;
|
||||
overflow: auto;
|
||||
color: #dcdcdc;
|
||||
line-height: 1.5;
|
||||
font-size: 13px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.app-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
min-height: auto;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid #222;
|
||||
}
|
||||
|
||||
.panels {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
@media (max-width: 880px) {
|
||||
.hero, .controls-grid, .upload-panel, .result { grid-template-columns: 1fr; }
|
||||
.studio-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
|
||||
.hero { padding: 20px; border-radius: 22px; }
|
||||
h1 { font-size: clamp(36px, 14vw, 58px); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user