Files
unkin-agent f1bcb8cd3a
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Add the initial repospawner service
repospawner turns JSON new-repo requests into terraform-git pull requests
via kubernetes Jobs, follows those PRs to merge and optionally activates
the repository in Woodpecker.
2026-08-30 14:33:31 +10:00

127 lines
4.4 KiB
CSS

/* repospawner UI — Bootstrap-3-shaped layout with material elevation, in a
neutral slate palette. Fully self-contained: no CDNs, no webfonts. */
:root {
--bg: #eef1f5;
--surface: #ffffff;
--ink: #24292f;
--muted: #6b7280;
--line: #d7dde5;
--slate: #33475b;
--slate-dk: #24344a;
--accent: #2b6cb0;
--accent-dk: #22548a;
--ok: #2f7a4d;
--warn: #8a6116;
--danger: #a33226;
--shadow: 0 1px 3px rgba(16,24,40,.12), 0 6px 18px rgba(16,24,40,.08);
--radius: 6px;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: var(--ink);
background: var(--bg);
min-height: 100vh;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
/* ---- navbar ---- */
.navbar {
background: linear-gradient(180deg, var(--slate) 0%, var(--slate-dk) 100%);
box-shadow: var(--shadow);
}
.navbar-inner { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.brand { color: #fff; font-size: 1.4rem; font-weight: 700; letter-spacing: .3px; }
.brand-tag { color: #c8d2de; font-size: .92rem; }
/* ---- panels ---- */
.panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
margin: 24px 0;
}
.panel-heading {
display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
padding: 12px 20px;
border-bottom: 1px solid var(--line);
background: #f7f9fb;
border-radius: var(--radius) var(--radius) 0 0;
}
.panel-heading h2 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 20px; }
/* ---- forms ---- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
label.check { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; }
.form-control {
width: 100%; padding: 9px 12px;
border: 1px solid var(--line); border-radius: var(--radius);
background: #fff; font-size: 1rem; color: var(--ink);
font-family: inherit;
}
textarea.form-control { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,108,176,.18); }
.help { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .85rem; color: var(--danger); font-weight: 600; }
/* ---- buttons ---- */
.btn {
display: inline-block; border: none; border-radius: var(--radius);
padding: 10px 18px; font-size: 1rem; font-weight: 600; cursor: pointer;
box-shadow: 0 1px 2px rgba(16,24,40,.2);
transition: background .12s ease, transform .08s ease;
text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* ---- table ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.name { font-weight: 700; }
.desc { color: var(--muted); font-size: .85rem; }
/* ---- badges ---- */
.badge {
display: inline-block; font-size: .74rem; font-weight: 700;
padding: 3px 9px; border-radius: 10px; white-space: nowrap;
background: #e6eaf0; color: var(--slate-dk);
}
.badge-run { background: #dbeafe; color: #1e40af; }
.badge-ok { background: #d9f0e2; color: var(--ok); }
.badge-warn { background: #fbf0d3; color: var(--warn); }
.badge-err { background: #f8dcd8; color: var(--danger); }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .85rem; }
.hidden { display: none !important; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
/* ---- toast ---- */
.toast {
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
background: var(--slate-dk); color: #fff;
padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
border-left: 4px solid var(--accent); z-index: 50; max-width: 90vw;
}
.toast.err { border-left-color: var(--danger); }
@media (max-width: 600px) {
.container { padding: 0 10px; }
.panel-body { padding: 14px; }
.table th, .table td { padding: 8px; }
}