a2a-source-edit: write frontend/src/style.css
This commit is contained in:
@@ -1,244 +1,94 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
color: #172033;
|
||||
background: #f3f6fb;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background: #090909;
|
||||
color: #f5f5f5;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: #090909;
|
||||
}
|
||||
|
||||
button,
|
||||
textarea {
|
||||
font: inherit;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 320px; min-height: 100vh; }
|
||||
button, input { font: inherit; }
|
||||
button {
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
background: #2458d3;
|
||||
color: white;
|
||||
padding: 0.75rem 1rem;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.loading {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #b8b8b8;
|
||||
}
|
||||
|
||||
.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 {
|
||||
button:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
button[type="button"] { background: #e7edfb; color: #1d3d84; }
|
||||
input {
|
||||
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;
|
||||
border: 1px solid #cfd8ea;
|
||||
border-radius: 10px;
|
||||
padding: 0.65rem 0.75rem;
|
||||
background: white;
|
||||
color: #172033;
|
||||
}
|
||||
label { display: grid; gap: 0.35rem; font-weight: 700; color: #33415c; }
|
||||
small, .hint, .empty { color: #667692; }
|
||||
pre { overflow: auto; max-height: 360px; background: #0d1629; color: #dbe8ff; padding: 1rem; border-radius: 12px; }
|
||||
code { display: block; overflow-wrap: anywhere; background: #edf3ff; color: #18356f; padding: 0.75rem; border-radius: 10px; }
|
||||
|
||||
.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;
|
||||
.loading { display: grid; min-height: 100vh; place-items: center; }
|
||||
.app-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 32px 0 48px; }
|
||||
.hero {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 0.95; letter-spacing: -0.06em; }
|
||||
.hero p { max-width: 760px; font-size: 1.08rem; color: #53627b; }
|
||||
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; color: #2458d3; font-size: 0.78rem; }
|
||||
.session-card, .card {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid #dce4f2;
|
||||
box-shadow: 0 18px 60px rgba(34, 57, 101, 0.10);
|
||||
border-radius: 24px;
|
||||
}
|
||||
.session-card { padding: 20px; display: grid; gap: 8px; align-content: center; }
|
||||
.session-card a { color: #2458d3; font-weight: 800; }
|
||||
.session-card span { color: #667692; }
|
||||
|
||||
.workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 20px; align-items: start; }
|
||||
.card { padding: 22px; }
|
||||
.card h2 { margin: 0 0 16px; font-size: 1.35rem; }
|
||||
.row-between, .button-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
|
||||
.input-card { display: grid; gap: 18px; }
|
||||
.upload-box { display: grid; gap: 8px; padding: 16px; border: 1px dashed #9fb0d4; border-radius: 16px; background: #f8fbff; }
|
||||
.quotes-list { display: grid; gap: 14px; }
|
||||
fieldset { border: 1px solid #dce4f2; border-radius: 18px; padding: 16px; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; }
|
||||
legend { padding: 0 8px; color: #2458d3; font-weight: 800; }
|
||||
.weight-card { position: sticky; top: 20px; display: grid; gap: 16px; }
|
||||
.slider input { padding: 0; accent-color: #2458d3; }
|
||||
.error-text { color: #b42318; font-weight: 800; }
|
||||
|
||||
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 20px; align-items: start; }
|
||||
.winner { display: grid; gap: 2px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #e5edff, #f7fbff); margin-bottom: 16px; }
|
||||
.winner span { color: #53627b; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; }
|
||||
.winner strong { font-size: 2rem; color: #14337a; }
|
||||
dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
|
||||
dl div { background: #f7f9fe; border: 1px solid #e3eaf6; border-radius: 14px; padding: 12px; }
|
||||
dt { color: #667692; font-size: 0.8rem; }
|
||||
dd { margin: 0; font-weight: 900; }
|
||||
.history-card { display: grid; gap: 12px; }
|
||||
.history-card button { display: flex; justify-content: space-between; gap: 10px; text-align: left; }
|
||||
.history-card details { margin-top: 12px; }
|
||||
|
||||
@media (max-width: 920px) {
|
||||
.hero, .workspace, .results-grid { grid-template-columns: 1fr; }
|
||||
.weight-card { position: static; }
|
||||
fieldset { grid-template-columns: 1fr 1fr; }
|
||||
dl { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
|
||||
.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: 560px) {
|
||||
.app-shell { width: min(100vw - 20px, 1180px); padding-top: 18px; }
|
||||
fieldset, dl { grid-template-columns: 1fr; }
|
||||
.hero h1 { font-size: 2.4rem; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user