Files
agent-dashboard/web/style.css
T
2026-06-02 14:36:41 +08:00

191 lines
2.9 KiB
CSS

:root {
--bg: #0f1114;
--surface: #161a20;
--border: #2a3038;
--text: #e4e6eb;
--muted: #8b929a;
--accent: #5b9fd4;
--error: #e06c75;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
font-size: 14px;
background: var(--bg);
color: var(--text);
line-height: 1.4;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
header h1 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
}
#btn-token {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
}
#btn-token:hover {
color: var(--text);
border-color: var(--muted);
}
.layout {
display: flex;
min-height: calc(100vh - 49px);
}
.sidebar {
width: 200px;
flex-shrink: 0;
padding: 16px;
border-right: 1px solid var(--border);
background: var(--surface);
display: flex;
flex-direction: column;
gap: 14px;
}
.sidebar label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.sidebar select {
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
padding: 8px;
border-radius: 4px;
font-size: 13px;
text-transform: none;
letter-spacing: normal;
}
main {
flex: 1;
padding: 16px 20px;
overflow-x: auto;
}
.error {
color: var(--error);
margin: 0 0 12px;
}
.error.hidden {
display: none;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
}
th {
color: var(--muted);
font-weight: 500;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
tr.offline td {
color: var(--muted);
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 3px;
font-size: 12px;
background: var(--border);
}
tr.offline .status {
background: transparent;
border: 1px solid var(--border);
}
.btn-expand {
background: transparent;
border: none;
color: var(--accent);
cursor: pointer;
font-size: 13px;
padding: 0;
}
.btn-expand:hover {
text-decoration: underline;
}
.details-row td {
padding: 0 12px 12px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.details-row pre {
margin: 8px 0 0;
padding: 10px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
overflow-x: auto;
font-size: 12px;
white-space: pre-wrap;
word-break: break-word;
max-height: 200px;
}
.details-row .label {
font-size: 11px;
color: var(--muted);
text-transform: uppercase;
margin-top: 10px;
}
.details-row .label:first-child {
margin-top: 0;
}
.empty {
color: var(--muted);
text-align: center;
padding: 24px;
}