Add Flask web UI, Docker Compose, core engine + tests
- physcom core: CLI, 5-pass pipeline, SQLite repo, 37 tests - physcom_web: Flask app with HTMX for entity/domain/pipeline/results CRUD - Docker Compose: web + cli services sharing a named volume for the DB - Clean up local settings to use wildcard permissions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
156
src/physcom_web/static/style.css
Normal file
156
src/physcom_web/static/style.css
Normal file
@@ -0,0 +1,156 @@
|
||||
/* ── Reset & Base ─────────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
line-height: 1.5;
|
||||
color: #1a1a2e;
|
||||
background: #f5f5f7;
|
||||
}
|
||||
|
||||
a { color: #2563eb; text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ── Nav ─────────────────────────────────────────────────── */
|
||||
nav {
|
||||
background: #1a1a2e;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 1.5rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
nav .nav-brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
|
||||
nav ul { list-style: none; display: flex; gap: 1.25rem; }
|
||||
nav a { color: #c4c4d4; }
|
||||
nav a:hover { color: #fff; text-decoration: none; }
|
||||
|
||||
/* ── Main ────────────────────────────────────────────────── */
|
||||
main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
|
||||
|
||||
/* ── Page header ─────────────────────────────────────────── */
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
|
||||
h2 { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
|
||||
h3 { font-size: 1rem; margin-bottom: 0.25rem; }
|
||||
.subtitle { font-weight: 400; color: #666; font-size: 0.9rem; }
|
||||
|
||||
/* ── Cards ───────────────────────────────────────────────── */
|
||||
.card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e2e8;
|
||||
border-radius: 8px;
|
||||
padding: 1rem 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* ── Tables ──────────────────────────────────────────────── */
|
||||
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
|
||||
th, td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid #eee; }
|
||||
th { font-weight: 600; color: #555; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
|
||||
table.compact th, table.compact td { padding: 0.25rem 0.4rem; font-size: 0.85rem; }
|
||||
|
||||
/* ── Score cells ─────────────────────────────────────────── */
|
||||
.score-cell { font-family: monospace; font-weight: 600; }
|
||||
|
||||
/* ── Badges ──────────────────────────────────────────────── */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
background: #e2e2e8;
|
||||
color: #333;
|
||||
}
|
||||
.badge-requires { background: #dbeafe; color: #1e40af; }
|
||||
.badge-provides { background: #dcfce7; color: #166534; }
|
||||
.badge-range_min, .badge-range_max { background: #fef3c7; color: #92400e; }
|
||||
.badge-excludes { background: #fee2e2; color: #991b1b; }
|
||||
.badge-valid { background: #dcfce7; color: #166534; }
|
||||
.badge-blocked { background: #fee2e2; color: #991b1b; }
|
||||
.badge-scored { background: #dbeafe; color: #1e40af; }
|
||||
.badge-reviewed { background: #f3e8ff; color: #6b21a8; }
|
||||
.badge-pending { background: #fef3c7; color: #92400e; }
|
||||
|
||||
/* ── Buttons ─────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 0.4rem 0.85rem;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
color: #374151;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn:hover { background: #f3f4f6; text-decoration: none; }
|
||||
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
|
||||
.btn-primary:hover { background: #1d4ed8; }
|
||||
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
|
||||
.btn-danger:hover { background: #b91c1c; }
|
||||
.btn-sm { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
|
||||
|
||||
/* ── Forms ───────────────────────────────────────────────── */
|
||||
.form-group { margin-bottom: 0.75rem; }
|
||||
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }
|
||||
.form-group input, .form-group select, .form-group textarea {
|
||||
width: 100%;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.form-actions { margin-top: 1rem; display: flex; gap: 0.5rem; }
|
||||
.form-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
|
||||
.form-row input, .form-row select { width: auto; flex: 1; min-width: 80px; }
|
||||
|
||||
fieldset { border: 1px solid #e2e2e8; border-radius: 6px; padding: 0.75rem; margin-bottom: 0.75rem; }
|
||||
legend { font-weight: 600; font-size: 0.85rem; padding: 0 0.3rem; }
|
||||
.checkbox-row { display: flex; gap: 1rem; flex-wrap: wrap; }
|
||||
.checkbox-row label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; }
|
||||
|
||||
/* ── Inline form (for delete buttons) ────────────────────── */
|
||||
.inline-form { display: inline; }
|
||||
|
||||
/* ── Flash messages ──────────────────────────────────────── */
|
||||
.flash-container { margin-bottom: 1rem; }
|
||||
.flash {
|
||||
padding: 0.6rem 1rem;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
|
||||
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
|
||||
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
|
||||
|
||||
/* ── Filter row ──────────────────────────────────────────── */
|
||||
.filter-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
|
||||
.filter-row span { font-weight: 600; font-size: 0.85rem; color: #555; }
|
||||
|
||||
/* ── DL styling ──────────────────────────────────────────── */
|
||||
dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
|
||||
dt { font-weight: 600; font-size: 0.85rem; color: #555; }
|
||||
dd { font-size: 0.9rem; }
|
||||
|
||||
/* ── Empty state ─────────────────────────────────────────── */
|
||||
.empty { color: #666; padding: 2rem 0; text-align: center; }
|
||||
|
||||
/* ── Actions column ──────────────────────────────────────── */
|
||||
.actions { white-space: nowrap; display: flex; gap: 0.25rem; }
|
||||
|
||||
/* ── Dep add form ────────────────────────────────────────── */
|
||||
.dep-add-form { margin-top: 0.75rem; }
|
||||
Reference in New Issue
Block a user