示例工程 49-handrolled-vite-config
49-handrolled-vite-config/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;
}
.banner {
margin: 12px 20px 0;
padding: 8px 11px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
color: var(--muted);
font-size: 11px;
}
.banner.ok {
border-color: #86efac;
background: #f0fdf4;
color: #166534;
}
.banner.warn {
border-color: #fcd34d;
background: #fffbeb;
color: #92400e;
}
.layout {
display: grid;
grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
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;
}
.btn {
height: 28px;
padding: 0 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 10.5px;
}
.btn:hover {
border-color: var(--primary);
}
.artifacts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
}
.artifact-card {
padding: 8px 9px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
}
.artifact-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
margin-bottom: 5px;
}
.artifact-head b {
font-size: 11px;
}
.artifact-file {
margin-bottom: 5px;
color: var(--muted);
font-family: var(--font-mono);
font-size: 8.2px;
overflow-wrap: anywhere;
}
.artifact-meta,
.paths,
.options,
.checks,
.activity {
margin: 0;
padding: 0;
list-style: none;
}
.artifact-meta li {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
padding: 2px 0;
font-size: 8.8px;
}
.artifact-meta span {
color: var(--muted);
}
.artifact-meta b {
font-family: var(--font-mono);
font-size: 8.3px;
font-weight: 500;
overflow-wrap: anywhere;
text-align: right;
}
.tag {
padding: 1px 6px;
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font-size: 9px;
font-weight: 600;
white-space: nowrap;
text-align: center;
}
.tag.ok {
background: #dcfce7;
color: #166534;
}
.tag.bad {
background: #fee2e2;
color: #991b1b;
}
.paths li {
display: grid;
grid-template-columns: 150px minmax(0, 1fr);
gap: 8px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9.6px;
}
.paths li:last-child {
border-bottom: none;
}
.paths span {
color: var(--muted);
}
.paths b {
font-family: var(--font-mono);
font-size: 8.8px;
font-weight: 500;
overflow-wrap: anywhere;
}
.probe-note {
margin-top: 7px;
font-family: var(--font-mono);
overflow-wrap: anywhere;
}
.matrix {
width: 100%;
border-collapse: collapse;
font-size: 9.5px;
}
.matrix th,
.matrix td {
padding: 4px 5px;
border-bottom: 1px solid var(--border);
text-align: left;
}
.matrix th {
color: var(--muted);
font-size: 9px;
font-weight: 600;
}
.matrix td:first-child {
color: var(--muted);
}
.sub-head {
margin: 8px 0 3px;
color: var(--muted);
font-size: 9.2px;
font-weight: 600;
}
.options li {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
gap: 8px;
padding: 3px 0;
border-bottom: 1px solid var(--border);
font-size: 9.2px;
}
.options li:last-child {
border-bottom: none;
}
.options span {
color: var(--muted);
}
.check-row {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 96px;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9.8px;
}
.check-row:last-child {
border-bottom: none;
}
.check-row code {
color: var(--muted);
font-size: 8.5px;
text-align: right;
overflow-wrap: anywhere;
}
.activity {
max-height: 120px;
overflow: auto;
}
.event-row {
display: grid;
grid-template-columns: 56px 62px minmax(0, 1fr);
gap: 6px;
padding: 3px 0;
border-bottom: 1px solid var(--border);
font-size: 9.5px;
}
.event-row:last-child {
border-bottom: none;
}
.event-row .kind {
color: var(--primary);
}
body[data-shot="artifacts"] .artifacts-card {
border-color: #bfdbfe;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
body[data-shot="configs"] .configs-card {
border-color: #86efac;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}
body[data-shot="paths"] .paths-card {
border-color: #fcd34d;
box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}
@media (max-width: 820px) {
.layout {
grid-template-columns: 1fr;
}
.artifacts {
grid-template-columns: 1fr;
}
}