Files
Flypaper/src/Flypaper.Web/wwwroot/app.css
T
2026-11-14 15:32:16 +01:00

372 lines
5.5 KiB
CSS

:root {
--bg: #f6f7f9;
--surface: #ffffff;
--text: #1d232b;
--muted: #6b7380;
--border: #e2e5ea;
--accent: #b5651d;
--ok: #2f7d4a;
--warn: #a6620c;
--bad: #b3261e;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14171c;
--surface: #1c2027;
--text: #e4e7ec;
--muted: #8e96a3;
--border: #2c323c;
--accent: #e09a4f;
--ok: #6cc28a;
--warn: #e0a94f;
--bad: #ef7b72;
color-scheme: dark;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1:focus {
outline: none;
}
.page {
max-width: 1280px;
margin: 0 auto;
padding: 24px 16px 48px;
}
.top {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 20px;
}
.top h1 {
margin: 0;
font-size: 22px;
color: var(--accent);
}
h2 {
margin: 0 0 12px;
font-size: 15px;
}
.muted {
color: var(--muted);
}
.metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.metric,
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 14px 16px;
}
.metric .label {
display: block;
color: var(--muted);
font-size: 12px;
}
.metric .value {
display: block;
margin-top: 4px;
font-size: 24px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.tops {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
gap: 16px;
margin-bottom: 16px;
}
.scroll {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}
th,
td {
padding: 6px 8px;
border-bottom: 1px solid var(--border);
text-align: left;
vertical-align: top;
}
th {
color: var(--muted);
font-size: 12px;
font-weight: 500;
}
tbody tr:last-child td {
border-bottom: none;
}
.num {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.nowrap {
white-space: nowrap;
}
.mono {
font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 13px;
}
.clip {
max-width: 320px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
tr[data-expand] {
cursor: pointer;
}
.hint {
margin-left: 8px;
color: var(--muted);
font-size: 12px;
font-weight: 400;
}
tr[data-expand]:hover td {
background: color-mix(in srgb, var(--text) 4%, transparent);
}
tr[data-expand]:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
tr[data-expand].open td {
background: color-mix(in srgb, var(--accent) 7%, transparent);
}
tr.open .clip {
white-space: normal;
overflow-wrap: anywhere;
}
.outcome {
font-size: 12px;
font-weight: 600;
}
.outcome.timeout {
color: var(--ok);
}
.outcome.clientaborted {
color: var(--warn);
}
.outcome.rejected {
color: var(--bad);
}
@media (max-width: 600px) {
.tops {
grid-template-columns: 1fr;
}
.clip {
max-width: 180px;
}
}
.narrow {
max-width: 380px;
padding-top: 15vh;
}
.login-title {
margin: 0 0 16px;
font-size: 22px;
color: var(--accent);
}
.nav {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}
.nav a {
color: var(--muted);
text-decoration: none;
font-weight: 500;
}
.nav a:hover,
.nav a.active {
color: var(--text);
}
.nav .logout {
margin-left: auto;
}
.form {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 16px;
}
.form label {
margin-top: 8px;
font-weight: 500;
}
.form .grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 0 16px;
}
input,
textarea {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
color: var(--text);
font: inherit;
}
input:focus,
textarea:focus {
outline: 2px solid var(--accent);
outline-offset: -1px;
}
textarea {
resize: vertical;
}
button {
padding: 8px 16px;
border: none;
border-radius: 6px;
background: var(--accent);
color: #fff;
font: inherit;
font-weight: 600;
cursor: pointer;
}
button.secondary {
background: transparent;
border: 1px solid var(--border);
color: var(--text);
}
button.link {
padding: 0;
background: none;
color: var(--muted);
font-weight: 500;
}
button.link:hover {
color: var(--text);
}
button:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.actions {
margin-top: 10px;
}
.error {
margin: 0;
color: var(--bad);
font-size: 13px;
}
.banner {
margin-bottom: 16px;
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 8px;
}
.banner.ok {
border-color: var(--ok);
color: var(--ok);
}
.banner.bad {
border-color: var(--bad);
color: var(--bad);
}
.badge {
padding: 2px 8px;
border: 1px solid var(--accent);
border-radius: 999px;
color: var(--accent);
font-size: 12px;
}
th[scope],
tbody th {
width: 220px;
color: var(--muted);
font-weight: 500;
}
.card {
margin-bottom: 16px;
}
.top h1 {
margin: 0;
}