示例工程 63-sessions-search-and-ship
63-sessions-search-and-ship/app/src/styles/app.css
.app {
min-height: 100vh;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
height: 60px;
padding: 0 20px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.logo {
display: grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 9px;
background: #0f172a;
color: #ffffff;
font-size: 13px;
font-weight: 700;
}
.brand h1 {
margin: 0;
font-size: 15px;
}
.header-side {
display: flex;
align-items: center;
gap: 7px;
}
.pill {
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--muted);
font-size: 10px;
}
.ok-pill {
border-color: #86efac;
background: #f0fdf4;
color: #166534;
}
.bad-pill {
border-color: #fecaca;
background: #fef2f2;
color: #991b1b;
}
.layout {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
gap: 12px;
padding: 12px 20px 20px;
}
.column {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 7px;
}
.card h2 {
margin: 0;
font-size: 12.5px;
}
.small {
font-size: 10.5px;
}
.search {
display: flex;
gap: 6px;
margin-bottom: 8px;
}
.search input {
flex: 1;
height: 29px;
padding: 0 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 10.5px;
}
.btn {
height: 29px;
padding: 0 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 10px;
}
.btn.primary {
border-color: var(--primary);
background: var(--primary);
color: #ffffff;
}
.btn:disabled {
opacity: 0.45;
}
.sessions {
margin: 0;
padding: 0;
list-style: none;
}
.session {
padding: 7px 0;
border-bottom: 1px solid var(--border);
}
.session:last-child {
border-bottom: none;
}
.session-head {
display: flex;
justify-content: space-between;
gap: 8px;
}
.session-head b {
font-size: 10.6px;
}
.session-meta {
display: flex;
align-items: center;
gap: 4px;
margin-top: 3px;
}
.chip {
padding: 1px 5px;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font-size: 8.2px;
}
.hits {
display: flex;
flex-direction: column;
gap: 6px;
}
.hit {
padding: 7px 8px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--panel);
}
.hit-head {
display: flex;
align-items: center;
gap: 6px;
}
.hit-head b {
font-size: 10px;
}
.hit-snippet {
margin: 4px 0 2px;
font-size: 9.4px;
line-height: 1.55;
}
mark {
padding: 0 1px;
border-radius: 2px;
background: #fef08a;
color: inherit;
}
.actions {
display: flex;
gap: 6px;
margin-bottom: 7px;
flex-wrap: wrap;
}
.transfer-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9px;
flex-wrap: wrap;
}
.transfer-row:last-of-type {
border-bottom: none;
}
.feed-box {
margin-bottom: 8px;
padding: 7px 8px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--panel);
}
.feed-row {
display: flex;
align-items: center;
gap: 6px;
padding: 2px 0;
font-size: 9.2px;
}
.checks {
max-height: 360px;
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
}
.check-row {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 90px;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9.2px;
}
.check-row:last-child {
border-bottom: none;
}
.check-row code {
color: var(--muted);
font-size: 8px;
text-align: right;
overflow-wrap: anywhere;
}
.tag {
padding: 1px 5px;
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font-size: 8px;
font-weight: 600;
white-space: nowrap;
text-align: center;
}
.tag.title {
background: #dbeafe;
color: #1e40af;
}
.tag.tag {
background: #ede9fe;
color: #5b21b6;
}
.tag.message {
background: #fef3c7;
color: #92400e;
}
.tag.done {
background: #dcfce7;
color: #166534;
}
.tag.error {
background: #fee2e2;
color: #991b1b;
}
.tag.tool {
background: #dbeafe;
color: #1e40af;
}
body[data-shot="search"] .export-card,
body[data-shot="search"] .ship-card {
display: none;
}
body[data-shot="search"] .results-card {
border-color: #bfdbfe;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
body[data-shot="export"] .sessions-card,
body[data-shot="export"] .results-card,
body[data-shot="export"] .ship-card {
display: none;
}
body[data-shot="export"] .layout {
grid-template-columns: 1fr;
}
body[data-shot="export"] .export-card {
border-color: #86efac;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}
body[data-shot="ship"] .sessions-card,
body[data-shot="ship"] .results-card,
body[data-shot="ship"] .export-card {
display: none;
}
body[data-shot="ship"] .layout {
grid-template-columns: 1fr;
}
body[data-shot="ship"] .ship-card {
border-color: #fcd34d;
box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}
body[data-shot="ship"] .checks {
max-height: none;
}
@media (max-width: 820px) {
.layout {
grid-template-columns: 1fr;
}
}