b601b9c426
Add GET /api/v1/dashboards/summary (24h events, open problems, hosts, severity breakdown, recent events) and Vue /dashboard page. Co-authored-by: Cursor <cursoragent@cursor.com>
167 lines
2.2 KiB
CSS
167 lines
2.2 KiB
CSS
:root {
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
line-height: 1.5;
|
|
color: #e8eaed;
|
|
background: #0f1419;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
a {
|
|
color: #7eb8ff;
|
|
}
|
|
|
|
.layout {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem 1.25rem 2rem;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid #2a3441;
|
|
}
|
|
|
|
nav .brand {
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin-right: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
padding: 0.5rem 0.65rem;
|
|
border-bottom: 1px solid #2a3441;
|
|
}
|
|
|
|
th {
|
|
color: #9aa4b2;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sev-critical,
|
|
.sev-high {
|
|
color: #ff6b6b;
|
|
}
|
|
.sev-warning {
|
|
color: #ffc857;
|
|
}
|
|
.sev-info {
|
|
color: #7eb8ff;
|
|
}
|
|
|
|
.status-open {
|
|
color: #ff6b6b;
|
|
}
|
|
.status-acknowledged {
|
|
color: #ffc857;
|
|
}
|
|
.status-resolved {
|
|
color: #6bcb77;
|
|
}
|
|
|
|
td.actions {
|
|
display: flex;
|
|
gap: 0.35rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.card {
|
|
background: #1a2332;
|
|
border: 1px solid #2a3441;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
button {
|
|
font: inherit;
|
|
padding: 0.4rem 0.6rem;
|
|
border-radius: 6px;
|
|
border: 1px solid #3d4f63;
|
|
background: #0f1419;
|
|
color: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
background: #2563eb;
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
button.secondary {
|
|
background: transparent;
|
|
border-color: #3d4f63;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.error {
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
pre {
|
|
overflow: auto;
|
|
font-size: 0.8rem;
|
|
background: #0f1419;
|
|
padding: 0.75rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.dashboard-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.dash-card {
|
|
background: #1a2332;
|
|
border: 1px solid #2a3441;
|
|
border-radius: 8px;
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.dash-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
.dash-label {
|
|
color: #9aa4b2;
|
|
margin: 0.25rem 0 0.5rem;
|
|
}
|
|
|
|
.severity-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|