circus/crates/server/static/style.css
NotAShelf 235d3d38a6
crates/server: REST API routes; RBAC auth middleware; cookie sessions; dashboard
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5298a925bd9c11780e49d8b1c98eebd86a6a6964
2026-02-02 01:15:08 +03:00

186 lines
3.8 KiB
CSS

/* FC CI Dashboard Styles */
:root {
--bg: #fafafa;
--fg: #1a1a1a;
--border: #ddd;
--accent: #2563eb;
--muted: #6b7280;
--card-bg: #fff;
--green: #16a34a;
--red: #dc2626;
--yellow: #ca8a04;
--gray: #6b7280;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--fg);
line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
background: #f3f4f6;
padding: 0.1em 0.3em;
border-radius: 3px;
font-size: 0.9em;
}
.navbar {
display: flex;
align-items: center;
gap: 2rem;
padding: 0.75rem 1.5rem;
background: var(--card-bg);
border-bottom: 1px solid var(--border);
}
.nav-brand a {
font-weight: 700;
font-size: 1.1rem;
color: var(--fg);
}
.nav-links { display: flex; gap: 1rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--fg); }
.container {
max-width: 1100px;
margin: 1.5rem auto;
padding: 0 1rem;
}
h1 { margin-bottom: 1rem; font-size: 1.5rem; }
h2 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem;
text-align: center;
}
.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
table {
width: 100%;
border-collapse: collapse;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
}
th, td {
padding: 0.5rem 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border);
font-size: 0.9rem;
}
th {
background: #f9fafb;
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--muted);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f9fafb; }
.badge {
display: inline-block;
padding: 0.15em 0.5em;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 600;
text-transform: capitalize;
}
.badge-completed { background: #dcfce7; color: var(--green); }
.badge-failed { background: #fee2e2; color: var(--red); }
.badge-running { background: #fef9c3; color: var(--yellow); }
.badge-pending { background: #f3f4f6; color: var(--gray); }
.badge-cancelled { background: #f3f4f6; color: var(--gray); }
.empty { color: var(--muted); font-style: italic; }
.pagination {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem;
font-size: 0.9rem;
color: var(--muted);
}
.filter-form {
display: flex;
gap: 1rem;
align-items: end;
margin-bottom: 1rem;
flex-wrap: wrap;
}
.filter-form label {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.85rem;
color: var(--muted);
}
.filter-form select,
.filter-form input {
padding: 0.35rem 0.5rem;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 0.9rem;
}
.filter-form button {
padding: 0.4rem 1rem;
background: var(--accent);
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
}
.filter-form button:hover { opacity: 0.9; }
.footer {
text-align: center;
padding: 2rem 1rem;
color: var(--muted);
font-size: 0.8rem;
border-top: 1px solid var(--border);
margin-top: 3rem;
}
@media (max-width: 768px) {
.navbar { flex-direction: column; gap: 0.5rem; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.filter-form { flex-direction: column; }
table { font-size: 0.85rem; }
th, td { padding: 0.35rem 0.5rem; }
}